Open victorrssx opened 3 months ago
I don't think this is an RStudio bug. This is a quarto preview
bug more generally, where we fail to rerender some parts of the document that are project-wide.
I have met the same issue and created a minimal producible repo for it: https://github.com/drtingtp/quarto-cli-issue-10392
Setting project > preview > nagivate as false
does not disable the auto navigate behaviour.
_quarto.yml
:
project:
preview:
navigate: false
...
Actual behavior
Changes are effectively made only after stop background job and render the document again.
...
For my case, without stopping the preview session, saving the _quarto.yml
file will trigger a refresh that renders the preview correctly again.
Bug description
The problem initially occurred at Quarto books that I've been writing. After I make changes to a specific chapter and click 'Render', Quarto renders the document correctly, but RStudio does not show the new file in the viewer pane (the old one remains). It only updates when I stop the background job and render it again.
I tried changing every single piece of the
yaml
file to track down where the problem was but I was unsuccessful (which gave me a intuinton that the problem was not in that part). So I decided to create a new Quarto book project from scratch and add small changes to see when it would happen again.Curiously the default Quarto book doesn't have this problem. But when I changed the default
_quarto.yaml
chapters part (code above), then the problem returned!Also I noticed some things:
_quarto.yaml
is modified and changes saved, the document updates automaticallySteps to reproduce
test.qmd
file with one 'Test' h1 header_quarto.yaml
chapters part totest.qmd
file and click on 'Render' button to run the current documentAfter this process only sidebar chapter title and breadcrumb should have changed (at least here)
Expected behavior
Changes should be addressed and displayed in the RStudio viewer panel.
Actual behavior
Changes are effectively made only after stop background job and render the document again.
Your environment
Quarto check output