-
Notifications
You must be signed in to change notification settings - Fork 326
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
Quarto does not preserve the render order mentioned in _quarto.yaml
#10714
Comments
Sorry, but we do need a full repro.
I don't understand what this pull request has to do with the report. Can you please provide us with a git repository that we can clone from, where you see this behavior? Thank you. |
Can you give us a small repo? |
I will try again. I tried making one before I submitted the issue with only a couple .qmd files but I couldn't get it to reproduce the ordering issue. |
Thanks! |
@cscheid I just figured it out, please see here: https://github.com/maxdrohde/quarto_render_order When I run
but the
|
Thank you, I can repro that! |
The issue is somehow related to engine determination. If you remove the code cell from |
Thank you @maxdrohde. @cscheid I meant to say repeat step 3, which github autolinked to Issue 3. Apologies. |
Is there any update on this issue? This is a major blocker on a part of our pipeline and is holding up publication of multiple papers. We'd appreciate any work on this. |
I believe the regression was introduced in specifically at commit d75246d This change modified projectContext logic and introduced a quarto-cli/src/project/project-context.ts Lines 799 to 817 in 52d5a6e
I can confirm that Quarto 1.5.16 before PR is merged does not have the issue, and git bisect confirms it. This is the root cause for several issues |
Hi. I just want to mildly suggest that you could engage in our discussions in a more productive way - specifically, the implication that our bugs are the cause of your work being hindered is really not helpful. For context, I was an academic researcher and professor for more than a decade (and have a number of papers to my name), and one lesson that was imparted in me (and I on my students) is that it pays to be conservative about your tooling. We take this seriously, too, and older releases of Quarto are always available to download and use, and you have a number of options in how to use them, including using GitHub actions that allow you to select any Quarto version. In the worst case, for example, you could convert your manuscript to a single .qmd file and then ordering would not be an issue. We hear you, and we will fix this (as cderv has pointed out here and has a PR open). But do try to be more considerate when engaging in discussions. Thank you. |
This is closed by #11062 and will be in 1.5 and 1.6 releases soon. |
Thank you so much. We really appreciate all the work you do. |
Bug description
Previously, under the 1.4 release, it was possible to control the order of execution of the
qmd
files by specifying them as an array in the metadata.This is no longer possible with the versions going from 1.5 onwards. Controlling order of execution is important as evidenced by issues like #10463 , #10490, and this discussion.
Steps to reproduce
https://github.com/maxdrohde/quarto_render_order
Expected behavior
Specifying the order should render documents in order.
Actual behavior
The files are executed in arbitrary order.
Your environment
Quarto check output
Quarto 1.5.557 [✓] Checking versions of quarto binary dependencies... Pandoc version 3.1.11: OK Dart Sass version 1.69.5: OK Deno version 1.37.2: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.5.57 Path: /Applications/quarto/bin [✓] Checking tools....................OK TinyTeX: (external install) Chromium: (not installed) [✓] Checking LaTeX....................OK Using: TinyTex Path: /Users/aimami/Library/TinyTeX/bin/universal-darwin Version: 2022 [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.12.5 Path: /Users/aimami/.local/share/mise/installs/python/3.12/bin/python3 Jupyter: (None) Jupyter is not available in this Python installation. Install with python3 -m pip install jupyter [✓] Checking R installation...........OK Version: 4.4.1 Path: /opt/homebrew/Cellar/r/4.4.1/lib/R LibPaths: - /Users/aimami/Library/Caches/org.R-project.R/R/renv/library/drugfindR-edc455ab/macos/R-4.4/aarch64-apple-darwin23.4.0 - /Users/aimami/Library/Caches/org.R-project.R/R/renv/sandbox/macos/R-4.4/aarch64-apple-darwin23.4.0/8b0c8122 knitr: 1.47 rmarkdown: 2.26 [✓] Checking Knitr engine render......OK
The text was updated successfully, but these errors were encountered: