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.

Can't load LaTeX Workshop extension

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
HannesGitHcommented, Mar 9, 2021

For those facing the same issue

run

curl -fsSL https://gist.githubusercontent.com/HannesGitH/bf70790accef0773821fd6b83b335292/raw/latex-workshop_code-server__quickfix.sh | sh 

on your remote host for a quick fix

(see gist)


edit: this fix builds upon @nao20010128nao solution:

Temporary fix: extract /extension/out/ inside VSIX, as it contains a valid out/ directory.

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

4reactions
tiduxcommented, Nov 16, 2021

I can confirm this issue still exists on code-server 3.12.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't load LaTeX Workshop extension · Issue #1828 - GitHub
I 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, ...
Read more >
LaTeX Workshop in VSCode failed to compile - TeX
I am trying to use LaTeX Workshop in VSCode to compile my tex file. I have no idea why it can not successfully...
Read more >
VS Code Windows 10: LaTeX Workshop will not compile
Within VS Code, I have installed the LaTeX Workshop extension, but my document will not compile. I require lualatex, so I have moved...
Read more >
Install LaTeX Workshop and compile PDF in VSCode LaTeX ...
How to install LaTeX workshop extension in VSCode and how to compile your LaTeX documents on your Windows computer. LaTeX Workshop is a ......
Read more >
A Fast Guide on Writing LaTeX with LaTeX Workshop in VS ...
A Fast Guide on Writing LaTeX with LaTeX Workshop in VS Code · Step 1. Download & Install TeX Live · Step 2....
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