Luatex cannot find input file when using texify on windows
- [ ] I have read the MiKTeX Contributing Guidelines
Setup
- Updated MiKTeX on clean Win10
Reproduction
- Open terminal to document folder (so we give texify a relative path)
- Try to run luatex using texify on any simple input .tex file:
texify -b -p --engine=luatex --tex-option="--synctex=1" test.tex
Additonal Notes
It seems to me that this is being caused by odd handling of path slashes by texify. In the log it is apparent that texify is passing a mix of forward and backslashes to lualatex, which seems to be causing the problem. Interestingly, it seems that lualatex is the only engine having trouble with this. Pdflatex and xelatex work just fine despite the bad input parameter, and, in fact, seem to use the same kind of improper paths internally (see pdftex-example.txt )
Log
Texify output
$ texify -b -p --engine=luatex --tex-option="--synctex=1" ioas.tex
This is LuaTeX, Version 1.12.0 (MiKTeX 2.9.7300 64-bit)
restricted system commands enabled.
! Undefined control sequence.
<*> C:/Users/jptab/Documents/Press/machine/ioas\ioas
.tex
! I can't find file `C:/Users/jptab/Documents/Press/machine/ioas.tex'.
<*> ...rs/jptab/Documents/Press/machine/ioas\ioas.tex
(Press Enter to retry, or Control-Z to exit)
Please type another input file name: ^Z
! Emergency stop.
<*> ...rs/jptab/Documents/Press/machine/ioas\ioas.tex
270 words of node memory still in use:
1 hlist, 39 glue_spec nodes
avail lists: 2:12,3:1,4:1,5:3
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.
Sorry, but "MiKTeX Compiler Driver" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\jptab\AppData\Local\MiKTeX\2.9\miktex\log\texify.log
Lualatex Log
2020-03-03 21:56:18,256-0700 INFO lualatex - starting with command line: lualatex --interaction=scrollmode --synctex=1 C:/Users/jptab/Documents/Press/machine/ioas\ioas.tex
2020-03-03 21:56:23,656-0700 INFO lualatex - finishing with exit code 1
Texify log
2020-03-03 22:17:13,786-0700 INFO texify - starting with command line: "C:\Users\jptab\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\texify.exe" -b -p --engine=luatex --tex-option=--synctex=1 ioas.tex
2020-03-03 22:17:26,411-0700 FATAL texify - TeX engine failed for some reason (see log file).
2020-03-03 22:17:26,411-0700 FATAL texify - Info:
2020-03-03 22:17:26,411-0700 FATAL texify - Source: Programs\MiKTeX\texify\mcd.cpp
2020-03-03 22:17:26,411-0700 FATAL texify - Line: 1529
Config report initexmf-report.txt
This has been fixed.
I'm using MiKTeX on Windows 10 and I've been having a similar issue when the path to my tex file contains spaces. I reinstalled and updated MiKTeX (2.9.7400) today, and I was able to reproduce this issue almost identically, with the added requirement that at least one of the parent directories of the file or the file itself has a space in its name. Otherwise, texify works as expected. Again, it only happens when the luatex engine option is specified in texify, and it also seems to be an issue with the mishandling of backslashes in the path name.
The log files seem pretty similar, but here they are in case they are useful.
Log
Texify output
D:\Users\Directory with spaces>texify -b -p --engine="luatex" Standalone.tex
This is LuaHBTeX, Version 1.12.0 (MiKTeX 2.9.7400 64-bit)
restricted system commands enabled.
! Undefined control sequence.
<*> "D:/Users/Directory with spaces\Standalone
.tex"
! I can't find file `D:/Users/Directory with spaces.tex'.
<*> "D:/Users/Directory with spaces\Standalone.tex"
(Press Enter to retry, or Control-Z to exit)
Please type another input file name: ^Z
! Emergency stop.
<*> "D:/Users/Directory with spaces\Standalone.tex"
270 words of node memory still in use:
1 hlist, 39 glue_spec nodes
avail lists: 2:12,3:1,4:1,5:3
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.
Sorry, but "MiKTeX Compiler Driver" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\username\AppData\Local\MiKTeX\2.9\miktex\log\texify.log
Luatex log
2020-04-20 11:49:08,683-0400 INFO lualatex - this process (6300) started by 'texify' with command line: lualatex --interaction=scrollmode "D:/Users/Directory with spaces\Standalone.tex"
2020-04-20 11:49:12,208-0400 INFO lualatex - this process (6300) finishes with exit code 1
2020-04-20 11:49:12,209-0400 ERROR miktex.core - still open: C:\Users\awaw6\AppData\Local\MiKTeX\2.9\miktex/data/le/luahbtex\lualatex.fmt
Texify log
2020-04-20 11:49:08,467-0400 INFO texify - this process (10168) started by 'cmd' with command line: texify -b -p --engine=luatex Standalone.tex
2020-04-20 11:49:08,514-0400 INFO texify.core - start process: lualatex --interaction=scrollmode "D:/Users/Directory with spaces\Standalone.tex"
2020-04-20 11:49:12,251-0400 FATAL texify.core - TeX engine failed for some reason (see log file).
2020-04-20 11:49:12,251-0400 FATAL texify.core - Data:
2020-04-20 11:49:12,251-0400 FATAL texify.core - Source: Programs\MiKTeX\texify\mcd.cpp:1528
2020-04-20 11:49:12,253-0400 FATAL texify - TeX engine failed for some reason (see log file).
2020-04-20 11:49:12,253-0400 FATAL texify - Info:
2020-04-20 11:49:12,253-0400 FATAL texify - Source: Programs\MiKTeX\texify\mcd.cpp
2020-04-20 11:49:12,253-0400 FATAL texify - Line: 1528
initexmf-report
Simple input file
\documentclass{article} \title{Title} \author{Your Name} \begin{document} \maketitle \section{Introduction} This is where you will write your content. \end{document}
Thank you, will try to reproduce it...
Thank you. MiKTeX-LuaTeX now accepts path names with spaces.