Closed jmcantrell closed 8 months ago
OK, I have released argcomplete v3.1.4 which I believe has a fix for this issue. Please test and let me know if that works for you. Keep in mind you'll need to reinstall the global completion script by running activate-global-python-argcomplete
.
I'm using the homebrew formula. I've never run that before. Will it not install the completion script with the updated formula? Either way, the completion seems to be working after updating, but _python-argcomplete
is still referenced in the trace. Why is this necessary? I apologize if I'm not understanding this. I only discovered it was installed after installing pipx. Is there a way to disable this feature? I'd prefer that this function not be called in this context, especially if it's not necessary.
You activated argcomplete global completion at some point in the past. You can read about it in this library's readme file, but yes it does get invoked as part of the default shell completion framework. You can disable global completion in zsh by locating the script:
for p in "${fpath[@]}"; do ls $p/_python-argcomplete; done
then deleting it.
Ok, thanks for the fix.
I recently installed pipx and this was a required dependency. Some time after that, I discovered that zsh completion after the redirect operator was not working. After some assistance from #zsh, it seems like argcomplete may be the culprit.
Here's the completion trace after trying to complete an empty redirection (
>./<tab>
) from zsh (with no configuration, and just compinit run):If you look through this output, you'll see the completion for argcomplete referenced.