Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't compile outdated revisions #597

Open
dzwdz opened this issue Apr 5, 2025 · 0 comments
Open

Don't compile outdated revisions #597

dzwdz opened this issue Apr 5, 2025 · 0 comments
Labels
bug Something isn't working.

Comments

@dzwdz
Copy link

dzwdz commented Apr 5, 2025

Description

When making large changes to a document which makes it no longer compile (which I assume breaks incremental compilation?), each keystroke triggers a recompile - and they get queued up. If the document takes a while to compile, then it takes ages to get through the queue, because Typst tries to compile all the queued up edits (even though they're useless).

For example - right now I changed some function definitions in a fairly large document, and I needed to change some function calls to #sidenote(inline: false)[...]. After replacing a single call and looking in the Improve tab:

  • I first see an error about #sidenote(i) not being valid, because i is undefined.
  • It hangs for a while, presumably compiling the next revision.
  • I see an error about #sidenote(in) not being valid, because in is undefined.
  • It hangs for a while, presumably compiling the next revision.
  • [...]

The editor becomes pretty laggy during this too. I run into this surprisingly often... :(

Reproduction URL

No response

Browsers

Firefox

OS

Linux

@dzwdz dzwdz added the bug Something isn't working. label Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant