Directory management issue with PreTeXt CLI 2.3+ on Windows

34 views
Skip to first unread message

Sean Fitzpatrick

unread,
Jul 18, 2025, 2:30:18 PM7/18/25
to PreTeXt support
With both 2.3.0 and 2.3.1 I am getting an error when building on Windows as follows:

error: Unable to release temporary directories.  Please report this error to pretext-support
critical: There were errors during the build.  See above.
critical: Failed to build without errors.  Exiting...

There's nothing more in the log, so I thought I should run with debugging turned on for more details.

BUT! But... with debugging on there are no errors, because debugging leaves the temp directories behind.
So it seems that the CLI can create the temp directories, but can't remove them when it's done for some reason.

Randall H

unread,
Mar 26, 2026, 10:27:33 AM (4 days ago) Mar 26
to PreTeXt support
I have the exact same issue now.  My project now fails to build.  Is there a resolution for this?  

Sean Fitzpatrick

unread,
Mar 26, 2026, 10:48:14 AM (4 days ago) Mar 26
to pretext...@googlegroups.com
I've figured out that the problem is isolated to directories that are backed up by OneDrive. 

If you use a local folder that you don't allow OneDrive to see, then you should be able to build without errors. 

If that's not an option, you'll need to run with the -v debug flag.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/0c417fc7-e190-43f6-833a-a206e52d3bebn%40googlegroups.com.

Randall H

unread,
Mar 26, 2026, 2:20:51 PM (3 days ago) Mar 26
to pretext...@googlegroups.com
Thanks for this.  This isn't my resolution, so I will keep searching. 

You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/Y0tBpDjfr9I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CAH%2BNcPbNkCk2MAGOiPM6pfZOehJj0APd7ONtdFuuym_JCjGf3A%40mail.gmail.com.

Randall H

unread,
Mar 27, 2026, 12:40:11 PM (2 days ago) Mar 27
to PreTeXt support
Alright, this just happened to me again.  This time, I made zero changes to my files, and I got these critical errors with no output.  

Sean Fitzpatrick

unread,
Mar 27, 2026, 3:42:17 PM (2 days ago) Mar 27
to pretext...@googlegroups.com
What if you use the debug flag? 

E.g. 'pretext -v debug build web'

Reply all
Reply to author
Forward
0 new messages