Quarto preview and use of output-dir flag #9472
Replies: 2 comments 2 replies
-
|
As a workaround I've been using the command palette to "Quarto: Render document" directly and skip the preview step. Recently that has also produced the same error As I was writing the post, I noticed that it's a two step process. After selecting "Quarto: Render document", I have to select which file format I want to generate. Normally I generate all specified formats in the YAML header. Because I do it so often, I just do a double-tap on the return key. I had Finder open on my desktop and I could see the If so, could that explain the issue with |
Beta Was this translation helpful? Give feedback.
-
|
I worked a bit on some of this behavior, for example in quarto-dev/quarto#435. My current understanding is that Quarto will render with Is this a "real" R package that you really want to treat as such? For example, would it be a pretty big problem for you if the output HTML output for a, say, vignette gets added to your workspace? If you are using the R package infrastructure to manage your project, but you don't want Quarto to think it's an R package, you could do something like add In terms of the problems you are seeing, I just played around for quite a while and I can't seem to generate the same error but it sounds like you have done some good detective work to maybe identify a race condition. Can you describe the problem you are using in a post at https://github.com/quarto-dev/quarto-cli/discussions? I believe this may be something the Quarto team needs to work on, to wait until a folder gets created before trying to write to it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
System details
Positron Version: 2025.09.0 build 139
Code - OSS Version: 1.103.0
Commit: 30e3d0a
Date: 2025-08-29T18:31:36.739Z
Electron: 37.2.3
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Darwin arm64 24.6.0
R 4.5.1
Quarto 1.8.24
Issue rendering and previewing Quarto documents
I've been having sporadic issues rendering and previewing Quarto documents in Positron (see #9158), but haven't been able to generate an isolated reproducible example. From what I have been able to evaluate, it seems related to Positron using the
output-dirflag in the Terminal command.If I render a Quarto document in RStudio, it executes the Terminal command
and opens the previewed document in my browser.
In Positron, when I click the Preview button it typically runs a command like
It often fails one of two ways. Occasionally the document is successfully rendered, but then the preview cannot be opened with an error like
Output created: ../../../../../../var/folders/y5/0kt9x9qd2f13mtkqx3w0lh9r0000gr/T/tmp-58424-5O1k9emicUXN/exam/quiz-01-I.html Watching files for changes Browse at http://localhost:3329/../../../../../../var/folders/y5/0kt9x9qd2f13mtkqx3w0lh9r0000gr/T/tmp-58424-5O1k9emicUXN/test-doc.html Listening on http://127.0.0.1:3329/ GET: /var/folders/y5/0kt9x9qd2f13mtkqx3w0lh9r0000gr/T/tmp-58424-5O1k9emicUXN/test-doc.html (404: Not Found)More often, it doesn't even render the document with the error
I have tried manually clearing the
.quartocache folder by deleting it entirely. When this error appears, I can see aquarto-session-tempfolder generated, but it has a different hash value.Does anyone know why Positron uses the
output-dirflag when previewing Quarto documents?Beta Was this translation helpful? Give feedback.
All reactions