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).
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).