-
-
Notifications
You must be signed in to change notification settings - Fork 936
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
pnpm completion broken with corepack #8056
Comments
Note that corepack uses a shim for pnpm, which is probably screwing up the arguments... pnpm shim: #!/usr/bin/env node
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='1'
require('./lib/corepack.cjs').runMain(['pnpm', ...process.argv.slice(2)]); |
Are you using pnpm v9? pnpm v9 no longer uses tabtab for completion. Instead, you are supposed to uninstall The caveat, however, is that this method is not compatible with pnpm v8 while corepack can automatically switch between major pnpm versions. The only way and the only proper way to fix this is for corepack to provide its own completion script that would redirect commands to pnpm completion script (Like how completion script for |
Yes I'm using pnpm v9 exclusively now. Thanks for the tip, this fixed my issue. |
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
restart shell
Describe the Bug
Although tab tab completion script is loaded, it does not work properly.
Tab-tab behavior
Completion debug:
Likely related to #7986.
Expected Behavior
pnpm completion works properly, even under corepack.
Which Node.js version are you using?
22.1.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: