entangled-cli 2.1.8__tar.gz → 2.1.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/PKG-INFO +1 -1
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/filedb.py +11 -6
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/pyproject.toml +1 -1
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/LICENSE +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/README.md +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/code_reader.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/brei.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/new.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/status.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/stitch.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/sync.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/tangle.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/commands/watch.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/config/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/config/language.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/config/templates.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/config/version.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/construct.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/document.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/errors/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/errors/internal.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/errors/user.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/hooks/__init__.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/hooks/base.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/hooks/build.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/hooks/quarto_attributes.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/hooks/shebang.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/hooks/task.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/logging.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/main.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/markdown_reader.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/parsing.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/properties.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/py.typed +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/status.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/tangle.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/text_location.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/transaction.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/utility.py +0 -0
- {entangled_cli-2.1.8 → entangled_cli-2.1.9}/entangled/version.py +0 -0
|
@@ -166,12 +166,17 @@ class FileDB:
|
|
|
166
166
|
db = FileDB.read()
|
|
167
167
|
undead = list(filter(lambda p: not p.exists(), db.files))
|
|
168
168
|
for path in undead:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
if path in db.managed:
|
|
170
|
+
logging.warning(
|
|
171
|
+
"File `%s` in DB seems not to exist, but this file is managed.\n"
|
|
172
|
+
"This may happen every now and then with certain editors that "
|
|
173
|
+
"delete a file before writing.", path
|
|
174
|
+
)
|
|
175
|
+
else:
|
|
176
|
+
logging.warning(
|
|
177
|
+
"File `%s` is in database but doesn't seem to exist.\n"
|
|
178
|
+
"Run `entangled tangle -r` to recreate the database.", path
|
|
179
|
+
)
|
|
175
180
|
return db
|
|
176
181
|
|
|
177
182
|
FileDB.path().parent.mkdir(parents=True, exist_ok=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|