question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LaTeX toolchain terminated with error

See original GitHub issue

Description

Building a .tex file does not work. latexmk and texlive is properly installed.

How to reproduce

  1. Open a .tex file
  2. Press ctrl+shift+p
  3. Search for Build LaTeX project and hit enter.

Expected behavior

Correct PDF is created.

Actual behavior

In the .tex file folder filename.fdb_latexmk and filename.aux are generated. filename.fdb_latexmk contains:

# Fdb version 3
["pdflatex"] 1499886694 "/home/nfode/test/test.tex" "test.pdf" "test" 1499886694
  "/home/nfode/test/test.tex" 1499886430 2444 f714e27fca8b549e8ee059a2ea1aa60f ""
  "test.aux" 1499886441 8 a94a2480d3289e625eea47cd1b285758 ""
  (generated)
  "test.log"
  "test.pdf"

filename.aux contains:

\relax 

And there is the error: LaTeX toolchain terminated with error in the statusbar.

LaTeX Workshop log messages

Log messages
There are no log messages.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
tvaldcommented, Aug 1, 2017

I had to completely restart VS Code (quit all instances) before it was able to find latexmk.

7reactions
James-Yucommented, Jul 15, 2017

[17:58:35] LaTeX fatal error: spawn latexmk ENOENT, . Does the executable exist?

The extension cannot find latexmk, which should be in PATH. Otherwise, you need to specify its location.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proper toolchain for pdfLaTeX and psfrag including hyperref
I reported the issue here pdfLaTeX fails on pstool when hyperref is included. Maybe it is related to here Is pstool incompatible with...
Read more >
When I compile LaTex in Visual Studio Code, it says “recipe ...
When I compile LaTex in Visual Studio Code, it says “recipe terminated with error”. How do I run LaTeX in VSC using Windows...
Read more >
[Help] Trouble compiling LaTeX in VS Code - Reddit
SO just in case someone is searching for a solution. I had the same error but with WSL2 on VSCode. Installing texlive-full on...
Read more >
Recipe terminated with fatal error: spawn latexmk ENOENT
I had the same problem. The root cause was: (1) software's bin folder missing from PATH; (2) bad file privileges. Consequently, VSC couldn't ......
Read more >
Recipe terminated with error. vscode latex-workshop新的配置 ...
workshop 更新了以后toolchain取消了,改为用tools和recipeslatex workshop由原来的toolchain改为了recipes,其实按照之前的toolchain文件很容易就 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found