UPDATE - Solution found
With thanks to Alan I was able to resolve the issue. My two problems were.
- I didn't know how to set the correct paths in LaTeX Workshop on VSCode
- I hadn't corrrectly run the perl installation command from the tex-live installation page
Just a note to anyone struggling with the installation, when you get to the part with the perl script on this page. It will take at least 20 minutes - 40 minutes to download the necessary dependencies. I thought I had done something wrong, but in the end it all works now!
A big thanks to Alan for his help.
Original Issue
I'm new to this site and while I have read previous posts that are similar, I'm still unclear about the process. I'd appreciate it if you could hold off from judgement, until you've read the post.
I read this article which produces the unsuccessful result I'm getting. There are clues in it, but nothing crystal clear.
I'm new to Ubuntu and I'm trying to make sense of a lot of new processes... I would like to view .tex files in VSCodes LaTeX Workshop.
I'm able to see that I have 40 associated packages with latexmk which I found through the apt-file search latexmk.
usr/share/texlive exists and there are 174530 packages associated with it. I've downloaded LaTeX Workshop on to my VSCode instance.
I'm not sure which executables need to be presented in the path as there are so many packages although I do know how to to update the path. I also know that there are paths in the LaTeX Workshop setting configuration. Most of which I can set with usr/bin/latexmk or similar.
I'm really not sure what I'm missing. I've included a log of the error that I'm getting when I try to run Build LaTeX Project/
[15:33:39.209][Extension] $SHELL: /bin/bash [15:33:39.210][Extension] $LANG: C.UTF-8 [15:33:39.210][Extension] $LC_ALL: undefined [15:33:39.210][Extension] process.platform: linux [15:33:39.210][Extension] process.arch: x64 [15:33:39.210][Extension] vscode.env.appName: Visual Studio Code [15:33:39.210][Extension] vscode.env.remoteName: wsl [15:33:39.210][Extension] vscode.env.uiKind: 1 [15:33:39.211][Extension] LaTeX Workshop initialized. [15:33:39.214][Format][Bib] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]} [15:33:39.217][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"] [15:33:39.220][Manager] Current workspace folders: ["file://%WS1%"] [15:33:39.221][Manager] Found root file from active editor: %WS1%/demo_1.tex [15:33:39.222][Manager] Root file changed: from undefined to %WS1%/demo_1.tex [15:33:39.222][Manager] Start to find all dependencies. [15:33:39.222][Manager] Root file languageId: latex [15:33:39.223][Event] ROOT_FILE_CHANGED: "%WS1%/demo_1.tex" [15:33:39.223][Cacher][Watcher] Reset. [15:33:39.228][Cacher] Adding %WS1%/demo_1.tex . [15:33:39.228][Cacher][Watcher] Watched %WS1%/demo_1.tex with a new watcher on %WS1% . [15:33:39.229][Event] FILE_WATCHED: "%WS1%/demo_1.tex" [15:33:39.231][Cacher] Caching %WS1%/demo_1.tex . [15:33:39.232][Cacher] Updated inputs of %WS1%/demo_1.tex . [15:33:39.232][Cacher] Parse LaTeX AST: %WS1%/demo_1.tex . [15:33:39.232][Event] ROOT_FILE_SEARCHED [15:33:39.236][Server] valdOrigin is http://127.0.0.1:40903 [15:33:39.245][Cacher] Parsed LaTeX AST: %WS1%/demo_1.tex . [15:33:39.245][Cacher][Path] Calling usr/bin/kpsewhich to resolve article.cls . [15:33:39.252][Cacher] Updated elements in 6.96 ms: %WS1%/demo_1.tex . [15:33:39.252][Event] FILE_PARSED: "%WS1%/demo_1.tex" [15:33:39.255][Cacher][Path] Non-existent .fls for %WS1%/demo_1.tex . [15:33:39.256][Structure] Structure force updated with 0 root sections for %WS1%/demo_1.tex . [15:33:39.256][Event] STRUCTURE_UPDATED [15:33:44.449][Commander] BUILD command invoked. [15:33:44.449][Commander] The document of the active editor: file://%WS1%/demo_1.tex [15:33:44.449][Commander] The languageId of the document: latex [15:33:44.449][Manager] Current workspace folders: ["file://%WS1%"] [15:33:44.450][Manager] Found root file from active editor: %WS1%/demo_1.tex [15:33:44.450][Manager] Keep using the same root file: %WS1%/demo_1.tex [15:33:44.450][Structure] Structure updated with 0 root sections for %WS1%/demo_1.tex . [15:33:44.450][Event] ROOT_FILE_SEARCHED [15:33:44.451][Event] STRUCTURE_UPDATED [15:33:44.451][Commander] Building root file: %WS1%/demo_1.tex [15:33:44.451][Builder] Build root file %WS1%/demo_1.tex [15:33:44.455][Builder] outDir: %WS1% . [15:33:44.458][Builder] Preparing to run recipe: latexmk. [15:33:44.458][Builder] Prepared 1 tools. [15:33:44.463][Builder] Recipe step 1 The command is latexmk:["-synctex=1","-interaction=nonstopmode","-file-line-error","-pdf","-outdir=%WS1%","%WS1%/demo_1"]. [15:33:44.463][Builder] env: {} [15:33:44.464][Builder] root: %WS1%/demo_1.tex [15:33:44.464][Builder] cwd: %WS1% [15:33:44.739][Builder] LaTeX build process spawned with PID undefined. [15:33:44.740][Builder] LaTeX fatal error on PID undefined. Error: spawn latexmk ENOENT [15:33:44.740]Error: spawn latexmk ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at processTicksAndRejections (node:internal/process/task_queues:83:21)