Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latex Workshop Extension not working #486

Closed
2 tasks done
jpaczia opened this issue Aug 24, 2020 · 13 comments
Closed
2 tasks done

Latex Workshop Extension not working #486

jpaczia opened this issue Aug 24, 2020 · 13 comments
Labels
bug Something isn't working

Comments

@jpaczia
Copy link

jpaczia commented Aug 24, 2020

Describe the bug
The LaTeX Workshop extension is currently not working in VS Codium. The extension symbol is not showing, other extensions are working as expected.

Please confirm that this problem is VSCodium-specific

  • This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn't already documented

To Reproduce
Steps to reproduce the behavior:

  1. Install the extension: Press Ctrl + P and enter ext install James-Yu.latex-workshop
  2. Open a .tex file, an example file can be found here
  3. Try to build the document, using the shortcut Ctrl + Alt + b
    (to check if you have all latex packages this can also be done via the terminal, e.g. with pdflatex [NAME].tex)
  4. See error "command 'latex-workshop.build' not found" in the right bottom corner

Expected behavior
The latex document is compiled into an output format, e.g. a PDF file.

Desktop (please complete the following information):

  • OS: Ubuntu and Kubuntu 20.04
  • Architecture x86_64
  • Version 1.48.1

Additional context
This issue might be relevant.

@jpaczia jpaczia added the bug Something isn't working label Aug 24, 2020
@GeQi
Copy link

GeQi commented Aug 24, 2020

I've being using the extension with VS Codium without issue. Seems there are related issues in the extension's repo (e.g. James-Yu/LaTeX-Workshop#469).

@jpaczia
Copy link
Author

jpaczia commented Aug 24, 2020

Yes, there are related issues.
However this seems to be VSCodium specific, since the extension is working with VS Code.
I was also able to use this extension with an older version of VSCodium, but with version 1.48.1 the extension does not work.
According to this issue the extension does not work because of VSCodium.

Which versions of VSCodium and the extension are you using @GeQi ?

@GeQi
Copy link

GeQi commented Aug 24, 2020

@jpaczia I'm using the latest version indeed. However my extension was installed way before any changes was made to the marketplace, so likely that is the source of the issue.

@indierodo
Copy link

indierodo commented Sep 5, 2020

Hello!

Error message in developer tools.

abstractExtensionService.ts:411 Activating extension 'James-Yu.latex-workshop' failed: Cannot find module '/home/rodo/.vscode-oss/extensions/james-yu.latex-workshop-8.11.1/out/src/main.js'
Require stack:
- /usr/share/codium/resources/app/out/vs/loader.js
- /usr/share/codium/resources/app/out/bootstrap-amd.js
- /usr/share/codium/resources/app/out/bootstrap-fork.js.

The out folder does not exist in ~/.vscode-oss/extensions/james-yu.latex-workshop-8.11.1

Workaround

This downloads the latest release from GitHub and replaces the extension. Of course, it is not a clean way of solving the issue, but it works.
After installing the extension from marketplace, close codium. Open a terminal and run this:

cd ~/.vscode-oss/extensions
rm -r james-yu.latex-workshop-8.11.1
wget https://github.com/James-Yu/LaTeX-Workshop/archive/v8.11.1.tar.gz
tar -xvf v8.11.1.tar.gz
rm v8.11.1.tar.gz
mv LaTeX-Workshop-8.11.1 james-yu.latex-workshop-8.11.1
cd james-yu.latex-workshop-8.11.1
npm install && npm run compile

So this may be an issue with the marketplace. I don't know how it works, so I can't say for sure.

@stripedpajamas
Copy link
Member

Per this comment the issue is that the extension itself on OpenVSX is missing files / corrupt. Nothing we can do (thanks for the workaround @indierodo). Either publisher needs to update OpenVSX version of the extension, or OpenVSX themselves can possibly do it.

@jpaczia
Copy link
Author

jpaczia commented Sep 25, 2020

The issue has been reported and fixed here.

@drepram
Copy link

drepram commented Dec 23, 2020

Hi, I basically ran LaTeX Workshop: Build LaTeX Project, and then it updates itself. Now the features are working well.

@DavideRossi
Copy link

The issue is still open for me (codium 1.60.0 and latex workshop 8.20.2). I had to follow the workaround by @indierodo to get it working.
I also tried the workaround by @drepram but it did not work for me.

@daiyam
Copy link
Member

daiyam commented Sep 11, 2021

@DavideRossi This is an issue of OpenVSX which has publish a broken version. (I've checked files are missing). I would encourage you to encourage the author of the extension to publish directly the extension.
In the meantimes, you can download the vsix from https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop and install it manually.

This was referenced Sep 12, 2021
@daiyam
Copy link
Member

daiyam commented Sep 12, 2021

I've opened the issue: James-Yu/LaTeX-Workshop#2865

@daiyam
Copy link
Member

daiyam commented Sep 12, 2021

Sorry guys, that extension is officially not supported on VSCodium. I wanted to ask why but I can't... no very open to discussion.
The alternative is that somebody makes a fork and maintains it for OpenVSX.

@DavideRossi
Copy link

I'm sorry to turn this issue into a chat, but can't we just report the issue to maintainer at OpenVSX? Since this is a recurring issue maybe they are willing to look into it.

@daiyam
Copy link
Member

daiyam commented Sep 13, 2021

@DavideRossi You can, they have done so before. But, since it seems to be recurring issue, I wanted the devs of the extension to maintain it themself since it's easy to do so.
I find it funny that a LaTeX extension doesn't want to be maintained on alternative editors since I'm associating it to Linux.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants