kislyuk / argcomplete

Python and tab completion, better together.
https://kislyuk.github.io/argcomplete/
Apache License 2.0
1.39k stars 129 forks source link

Unable to reproduce the describe_github_user.py example on MacOS, bash 3.2.57 #353

Closed mpenkov closed 2 years ago

mpenkov commented 2 years ago

I'm running an older bash version, so I don't expect global autocompletion to work. However, the explicit completion does not work either. I'm trying to run the describe_github_user.py example, and pressing tab achieves nothing.

$ echo $BASH_VERSION
3.2.57(1)-release
$ pip show argcomplete
Name: argcomplete
Version: 1.12.3
Summary: Bash tab completion for argparse
Home-page: https://github.com/kislyuk/argcomplete
Author: Andrey Kislyuk
Author-email: kislyuk@gmail.com
License: Apache Software License
Location: /Users/misha/envs/koshka/lib/python3.9/site-packages
Requires:
Required-by:
$ complete | grep github
complete -o bashdefault -o default -o nospace -F _python_argcomplete ./describe_github_user.py

What am I doing wrong?

evanunderscore commented 2 years ago

Thanks for the report. That completion should work for ./describe_github_user.py <tab>. If not, try export _ARC_DEBUG=1, attempt tab completion again and post the output.

mpenkov commented 2 years ago

Thank you for your reply. I just got home and tried it again. It worked. I'm not sure what changed in the meanwhile, but there's no problem anymore.

Sorry for the false alarm.