Open AliSajid opened 2 weeks ago
Sorry, but we do need a full repro.
Change the order specified in https://github.com/quarto-dev/quarto-cli/pull/3 and run it again.
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.
@cscheid I provided an example using my GitHub repository in my issue #10490. Thanks again for looking into this!
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 quarto render
from the terminal, I see
❯ quarto render
[1/2] 2-file2.qmd
[2/2] 1-file1.qmd
processing file: 1-file1.qmd
1/3
2/3 [unnamed-chunk-1]
3/3
output file: 1-file1.knit.md
Output created: _output/1-file1.html
but the _quarto_yml
is
project:
title: "Ordering Test"
output-dir: _output
render:
- 1-file1.qmd
- 2-file2.qmd
author: "Maximilian Rohde"
date: today
format:
html:
toc: true
Thank you, I can repro that!
The issue is somehow related to engine determination. If you remove the code cell from 1-file1.qmd
, the order changes.
Thank you @maxdrohde. @cscheid I meant to say repeat step 3, which github autolinked to Issue 3. Apologies.
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