Skip to content

Windows: infinite loop creating empty temp files when file deletion prohibited by ACL #10314

Open
@ZoomRmc

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:

  1. feature request: leave temporary file behind with --verbose #2288 needs to be renamed and reopened as examining temporary files is not solved.
  2. The fact that pandoc creates an .html temporary which is in fact a typst template combined with the user-provided typst input is very confusing:
    • Why not use a proper file extension or just omit it? Fixed in 7330ad5
    • Shouldn't direct conversion omit templating altogether? Not sure on this one. duh
  3. Doesn't pandoc attempt to use %TEMP% on Windows? I was under impression it does.

Encountered with Pandoc 3.5 on Windows 10

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions