Skip to content

Show full path of _quarto.yml when error happens #6625

@arthur-shaw

Description

@arthur-shaw

Bug description

After receiving Windows 10 updates on a corporate device, Quarto stopped rendering documents. Hoping that this could be resolved by updating Quarto, IT installed the latest RStudio and Quarto.

When trying to render a simple HTML file, I get the following error message while Quarto continues to try to render (without success)

PS C:\Users\wb393438\Downloads> quarto preview c:/Users/wb393438/Downloads/quarto_issue/quarto_issue.qmd --no-browser --no-watch-inputs
ERROR: Project _quarto.yml validation failed.

(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 7, columns 13--16) Field "search" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:navbar:search.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 5, columns 20--23) Field "page-navigation" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:page-navigation.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


Error: Project _quarto.yml validation failed.

(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 7, columns 13--16) Field "search" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:navbar:search.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 5, columns 20--23) Field "page-navigation" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:page-navigation.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.

    at readAndValidateYamlFromFile (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:42120:15)
    at async file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:82871:26
    at async projectContext (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:82723:26)
    at async Command.fn (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:103695:25)
    at async Command.execute (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:8437:13)
    at async quarto (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:127539:5)
    at async file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:127557:9

Since nothing changed on my system apart from the Windows 10 updates (and whatever else IT packaged with it), I suspect that there's been a change in policy that prevents Quarto from doing it's work. While I know that this is a broad question, what might prevent Quarto from working? Put another way, what system permissions are necessary on Windows for Quarto to run correctly?

Steps to reproduce

---
format: html
---

Hello, World

Expected behavior

This should render an HTML file.

Actual behavior

This error appears in the terminal:

PS C:\Users\wb393438\Downloads> quarto preview c:/Users/wb393438/Downloads/quarto_issue/quarto_issue.qmd --no-browser --no-watch-inputs
ERROR: Project _quarto.yml validation failed.

(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 7, columns 13--16) Field "search" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:navbar:search.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 5, columns 20--23) Field "page-navigation" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:page-navigation.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


Error: Project _quarto.yml validation failed.

(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 23, columns 10--12) Field "toc" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location format:html:toc.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 7, columns 13--16) Field "search" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:navbar:search.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.


(line 5, columns 20--23) Field "page-navigation" has value yes, which must instead be `true` or `false`

x The value yes is a string.
i The error happened in location website:page-navigation.
i Quarto uses YAML 1.2, which interprets booleans strictly.
i Try using true instead.

    at readAndValidateYamlFromFile (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:42120:15)
    at async file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:82871:26
    at async projectContext (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:82723:26)
    at async Command.fn (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:103695:25)
    at async Command.execute (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:8437:13)
    at async quarto (file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:127539:5)
    at async file:///C:/Program%20Files/RStudio/resources/app/bin/quarto/bin/quarto.js:127557:9
PS C:\Users\wb393438\Downloads> 

Your environment

  • IDE: VSCode
Version: 1.81.1 (user setup)
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:22:42.175Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19044
  • Quarto
PS C:\Users\wb393438\Downloads> quarto --version
1.3.353
  • OS:
OS Name	Microsoft Windows 10 Enterprise
Version	10.0.19044 Build 19044

Quarto check output

[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
Sending fatal alert BadCertificate
      Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.3.353
      Path: C:\Program Files\RStudio\resources\app\bin\quarto\bin
      CodePage: 1252

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

[>] Checking Python 3 installation....OK
      Version: 3.11.2
      Path: C:/Users/wb393438/AppData/Local/Programs/Python/Python311/python.exe
      Jupyter: (None)

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

[>] Checking R installation...........OK
      Version: 4.2.2
      Path: C:/PROGRA~1/R/R-42~1.2
      LibPaths:
        - C:/Program Files/R/R-4.2.2/library
      knitr: 1.43
      rmarkdown: 2.23

[>] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions