Not able to compile the document. #3103
Unanswered
PrakashChetan
asked this question in
Q&A
Replies: 1 comment
-
The logs say that there is no
May be related to #1143 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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]
I am not able to compile the document.
To Reproduce
Steps to reproduce the behavior:
[22:29:45] LaTeX fatal error: spawn latexmk ENOENT, . PID: undefined.
[22:29:45] Does the executable exist? $PATH: /home//.texlive/2021/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[22:29:45] Does the executable exist? $Path: undefined
Expected behavior
Compile The document
Logs [Required]
LaTeX Workshop Output [Required]
[22:42:25] Initializing LaTeX Workshop.
[22:42:25] Extension root: /home//.vscode/extensions/james-yu.latex-workshop-8.21.1
[22:42:25] $PATH: /home//.texlive/2021/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[22:42:25] $SHELL: /bin/bash
[22:42:25] vscode.env.appName: Visual Studio Code
[22:42:25] vscode.env.remoteName: undefined
[22:42:25] vscode.env.uiKind: 1
[22:42:25] latex-workshop.bind.enter.key: true
[22:42:25] latex-workshop.docker.enabled: false
[22:42:25] latex-workshop.docker.image.latex: ""
[22:42:25] latex-workshop.intellisense.package.enabled: true
[22:42:25] latex-workshop.intellisense.update.aggressive.enabled: false
[22:42:25] latex-workshop.intellisense.update.delay: 1000
[22:42:25] latex-workshop.latex.autoBuild.run: "onFileChange"
[22:42:25] latex-workshop.latex.outDir: "%DIR%"
[22:42:25] latex-workshop.latex.recipes: [
{
"name": "latexmk 🔃",
"tools": [
"latexmk"
]
},
{
"name": "latexmk (latexmkrc)",
"tools": [
"latexmk_rconly"
]
},
{
"name": "latexmk (lualatex)",
"tools": [
"lualatexmk"
]
},
{
"name": "pdflatex ➞ bibtex ➞ pdflatex × 2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
},
{
"name": "Compile Rnw files",
"tools": [
"rnw2tex",
"latexmk"
]
},
{
"name": "Compile Jnw files",
"tools": [
"jnw2tex",
"latexmk"
]
},
{
"name": "tectonic",
"tools": [
"tectonic"
]
}
]
[22:42:25] latex-workshop.latex.tools: [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "latexmk_rconly",
"command": "latexmk",
"args": [
"%DOC%"
],
"env": {}
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
],
"env": {}
},
{
"name": "rnw2tex",
"command": "Rscript",
"args": [
"-e",
"knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
},
{
"name": "jnw2tex",
"command": "julia",
"args": [
"-e",
"using Weave; weave("%DOC_EXT%", doctype="tex")"
],
"env": {}
},
{
"name": "jnw2texmintex",
"command": "julia",
"args": [
"-e",
"using Weave; weave("%DOC_EXT%", doctype="texminted")"
],
"env": {}
},
{
"name": "tectonic",
"command": "tectonic",
"args": [
"--synctex",
"--keep-logs",
"%DOC%.tex"
],
"env": {}
}
]
[22:42:25] latex-workshop.viewer.pdf.internal.keyboardEvent: "auto"
[22:42:25] Creating a new file watcher.
[22:42:25] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{"stabilityThreshold":250}}
[22:42:25] Creating PDF file watcher.
[22:42:25] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{}}
[22:42:25] Creating Bib file watcher.
[22:42:25] watcherOptions: {"useFsEvents":false,"usePolling":false,"interval":300,"binaryInterval":1000,"awaitWriteFinish":{"stabilityThreshold":250}}
[22:42:25] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[22:42:25] [Server] Creating LaTeX Workshop http and websocket server.
[22:42:25] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[22:42:25] LaTeX Workshop initialized.
[22:42:25] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[22:42:25] Trigger characters for intellisense of LaTeX documents: ["\",",","{"]
[22:42:25] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[22:42:25] Current workspace folders: undefined
[22:42:25] Current workspaceRootDir:
[22:42:25] [Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":33301}
[22:42:25] Snippet data loaded.
[22:44:36] Current workspace folders: undefined
[22:44:36] Current workspaceRootDir:
[22:44:36] Found root file from active editor: /home//Documents/LaTeX/CV.tex
[22:44:36] Root file changed: from undefined to /home//Documents/LaTeX/CV.tex
[22:44:36] Start to find all dependencies.
[22:44:36] Root file languageId: latex
[22:44:36] Reset file watcher.
[22:44:36] Parsing a file and its subfiles: /home//Documents/LaTeX/CV.tex
[22:44:36] Parse fls file.
[22:44:36] Cannot find fls file: /home//Documents/LaTeX/CV.fls
[22:44:36] Added to file watcher: /home//Documents/LaTeX/CV.tex
[22:44:36] Checking for duplicate labels: /home//Documents/LaTeX/CV.tex.
[22:44:38] Manager.fileWatcher.getWatched: {"/home//Documents/LaTeX":["CV.tex"]}
[22:44:38] Manager.filesWatched: ["/home//Documents/LaTeX/CV.tex"]
[22:44:38] BibWatcher.bibWatcher.getWatched: {}
[22:44:38] BibWatcher.bibsWatched: []
[22:44:38] PdfWatcher.pdfWatcher.getWatched: {}
[22:44:38] PdfWatcher.pdfsWatched: []
[22:44:38] BUILD command invoked.
[22:44:38] The document of the active editor: file:///home//Documents/LaTeX/CV.tex
[22:44:38] The languageId of the document: latex
[22:44:38] Current workspace folders: undefined
[22:44:38] Current workspaceRootDir:
[22:44:38] Found root file from active editor: /home//Documents/LaTeX/CV.tex
[22:44:38] Keep using the same root file: /home//Documents/LaTeX/CV.tex
[22:44:38] Building root file: /home//Documents/LaTeX/CV.tex
[22:44:38] Build root file /home//Documents/LaTeX/CV.tex
[22:44:38] outDir: /home//Documents/LaTeX
[22:44:38] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=/home//Documents/LaTeX,/home//Documents/LaTeX/CV
[22:44:38] Recipe step env: {}
[22:44:38] cwd: /home//Documents/LaTeX
[22:44:38] LaTeX build process spawned. PID: undefined.
[22:44:38] LaTeX fatal error: spawn latexmk ENOENT, . PID: undefined.
[22:44:38] Does the executable exist? $PATH: /home//.texlive/2021/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[22:44:38] Does the executable exist? $Path: undefined
[22:44:38] The environment variable $SHELL: /bin/bash
[22:44:40] Manager.fileWatcher.getWatched: {"/home//Documents/LaTeX":["CV.tex"]}
[22:44:40] Manager.filesWatched: ["/home//Documents/LaTeX/CV.tex"]
[22:44:40] BibWatcher.bibWatcher.getWatched: {}
[22:44:40] BibWatcher.bibsWatched: []
[22:44:40] PdfWatcher.pdfWatcher.getWatched: {}
[22:44:40] PdfWatcher.pdfsWatched: []
Developer Tools Console [Required]
ERR [Extension Host] (node:18826) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use
code --trace-deprecation ...
to show where the warning was created)workbench.desktop.main.js:sourcemap:77 [Extension Host] (node:18826) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use
code --trace-deprecation ...
to show where the warning was created)E @ workbench.desktop.main.js:sourcemap:77
workbench.desktop.main.js:sourcemap:788 Recipe terminated with fatal error: spawn latexmk ENOENT.
Desktop [Required]
Please write exact version numbers. Please don't write
latest
instead of exact numbers.Additional questions
Are you using VSCodium?
No
Are you using the Snap or Flatpack versions of VS Code?
Yes
Are you using LaTeX Workshop with VS Code Remote?
No
Beta Was this translation helpful? Give feedback.
All reactions