-
Notifications
You must be signed in to change notification settings - Fork 96
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
Completion not working for 2.x in ZSH (at least) #200
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Completion installation seems to complete, but logs an error at the end of the process. The correct scripts are generated
"error" is output every time you hit tab to attempt to use auto complete.
This happens with my own CLI app that I'm migrating from Caporal 1.x to 2.x as well as with the "pizza" example.
To Reproduce
npm ci
in the rootnpm run build
in the rootcd examples
npm ci
npm link
pizza --install-completion
zsh
Y
when prompted to install the completion to~/.zshrc
pizza
and hit tabEnvironment informations (please complete the following information):
Additional context
I suspected the issue may be
tabtab
but I cannot reproduce this issue usingtabtab
's example, which works as expected.Output from my shell
pizza --install-completion
pizza
then hitting tab.pizza completion
also produces an error: "error: Unknown command completion". Since that's what the completion script calls, I'm guessing thecompletion
command isn't getting registered correctly for some reason.Update 1
Confirmed that the error being thrown when typing
pizza
+ tab is, indeed, "Unknown command completion"Update 2
It doesn't look like completion has worked at all in v2.x. The unit tests call
complete
directly and do not test whether it is called when thecompletion -- ???
command is run.The text was updated successfully, but these errors were encountered: