Skip to content

Saving a draft of a file crashes the watcher #95

Closed

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

  1. added a commit that references this issue on May 9, 2026
    08cca75
  2. linked a pull request that will close this issue95 catch missing ref excn #97on May 9, 2026
  3. jhidding commented on May 9, 2026

    @jhidding
    Contributor

    I made a fix that catches the error and continue running. In the current architecture it is not so simple to tangle the files that do work. The philosophy being that transactions should be good before execution.

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