Replies: 1 comment 4 replies
-
I am having a similar issue as well. In my case, that the environment variable Could you try |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Preliminary questions
I tried to install Latex some months ago, but it did not work and I wanted to try again. By googling the issue, I got to a report but I could not understand the solutions (I am "just a mechanical engineer" with very few computer knowledge 🥲 )
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
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.
The document is a sample document I found online. It should work :)
Describe the bug [Required]
I wanted to run the LaTeX script. By clicking on the "run button" in the top right corner in VSCode, I got this error:
Recipe terminated with fatal error: spawn latexmk ENOENT.
Logs [Required]
The Log message is the following:
[16:38:31] BUILD command invoked.
[16:38:31] The document of the active editor: file:///Users/robert/Desktop/Test.tex
[16:38:31] The languageId of the document: latex
[16:38:31] Current workspace folders: undefined
[16:38:31] Found root file from active editor: /Users/robert/Desktop/Test.tex
[16:38:31] Keep using the same root file: /Users/robert/Desktop/Test.tex
[16:38:31] Building root file: /Users/robert/Desktop/Test.tex
[16:38:31] Build root file /Users/robert/Desktop/Test.tex
[16:38:31] outDir: /Users/robert/Desktop
[16:38:31] Recipe step 1: latexmk
[16:38:31] Recipe step 1 args: ["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=/Users/robertblaszczyk/Desktop","/Users/robert/Desktop/Test"]
[16:38:31] Recipe step env: {}
[16:38:31] cwd: /Users/robert/Desktop
[16:38:31] LaTeX build process spawned. PID: undefined.
[16:38:31] LaTeX fatal error: spawn latexmk ENOENT, . PID: undefined.
[16:38:31] Does the executable exist? $PATH: /opt/homebrew/Caskroom/miniforge/base/bin:/opt/homebrew/Caskroom/miniforge/base/condabin:opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin:/opt/homebrew/bin
[16:38:31] Does the executable exist? $Path: undefined
[16:38:31] The environment variable $SHELL: /bin/zsh
Desktop [Required]
Please write exact version numbers. Please don't write
latest
instead of exact numbers.If you need any additional information let me know, I will try to provide them. Thank you already in advance for your help
Beta Was this translation helpful? Give feedback.
All reactions