Open cderv opened 4 weeks ago
Hi, I have the same type of problem when trying to generate a pdf. Sometimes for the same qmd file the access to the temporary tex file in the quarto-session directory is denied with the error code 32 (an other process is using the file). I can see that the temporary tex file is troncated when the error occurs. I use the last stable rstudio version 2024.04.2 Build 764. Windows 10 pro. Thanks if you can correct this behavior
==> quarto preview exemples_brochure.qmd --to pdf --no-watch-inputs --no-browse
processing file: exemples_brochure.qmd |................................ | 62% [unnamed-chunk-4]pdfcrop: security risk: running with elevated privileges pdftex: security risk: running with elevated privileges |................................................ | 92% [unnamed-chunk-6]pdfcrop: security risk: running with elevated privileges pdftex: security risk: running with elevated privileges
output file: exemples_brochure.knit.md
pandoc to: latex output-file: exemples_brochure.tex standalone: true pdf-engine: xelatex variables: graphics: true tables: true default-image-extension: pdf
metadata documentclass: scrartcl classoption:
ERROR: Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus. (os error 32): writefile 'C:\Users\GUY~1.HED\AppData\Local\Temp\quarto-session35821157\112aecb1\6ca0dc3a.tex'
Stack trace: at writeFileSync (ext:deno_fs/30_fs.js:769:7) at Object.writeTextFileSync (ext:deno_fs/30_fs.js:832:10) at processLines (file:///C:/PROGRA~1/RStudio/RESOUR~1/app/bin/quarto/bin/quarto.js:71002:22) at eventLoopTick (ext:core/01_core.js:183:11) at async file:///C:/PROGRA~1/RStudio/RESOUR~1/app/bin/quarto/bin/quarto.js:70969:9 at async Object.complete (file:///C:/PROGRA~1/RStudio/RESOUR~1/app/bin/quarto/bin/quarto.js:70082:37) at async Object.onPostProcess (file:///C:/PROGRA~1/RStudio/RESOUR~1/app/bin/quarto/bin/quarto.js:77272:36) at async renderFileInternal (file:///C:/PROGRA~1/RStudio/RESOUR~1/app/bin/quarto/bin/quarto.js:77256:5) at async renderFiles (file:///C:/PROGRA~1/RStudio/RESOUR~1/app/bin/quarto/bin/quarto.js:77068:17) at async render (file:///C:/PROGRA~1/RStudio/RESOUR~1/app/bin/quarto/bin/quarto.js:81813:21)
@GuyHedelin Your issue is unrelated. You are using LaTeX not Typst. Also copy/pasting a log without code/context is not helpful. Please open a new issue and follow the guidelines provided when doing so. Thank you! Don't open a new issue if you are working inside a directory synchronised on a Cloud service such as OneDrive, DropBox, etc. This is a known and already reported issue.
Hi, I have a similar issue as #6616 when attempting to render to typst. It happens only when my input file includes template partials in the frontmatter.
I am using Windows and calling Quarto from the Anaconda Powershell console.
Actual behavior
The error points to a path the does not exist, starting from the quarto-session folder: 'C:\Users\abcd~1\AppData\Local\Temp\quarto-session5f604da5085388b6\56d80c0e57b03f0\3b45073bb66480b1\typst-show2.typ'
Observations:
Stuff I tried and did not work
The minimal quarto file is:
Quarto check output
My environment
Edition: Windows 10 Pro Version: 22H2 OS build 19045.4651 Experience: Windows Feature Experience Pack 1000.19060.1000.0
I have the minimal example as well as the template partials in my repo: https://github.com/poc-chuc/quarto_and_typst
Originally posted by @poc-chuc in https://github.com/quarto-dev/quarto-cli/issues/6616#issuecomment-2290795012