quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.91k stars 322 forks source link

Quarto render error for pre-crafted template #7030

Closed Thanh-8213 closed 11 months ago

Thanh-8213 commented 1 year ago

Bug description

Quarto render error for one template on my machine (Other machines work)

Steps to reproduce

The template came from: https://github.com/numbats/monash-quarto-thesis

I ran quarto render in the terminal.

Expected behavior

I expected to see the file in the pre-defined format.

Actual behavior

Error returned: Error: Theme file compilation failed:

at dartCommand (file:///C:/PROGRA~1/Quarto/bin/quarto.js:59894:15)
at async dartCompile (file:///C:/PROGRA~1/Quarto/bin/quarto.js:59856:5)
at async compileWithCache (file:///C:/PROGRA~1/Quarto/bin/quarto.js:60084:17)
at async compileSass (file:///C:/PROGRA~1/Quarto/bin/quarto.js:59946:12)
at async resolveSassBundles (file:///C:/PROGRA~1/Quarto/bin/quarto.js:76333:27)
at async resolveExtras (file:///C:/PROGRA~1/Quarto/bin/quarto.js:80428:18)
at async runPandoc (file:///C:/PROGRA~1/Quarto/bin/quarto.js:79983:24)
at async renderPandoc (file:///C:/PROGRA~1/Quarto/bin/quarto.js:81044:26)
at async Object.onRender (file:///C:/PROGRA~1/Quarto/bin/quarto.js:98878:42)
at async renderFiles (file:///C:/PROGRA~1/Quarto/bin/quarto.js:86636:25)

Your environment

─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────────── setting value version R version 4.3.1 (2023-06-16 ucrt) os Windows 11 x64 (build 22621) system x86_64, mingw32 ui RStudio language (EN) collate English_Australia.utf8 ctype English_Australia.utf8 tz Australia/Sydney date 2023-09-27 rstudio 2023.06.2+561 Mountain Hydrangea (desktop) pandoc NA

Quarto check output

$ quarto check

[>] Checking versions of quarto binary dependencies... Pandoc version 3.1.1: OK Dart Sass version 1.55.0: OK [>] Checking versions of quarto dependencies......OK [>] Checking Quarto installation......OK Version: 1.3.450 Path: C:\Program Files\Quarto\bin CodePage: 1252

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

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

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

[>] Checking R installation...........OK Version: 4.3.1 Path: C:/PROGRA~1/R/R-43~1.1 LibPaths:

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

dragonstyle commented 1 year ago

I attempted to reproduce this locally and could not. It would be helpful if you could try to narrow the issue - since it works on many machines and fails on one, it is likely there is something about the configuration about that machine which is causing the failure. Given the error message, I wonder whether some policy regarding .bat files is related (the SASS compilation on windows is initiated by a .bat file).

mcanouil commented 1 year ago

I can't repro either on macOS using both stable or development version.

@Thanh-8213 Could you read and test the commands from the following issue to try out the hypothesis from @dragonstyle ?

cderv commented 1 year ago

It seems exactly this issue. About the commands to run, more precisely you can follow the debug step I gave in this thread last time we encountered this issue:

Thanks!

github-actions[bot] commented 1 year ago

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. If you are still facing the issue, please review the "Bug Reports" guide on how to provide a fully reproducible example as a self-contained Quarto document or a link to a Git repository. Without a reproducible example, it is unlikely that the issue will be addressed.

You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````).

````qmd
---
title: "Reproducible Quarto Document"
format: html
---

This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.

```{r}
plot(cars)

The end.