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

pnpm zsh completion error #7986

Open
2 of 4 tasks
xucong-zhan opened this issue Apr 22, 2024 · 3 comments
Open
2 of 4 tasks

pnpm zsh completion error #7986

xucong-zhan opened this issue Apr 22, 2024 · 3 comments

Comments

@xucong-zhan
Copy link

xucong-zhan commented Apr 22, 2024

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

9.0.5

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

  • Install pnpm via the installation script
  • Run pnpm completions zsh > ~/.zfunc/_pnpm, which is where I store all my zsh completion scripts
  • Restart zsh
  • Run pnpm <Tab>
  • The following error appears: pnpm  ERR_PNPM_REDUNDANT_PARAMETERS \ The\ 1\ parameters\ after\ shell\ is\ not\ necessary

Screenshot from 2024-04-22 09-45-19

Describe the Bug

pnpm auto-completion doesn't work in zsh.

Expected Behavior

Typing pnpm and hitting <Tab> should bring up a list of available commands.

Which Node.js version are you using?

20.11.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

Ubuntu 22.04
(zsh version is 5.8.1, if that's relevant)

@markbrockhoff
Copy link

Same here using pnpm 9.0.6 but on macos 14.4.1 using zsh version 5.9

@KSXGitHub
Copy link
Contributor

I suspect that you still have legacy completion for old pnpm in your .zshrc. Can you search for __tabtab in your zsh dot files? If you find one, remove it.

@markbrockhoff
Copy link

Thanks @KSXGitHub that indeed was the case and resolved the issue for me. I didn't directly associate tabtab with pnpm 👍

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

No branches or pull requests

3 participants