Quarto preview only works on first call/render on draft document (blank page otherwise)

Open
#10,279 13 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
cli, web-dev

Research direction

Start by creating the blog with quarto create project blog website Website, adding draft: true to posts/post-with-code/index.qmd, and running quarto preview as described. Modify the draft and trace the preview refresh behavior; done means the draft continues to render instead of showing a blank page.

Written by the indexing model from the issue text.

Description

bug preview websites
Bug description

Quarto preview only works on first call/render on draft document.

Steps to reproduce
  1. Create a blog
quarto create project blog website Website
  1. Add draft: true to posts/post-with-code/index.qmd frontmatter.

  2. Preview the draft post

quarto preview posts/post-with-code/index.qmd
  1. Modify the draft post
Expected behavior

Quarto should still preview a draft even when modified.

Actual behavior

https://github.com/quarto-dev/quarto-cli/assets/8896044/9f8e7efd-d97d-4bbd-9564-f1bc25dbc802

Quarto check output

9724c3dd403d4e723bcb0a7e7bef6e49d23a353a

Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 99.9.9
      commit: 9724c3dd403d4e723bcb0a7e7bef6e49d23a353a
      Path: /Users/mcanouil/Projects/quarto/quarto-cli/package/dist/bin

Check file:///Users/mcanouil/Projects/quarto/quarto-cli/src/resources/vendor/deno-land/x/puppeteer@9-0-2/mod.ts
[✓] Checking tools....................OK
      TinyTeX: v2024.07.03
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /Users/mcanouil/Library/TinyTeX/bin/universal-darwin
      Version: 2024

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.4
      Path: /opt/homebrew/opt/python@3.12/bin/python3.12
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

(|) Checking R installation...........ℹ R version 4.4.1 (2024-06-14)
! Config '~/.Rprofile' was loaded!
[✓] Checking R installation...........OK
      Version: 4.4.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
      knitr: 1.46
      rmarkdown: 2.26

[✓] Checking Knitr engine render......OK
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.