-
Notifications
You must be signed in to change notification settings - Fork 284
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
Inconsistent Behavior Between R and Python when using .Qmd extension (capital Q). #8454
Comments
We do have this check for Jupyter engine quarto-cli/src/execute/jupyter/jupyter.ts Lines 184 to 185 in f2ee879
and only Lines 10 to 13 in f2ee879
quarto-cli/src/execute/types.ts Line 19 in f2ee879
We don't have such check for knitr engine. I don't know if we should support
Though, this could be breaking change for current R users having Easy fix would be supporting @dragonstyle @cscheid what are you thoughts on this |
In case it helps, I have no business case for using the |
I think we should disallow it. The complication is that the handling of capitalization across file systems is pretty tricky. Linux is case-sensitive, but Windows and macOS are case-preserving, unless you create a file-system that is case-insensitive by design, which is possible but rare. So it might not be very easy to disallow capitalization robustly. EDIT: I take it back. Our code already takes the lowercase of some extensions, but not all. We should be consistent. It's an easy fix. |
Following up on this; The error I get on
Like @cderv mentioned, the issue is that the Jupyter engine is expecting a With that said I think this specific bug has a simpler cause. In |
Bug description
When rendering a Quarto document that uses a
.Qmd
extension (as opposed to a.qmd
extension),R
code chunks render perfectly butpython
code chunks stop the document from rendering.I would expect consistent behavior from both languages, whether it generates an error or successfully renders
.Qmd
documents.Note: I had opened a StackOverflow thread describing my problem about 3 days ago. I just recently discovered the solution and have not yet updated that post with the solution. However, the post contains more information than this Bug Report is requesting.
Steps to reproduce
Using Python
File Name: example.Qmd
Using R
File Name: example.Qmd
Expected behavior
I would expect one of the following scenarios, depending upon the design decisions by Quarto Developers:
.Qmd
documents generate a warning/error message about "File Extensions .Qmd are not allowed".Qmd
documents successfully render the documents with/without warning about supported file extension.Actual behavior
When the
.Qmd
document is rendered and containsR
code chunks, the document renders successfully.When the
.Qmd
document is rendered and containsPython
code chunks, I receive the following error:Changing the
.Qmd
to.qmd
allows both documents to run successfully:Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: