Skip to content

Saving a draft of a file crashes the watcher #95

Description

@fhars

Describe the bug
If you save a draft of a file that does not yet contain all parts, the watcher crashes.

To Reproduce

mkdir test_dir
cd test_dir
cat > foo.md <<'EOF'
``` {.toml file=foo.toml}
<<foo_contents>>
```
EOF
entangled watch

Observed behaviour:

entangled watch terminates with an error message:

[11:26:07] INFO     Welcome to Entangled v2.4.2!
           INFO     Tangling.
           ERROR    foo.md:1: Missing reference `foo_contents`
$

Expected behavior

entagled watch should tangle all files in the directory, print a warning and continue watching.

Bug trace

Desktop (please complete the following information):

  • OS: Debian Linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions