g-plane / pnpm-shell-completion

Complete your pnpm command fastly.
MIT License
119 stars 10 forks source link

Issue of not enough arguments #12

Open mutoe opened 1 year ago

mutoe commented 1 year ago

Hi,

Currently I am using your completion, but the completion of packages does not work on my computer. When I type pnpm remove <tab>, it prompts the following

❯ pnpm remove
_values:compvalues:11: not enough arguments
_values:compvalues:11: not enough arguments
_values:compvalues:11: not enough arguments

But I can use command completion such as remove (when I type pnpm re<tab>, will completion to pnpm remove)

OS: macOS 13.5 M1 chip node: 20.5.0 pnpm: 8.6.11 shell: zsh + zinit

Do you have any idea?

I'm a completion novice. How can I debug this error?

g-plane commented 1 year ago

This completion will run an executable file. I'm not sure whether there will be permission issue on macOS or not.

mutoe commented 1 year ago

I just opened the plugin directory to check it, pnpm-shell-completion files have x permissions

image

mutoe commented 1 year ago

I also installed your g-plane/zsh-yarn-autocompletions plugin, it works fine.

I suspect it's pnpm where something went wrong. But I don't have any clue, how do I locate if it's a pnpm issue?

g-plane commented 1 year ago

No, it shouldn't be a pnpm issue, because it doesn't use pnpm.

g-plane commented 1 year ago

I have no idea about this currently. Let's keep issue open and see if there're similar problems.