Skip to content
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

output_dir ignored in VSCode #640

Open
casasgomezuribarri opened this issue Jan 18, 2025 · 1 comment
Open

output_dir ignored in VSCode #640

casasgomezuribarri opened this issue Jan 18, 2025 · 1 comment

Comments

@casasgomezuribarri
Copy link

casasgomezuribarri commented Jan 18, 2025

I can't get to save my output files in my folder of preference. Here's a MWE:

  1. create a new file test.qmd in the folder Folder
  2. add the following:
---
format:
  html:
    output-dir: "HTML files"
  pdf:
    output-dir: "pdf_files"
---
Hi there

Then, a file Folder/test.html is created (expected behaviour was to create Folder/HTML files/test.html)

No pdf file is created whatsoever.

A folder test_files is also created with the following:

Image

I am using Quarto v. 1.5.57 and VSCode 1.96.4

#375 (comment) here's a similar issue. Although not exactly the same one, could be related

How can I get quarto to save the output files to my subfolder of preference? Note that I want this behaviour to be document-specific and format-specific, so I don't think I can do this from my _quarto.yml project file...

@mcanouil
Copy link
Contributor

That's not a VSCode extension issue.
Quarto CLI repository is https://github.com/quarto-dev/quarto-cli/discussions

output-dir is a Quarto project level option. It has to be set under project in _quarto.yml.

https://quarto.org/docs/projects/quarto-projects.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants