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

vsce ls fails with yarn v2 config files #750

Closed
ssbarnea opened this issue Jun 27, 2022 · 2 comments
Closed

vsce ls fails with yarn v2 config files #750

ssbarnea opened this issue Jun 27, 2022 · 2 comments

Comments

@ssbarnea
Copy link
Contributor

ssbarnea commented Jun 27, 2022

$ npx vsce ls
 INFO  Detected presence of yarn.lock. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).
 ERROR  Command failed: yarn list --prod --json

There is no list in yarn 2 and if you try to pass --no-yarn to vsce, you endup with the other problems and failures.

As a temporary workaround I could replace replace vsce ls with zipinfo -1 *.vsix to perform the listing but that would not work if other tools/libraries are calling vsce ls themselves. It is still broken.

Yarn v2 is more than two years old and v1 is no longer supported, so that does not really counts as a "feature". Code rots, and apparently vsce is not immune to it.

Related: #517

@joaomoreno
Copy link
Member

Duplicate of #517

@joaomoreno joaomoreno marked this as a duplicate of #517 Jun 27, 2022
@joaomoreno joaomoreno closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2022
@ssbarnea
Copy link
Contributor Author

Sorry, I seen original OP closing it. In fact is not a full duplicate, that one is specific, we might have other broken things related to general compatibility with yarn v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants