-
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
VSCode extension : Render on Save not working as expected #6440
Comments
I cannot reproduce. Screen.Recording.2023-08-07.at.21.55.11.mov |
The issue is in your setup. See https://github.com/mcanouil/quarto-issues/tree/main/quarto-cli-6440. Screen.Recording.2023-08-12.at.11.15.53.movNote: I am using the latest versions of everything. |
Seems like the button has a different behavior to what I am using: Press F1 Are you reproducing my issue with that path? Render button works for me but doesn't give me the functionality I want since I am developing multiple pages of a website, i.e. it doesn't render on save across Another subtle difference I notice (besides different Hopefully it's not a lot of work to either bring Render on Save functionality into the Quarto Render command path or else bring those code paths closer if it makes sense? (and if you reproduce behavior I see) In the meantime, I will use |
As any website by definition. I don't understand your issue with using the default preview button. Screen.Recording.2023-08-12.at.12.53.00.mov |
You hit multiple Render buttons to show live updates to separate pages - this isn't merely saving the file, which is what I expect by Render on Save when working with a website. We can argue this expectation might be bad for the button (its unclear if Render should apply to the page or the project - it clearly applies to the page), but when I run So try this to reproduce: Hit Render on the index.qmd file, then navigate to About in the preview, then edit-save About.qmd - does it update? No? Should it? Separately: Run Finally: Run |
Did you look at the video? |
Oh, you hovered where I thought you clicked. So you clicked once. Apologies. So this is what I'm understanding from the video: You are getting a live render for index.qmd - as that is where you clicked the button. When you edited index.qmd where you were navigated to the About page, the preview was brought back to the index page. However when you edited about.qmd from browsing at the index page, the preview was not brought back to the About page.
The button is a little ambiguous because it does not say Render Project, however the command |
Currently Quarto does not follow/sync with code changes when previewing, so you have to navigate to the pages you changed. Regarding the "ambiguous" naming, this has been discussed in Quarto team. |
Thank you for using Quarto and reporting an issue! Unfortunately, this issue is now considered stale because it has been opened since 14 days without providing a "working" reproducible example to help us investigate. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four
|
@cscheid @jjallaire any pointer here? I would personally assume, |
(@mcanouil sorry to revive this old issue, but I don't understand your question here, and I'd like to.) |
Sorry, I still don't understand. it's "render-on-save", not "save-on-render". Why should an option that triggers on save have any effect on a command that is about rendering? |
I think at that time, there was a preview but it was not trigger on save when "render all". |
But I really need to check and test again the VSCode commands (I don't use the render on save option in my day to day work). For instance the command has been renamed since this issue. |
Let's close this as, I tried and everything seems to work as I would expect (at least now). The original post issue was a confusion with preview/render and the |
Re-qualifying this as support and closing. In case, there is still an issue, please go to https://github.com/quarto-dev/quarto. |
If the original issue was a confusion, I don't think the UI change addresses this. The button says Preview, but the Preview command is tied to a single qmd file - including for a website project. I can only determine this by studying the command that's issued. Preview This Page as button would mitigate my confusion. Preview doesn't improve it. |
Issue is more related to VSCode extension than Quarto CLI, i.e., VSCode extension is missing a "preview project" command. Currently, the |
Hi all, I have the same problem. I am on a Windows 10 machine, Quarto v1.5.56, VSCode v1.92.2 (user setup). I am editing a website using Quarto. Everything works fine except for previewing the changes I produce in the document. Suppose I produce some changes in the document and try previewing them by typing the usual shortcut Thanks. |
@VivaldoMendes This issue is closed. Please open a new GitHub Discussion possibly referencign this issue. Thank you! |
Bug description
Hi!
Using VSCode extension Render on Save doesn't appear to be obeyed for my website project in the latest 1.4 Quarto.
quarto preview
(i.e. bypassing extension) is a good workaround for my usecase, but interested in whats going wrong and getting this working inside VSCode.Thanks!
Declan
Steps to reproduce
Expected behavior
Expect a reload as I save
.qmd
pages (because Render on Save is turned on in extension preferences)Actual behavior
No refresh, I need to Render pages individually to pick up changes
Your environment
Ubuntu 22.04.2 LTS
VSCode Quarto extension v1.91.0
Quarto check output
The text was updated successfully, but these errors were encountered: