Windows: infinite loop creating empty temp files when file deletion prohibited by ACL #10314
Open
Description
In an attempt to debug the temporary html file created producing the PDF file, the current working directory permissions were changed to prohibit file deletion. Running
pandoc --pdf-engine typst test.typ -o test.pdf
in this directory starts producing empty temporary files in an infinite loop and requires killing the process. Files are zero-length and of "tmp" extension, meaning it happens before Pandoc is able to write to it and save it.
Related:
- feature request: leave temporary file behind with --verbose #2288 needs to be renamed and reopened as examining temporary files is not solved.
The fact that pandoc creates an:.html
temporary which is in fact a typst template combined with the user-provided typst input is very confusingWhy not use a proper file extension or just omit it?Fixed in 7330ad5Shouldn't direct conversion omit templating altogether? Not sure on this one.duh
- Doesn't pandoc attempt to use %TEMP% on Windows? I was under impression it does.
Encountered with Pandoc 3.5 on Windows 10