Can't load LaTeX Workshop extension
See original GitHub issueI am trying to run the LaTeX Workshop extension (james-yu.latex-workshop). I have tried with extension versions 8.7.2, 8.10.0 and 8.11.0, all with the same results. I get the error command 'latex-workshop.view' not found
when I click the “View LaTeX PDF File” icon, and nothing else happens.
Digging deeper, enabling source map support, the Output termninal “Log (Remote Extension Host)” shows the following error message.
[2020-06-24 00:09:19.066] [exthost] [error] Activating extension James-Yu.latex-workshop failed due to an error:
[2020-06-24 00:09:19.067] [exthost] [error] Error: Cannot find module '/home/jovyan/.local/share/code-server/extensions/james-yu.latex-workshop-8.10.0/out/src/main.js'
The out/
subdirectory does not exist.
My interpretation is that out/
is supposed to contain build targets which are somehow not being built. Indeed, the extension’s GitHub contains /src/main.ts
but no /out/
. I don’t know any TypeScript, so does this make sense? Any idea how to fix it?
- Web Browser: Firefox
- Local OS: Ubuntu 20.04
- Remote OS: locally-running jupyter/tensorflow-notebook Docker container
- Remote Architecture: x86_64
code-server --version
: 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259
Note: I am able to manually install the .vsix
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:15 (2 by maintainers)
Top GitHub Comments
For those facing the same issue
run
on your remote host for a quick fix
(see gist)
edit: this fix builds upon @nao20010128nao solution:
edit2: you might need to change some stuff in the script if you’re not on Debian or having a non-standart install
edit3: you need to reload your vscode instance e.g. just reopen the same folder
I can confirm this issue still exists on code-server 3.12.