typst: `error: file not found (searched at )` after 6999be

Description

After commit 6999be9ab0d851d0b3b34bd311712c27887721f1, running typst watch <file.typ> <file.pdf> shows the error error: file not found (searched at <file.typ>) whenever the file is saved (with or without modificiations) and doesn’t write/save the generated pdf file.

This error occurs on 426445edfc8d32d9ff8fcb79cda5b7765209f567 as well (the only commit after the one that introduced the bug) and does not appear before 6999be9ab0d851d0b3b34bd311712c27887721f1, as far as I can tell.

I tried to look at the changes introduced in 6999be9ab0d851d0b3b34bd311712c27887721f1, but couldn’t figure out what exactly might’ve caused this issue as I’m not familiar with the codebase.

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (11 by maintainers)

Commits related to this issue

Most upvoted comments

The issue should be fixed in typst watch. Tinymist does not use the CLI under the hood, so it might make sense to just open an issue there.