Fail early if duplicated labels are present #14055
ppm1337
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Recently, I found myself rendering lengthy analysis reports using the jupyter engine. After executing all cells without errors, the render process fails complaining about duplicated labels. It becomes worse by the error message only reporting the first duplicated label it encounters. Hence, if you have multiple duplicates you may end up with the same error after fixing the initially reported duplicate.
This can quickly happen by copy and pasting existing code chunks.
In any case, I believe this error should instead be a warning and if it's really worth to be an error, the uniqueness of labels should be checked before all chunks are being executed.
Here is how this would typically look like for
quarto render my_notebook.qmd:Using quarto 1.8.26.
Beta Was this translation helpful? Give feedback.
All reactions