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

Release script fails to execute with npm #3011

Closed
filiptronicek opened this issue Dec 13, 2021 · 2 comments
Closed

Release script fails to execute with npm #3011

filiptronicek opened this issue Dec 13, 2021 · 2 comments
Labels
question Issue represents a question

Comments

@filiptronicek
Copy link

Preliminary questions [Required]

Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]

N/A

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.

N/A

Describe the bug [Required]

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Install deps with npm i
  2. Run the release script with npm run release

Expected behavior

The extension gets packaged successfully, instead I get an npm list error. This can be fixed by using yarn, but I wonder why.

Logs [Required]

gitpod /workspace/LaTeX-Workshop $ npm run release

> [email protected] release
> npm run clean && npm run lint && npm run compile && vsce package


> [email protected] clean
> rimraf out/ .eslintcache


> [email protected] lint
> eslint --cache --ext .ts,.js .


> [email protected] compile
> tsc -p tsconfig.json && tsc -p viewer/tsconfig.json

 ERROR  Command failed: npm list --production --parseable --depth=99999 --loglevel=error
npm ERR! code ELSPROBLEMS
npm ERR! missing: worker-loader@^3.0.7, required by [email protected]

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitpod/.npm/_logs/2021-12-13T15_35_15_774Z-debug.log

LaTeX Workshop Output [Required]

N/A

Developer Tools Console [Required]

N/A

Screenshots

If applicable, add screenshots to help explain your problem.

N/A

Desktop [Required]

Please write exact version numbers. Please don't write latest instead of exact numbers.

  • OS: Linux 20.04
  • VS Code version: n/a
  • Extension version: 8.22.0
  • TeX distribution version: n/a

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?

No

If the answer is Yes, please write which one you are using. Write the versions of the remote extension.

  • Remote Containers/Remote SSH/Remote WSL
  • Remote Extension Version: [e.g. 0.48.0]

Additional context

Add any other context about the problem here.

@filiptronicek
Copy link
Author

May be related: microsoft/vscode-vsce#477

@jlelong
Copy link
Collaborator

jlelong commented Dec 13, 2021

Related to mozilla/pdf.js#13825. Until we upgrade to PDF.js v2.11, use npm v6.

@jlelong jlelong closed this as completed Dec 13, 2021
@tamuratak tamuratak added the question Issue represents a question label Dec 13, 2021
Repository owner locked as resolved and limited conversation to collaborators Dec 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Issue represents a question
Projects
None yet
Development

No branches or pull requests

3 participants