-
DescriptionHello I am running the quarto 1.4.552 with vscode running in WSL2 (in windows 11). The WSL2 OS is Ubuntu 22.04.4 LTS. I have two issues: The preview is not working, meaning I manage to show the preview but if I modify the qmd file there is no way to see the preview updated either by:
The second issue is that to launch the preview I need to previously run the command: export XDG_RUNTIME_DIR=$(mktemp -d) As it was commented in a previous discussion. I was wondering if there is a way to fix this issue. Just wanted to highlight these issues, these are not showstopper but quite annoying in the day to day use. I assume that some of these issues are related to the WSL environment? Thanks for the help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Anyway you can describe the steps to reproduce the first issue? As is (with only "preview is not working") there is nothing we can do. regarding the second issue, could you clarify the context and the discussion you are referring to? |
Beta Was this translation helpful? Give feedback.
-
See about how to use VSCODE extension at: https://quarto.org/docs/tools/vscode.html#render-and-preview Quarto VS CODE extension will not re-render automatically the preview for input .qmd file. From the doc. it will only reload lightweight change on resources. To automatically render a change you are doing on source file, you need to configure Render on Save behavior for the extension: https://quarto.org/docs/tools/vscode.html#render-on-save Does this helps ?
Just so you know, I am running also windows and WSL and it works ok for me without doing this . I don't recall to have set this, and I think it is the default, but this env var is for me set to
Can you link to the issue ? |
Beta Was this translation helpful? Give feedback.
thanks for the reply.
it could be reproduced just by changing an hello world of quarto like this:
however after better looking I found that by addressing the second issue using this fix:
#4594 (comment)
also the first one is fixed!