quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
280 stars 19 forks source link

Bug: Quarto VSCode extenstion not refreshing markdown #403

Closed gsingh91 closed 2 months ago

gsingh91 commented 3 months ago

I am using the Quarto VSCode extension version 1.111.0 and quarto version 1.4.551. When use the quarto render feature, it renders successfully but any changes made during the rendering are not picked up in the output. I captured the behaviour:

screengrab

it was working till early last week, but has not been working now. Not sure what has changed. I have also checked with another colleague and they are seeing the same issue. Let me know if more information is needed.

kmasiello commented 2 months ago

I have done testing in various environments and have the same issue with Quarto v 1.5.27, extension v 1.111.0 Quarto v 1.3.340, extension v 1.79.0

cderv commented 2 months ago

I do think current status is to not re-render by default unless Render On Save configuration is set.

See this related issue and comments :

See about Render on Save at https://quarto.org/docs/tools/vscode.html#render-on-save

By default Quarto does not automatically render .qmd or .ipynb files when you save them. This is because rendering might be very time consuming (e.g. it could include long running computations) and it’s good to have the option to save periodically without doing a full render.

So I don't think you have a new updated preview unless you re-render or this configuration is active.

it was working till early last week, but has not been working now. Not sure what has changed.

Did you update the extension recently? Or maybe add this option set and now unset ?

The --no-watch-inputs flag is there since a long time https://github.com/quarto-dev/quarto/blob/3bd070a1ffabd0b2dc80c67f5d9fa9a2d8bee896/apps/vscode/src/providers/preview/preview.ts#L477 From quarto preview --help

--no-watch-inputs            - Do not re-render input files when they change.

I looked if this would have changed since #307

gsingh91 commented 2 months ago

Thanks @cderv . I could not figure out if the setting changed recently, but changing it back worked for me. We can close this issue, appreciate your help.