-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Improve YAML error thrown when parsing in-chunk options #2226
Comments
Below is what I'd do and you can try to implement it: First, we need to improve the error message from Line 303 in 77970b0
This could be done in
Then print the original YAML text and insert
I think this can greatly improve the error message. If we want to do better, we can point out the line numbers of the code chunk. To do that, first we need to apply this Line 23 in 77970b0
With the index, we can emit a message similar to: Lines 311 to 322 in 77970b0
That means we need to factor out these lines of code so that it can be reused, i.e., we pass an index Let me know if this is all clear to you. Happy to chat next week. |
Co-authored-by: Yihui Xie <[email protected]>
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
From discussion at quarto-dev/quarto-cli#4306 - @yihui I agree with your comment
Leading to this error
which is not that helpful to know about the error.
This is not specific to Qmd and would be useful to Rmd using YAML syntax too
The text was updated successfully, but these errors were encountered: