You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start typing any string that isn't a prefix of anything in the current folder.
I tried manually setting up completion with complete -o nospace +o default +o bashdefault -F _python_argcomplete mytest-argcomplete or using compopt +o default, compopt +o bashdefault in the completion code, but that seems to break tab completion entirely (nothing completes).
The text was updated successfully, but these errors were encountered:
It seems like the completer always falls back to Bash filename completion, even if
--no-defaults
is used.I think this is a regression of #366.
Repro
python3 -m venv argcomplete
cd argcomplete
source bin/activate
pip install argcomplete
(v3.2.3)$PATH
, make executableeval "$(register-python-argcomplete --no-defaults mytest-argcomplete)"
mytest-argcomplete --string
TabExpected result
No output -- no completer is defined, and
--no-defaults
was used.Actual result
Bash default tab completion for the current directory (in my case, the python venv):
Environment
Test script
Workarounds
Don't hit Tab.
Start typing any string that isn't a prefix of anything in the current folder.
I tried manually setting up completion with
complete -o nospace +o default +o bashdefault -F _python_argcomplete mytest-argcomplete
or usingcompopt +o default
,compopt +o bashdefault
in the completion code, but that seems to break tab completion entirely (nothing completes).The text was updated successfully, but these errors were encountered: