fatal error: spawn latexmk ENOENT #3104
Replies: 5 comments 1 reply
-
|
Might I add that compiling through CLI does work. Here's a log: > latexmk proj_desc.tex
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 29 September 2020, version: 4.70b.
Latexmk: applying rule 'latex'...
Rule 'latex': The following rules & subrules became out-of-date:
'latex'
------------
Run number 1 of rule 'latex'
------------
------------
Running 'latex -recorder "proj_desc.tex"'
------------
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./proj_desc.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/mathpazo.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/ot1pplx.fd))
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./proj_desc.aux)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/omlzplm.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/omszplm.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/omxzplm.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/ot1zplm.fd) [1]
(./proj_desc.aux) )
Output written on proj_desc.dvi (1 page, 528 bytes).
Transcript written on proj_desc.log.
Latexmk: Examining 'proj_desc.log'
=== TeX engine is 'pdfTeX'
Latexmk: Log file says output to 'proj_desc.dvi'
Latexmk: applying rule 'latex'...
Rule 'latex': File changes, etc:
Changed files, or newly in use since previous run(s):
'proj_desc.aux'
------------
Run number 2 of rule 'latex'
------------
------------
Running 'latex -recorder "proj_desc.tex"'
------------
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./proj_desc.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/mathpazo.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/ot1pplx.fd))
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./proj_desc.aux)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/omlzplm.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/omszplm.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/omxzplm.fd)
(/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/ot1zplm.fd) [1]
(./proj_desc.aux) )
Output written on proj_desc.dvi (1 page, 528 bytes).
Transcript written on proj_desc.log.
Latexmk: Examining 'proj_desc.log'
=== TeX engine is 'pdfTeX'
Latexmk: Log file says output to 'proj_desc.dvi'
Latexmk: All targets (proj_desc.dvi) are up-to-date |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
I had the same problem. Maybe you can try to modify the privilege of LaTeX executable files: |
Beta Was this translation helpful? Give feedback.
-
|
Don't waste any more time—after trying at least 10 different solutions, the only one that works is installing the Full MacTeX |
Beta Was this translation helpful? Give feedback.
-
|
For those seeing this same problem in Windows using WSL (Windows Subsystem for Linux), with TeX installed on the WSL (Linux) file system: The same problem (or at least the same error) shows up when running under WSL in Windows (11, and probably 10). The solution I found was to open the .tex file using the WSL file open ("WSL: Open folder in WSL...") rather than using the native Windows File open dialog. This forces/allows the LaTeX Workshop to use the Linux file system to look for the various TeX executables. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]
You still see this issue?: Yes
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: Yes
Describe the bug [Required]
A clear and concise description of what the bug is.
To Reproduce
.texfile, such as:command + Sor buildshift + command + BExpected behavior
Upon saving (i.e.
command + S) or building the project (i.e.shift + command + B), the.texfile should compile successfully and show the preview as desired.Logs [Required]
LaTeX Workshop Output [Required]
Developer Tools Console [Required]
Screenshots
Desktop [Required]
Please write exact version numbers. Please don't write
latestinstead of exact numbers.OS: macOS 11.2.3 20D91 x86_64v8.16.1TexLive2020Additional questions
Are you using VSCodium?
No
Are you using LaTeX Workshop with VS Code Remote?
No
If the answer is Yes, please write which one you are using. Write the versions of the remote extension.
N/A
Additional context
Examining the log made me suspect a potential
PATHissue, but invokingecho $PATHcurrently shows:Using the same

PATH,TexStudiowas able to compile and render properly.Beta Was this translation helpful? Give feedback.
All reactions