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
Add support for missing references (w/ warnings) #4035
Comments
I would love for the functionality of #1276 to be included in the base compiler, as this should not be considered as a critical compiler failure. |
If we can come up with a good design, I'm open to it. |
Maybe we can add a cli argument (like
|
I think instead of having a specific flags just for refs we should instead think about how to implement a more generalized system for enabling/disabling warnings, then this could be extended to this specific use case as well. |
Yes! You want to be able to just put the references in as you're writing and add the actual reference targets at the end. An This at the beginning of the document makes a good workaround:
However, this doesn't solve the problem because now all refs will be replaced by a placeholder, even ones that work, so you can't gradually fix broken refs and have them fill in. |
Description
Coming from LaTeX, you could compile a document even if a reference is not defined. This would trigger a warning and a "??" would be printed on the resulting file.
Currently, Typst just errs and exits the whole compiler process (e.g. if using
typst watch
).Use Case
A similar functionality where the error is ignored and a warning is emitted instead would help creative flow while writing so that one does not have to immediately go back to a missing reference and try to address it.
The text was updated successfully, but these errors were encountered: