- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.2k
Closed
Labels
C: autocompleteAutocompletion in shells (pip completion)Autocompletion in shells (pip completion)type: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
Description
Attempting to follow the steps in the documentation for adding zsh shell completion raises an error regarding the use of compadd outside of a completion function. This seems to be new with 23.2 and added in #11417.
Expected behavior
As in previous versions, following the documented steps should successfully add completion for pip.
pip version
23.2
Python version
3.11.4
OS
macOS 12.6.8
How to Reproduce
As documented:
- Execute python -m pip completion --zsh >> ~/.zprofileor add eval "pip completion --zsh" to.zprofileor.zshrc
- Start a new shell
Output
From startup:
/dev/fd/16:compadd:4: can only be called from completion function
Code of Conduct
- I agree to follow the PSF Code of Conduct.
dtrifiro
Metadata
Metadata
Assignees
Labels
C: autocompleteAutocompletion in shells (pip completion)Autocompletion in shells (pip completion)type: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior