You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm facing an issue where a temporary file cannot be written during the compilation process when shell-escape is enabled to use the minted package.
I suspect the issue comes from the fact, that some of my source files lie in a subdirectory of the root src directory and the file creation in the tmp directory fails as the subdirectory is not explicitly created before writing the file.
If this is the case, a simple call to the std::fs::create_dir_all function should be able to create the subdirectories before trying to write files into them.
Full error log
warning: lineno.sty:296: Invalid UTF-8 byte or sequence at line 296 replaced by U+FFFD.
warning: open of input /dev/null.tex failed
caused by: access to the path `/dev/null.tex` is forbidden
warning: open of input /dev/null.tex failed
caused by: access to the path `/dev/null.tex` is forbidden
error: failed to create file `/tmp/.tmpdFJUpo/chapters/results.aux`
caused by: No such file or directory (os error 2)
error: failed to execute the shell-escape command "uname -s > "doc.w18"": execution of the request failed
error: ifplatform.sty:92: Package catchfile Error: File `doc.w18' not found.
See the catchfile package documentation for explanation.
Type H <return> for immediate help
error: halted on potentially-recoverable error as specified
The text was updated successfully, but these errors were encountered:
@derchr Thank you for digging into this! Would you be in a position to submit this patch as a pull request?
Yes, I can create a pull request. However, I do not have the knowledge of the code base to evaluate if this is the right fix to do, it just seemed to work in my case.
Hello,
I'm facing an issue where a temporary file cannot be written during the compilation process when shell-escape is enabled to use the minted package.
I suspect the issue comes from the fact, that some of my source files lie in a subdirectory of the root src directory and the file creation in the tmp directory fails as the subdirectory is not explicitly created before writing the file.
If this is the case, a simple call to the
std::fs::create_dir_all
function should be able to create the subdirectories before trying to write files into them.Full error log
The text was updated successfully, but these errors were encountered: