Replies: 6 comments
-
This is mostly an issue with environment variables but not directly with the extension, see https://github.com/James-Yu/LaTeX-Workshop/wiki/Install#setting-path-environment-variable |
Beta Was this translation helpful? Give feedback.
-
But these instructions also tell that LaTeX Workshop never touches the variable. So why would work the lookup correctly in every terminal but not in the extension? And my export PATH=/usr/local/texlive/2021/bin/x86_64-linux:$PATH The |
Beta Was this translation helpful? Give feedback.
-
VSCode does not inherit the variables defined in |
Beta Was this translation helpful? Give feedback.
-
Ah, so instead it receives the |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Note to my future self: In the middle of a writing session, the compiler version suddenly (?) fell back from 2021 to 2017. Closing and reopening all WSL windows of VS Code helped to restore the correct |
Beta Was this translation helpful? Give feedback.
-
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?: No
Describe the bug [Required]
I have upgraded my TexLive distribution from 2017 to 2021 following these and these instructions as best I could. However, this extension keeps using my old distribution of latex even though the same command entered in my bash shell uses the new distribution.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Instead of the old version, the new version (in my case, 2021) should be used. This also happens correctly when I enter the full
pdflatex
command from the log excerpt above manually into my bash shell.Logs [Required]
LaTeX Workshop Output [Required]
Developer Tools Console [Required]
Nothing suspicious.
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?
No
Are you using LaTeX Workshop with VS Code Remote?
Yes
If the answer is Yes, please write which one you are using. Write the versions of the remote extension.
Additional context
If I run
pdflatex
orlatexmk
manually in my shell, the right version is used.I have not configured any non-default settings for the workshop extension.
Beta Was this translation helpful? Give feedback.
All reactions