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
This might be related to #504 but I think it is something else: when calling the script like this python ./foo.py, I get duplicate suggestions. Of course it could also be an issue with zsh or my setup of it, so I hope other people can confirm it they also see this.
To reproduce
Test environment:
Ubuntu 24.04
Python 3.12.3
argcomplete 3.1.4-1ubuntu0.1 (this is 3.1.4 with a patch back-ported from 3.3.0 to make it compatible with Python 12.3)
for me, this behaviour happens no matter how I'm calling the script, but only when I print a warn() message in my completer, and it prints the content 3 times. On zsh (5.8.1) on Ubuntu. Also, your reported behaviour happens as well
I think the part about warn() is unrelated because the demo program doesn't use any warnings. As far as I understand, this has to do with how zsh queries for suggestions. The warning somehow triggers a "follow-up" query. Maybe open a separate issue for it.
Thanks for checking that the behavior in my post occurs for you as well. From the debug output it seems like the first call, the one with WORDS: ['python', './foo.py'], should not be executed but instead be delegated to the second call (WORDS: ['./foo.py']).
This might be related to #504 but I think it is something else: when calling the script like this
python ./foo.py
, I get duplicate suggestions. Of course it could also be an issue with zsh or my setup of it, so I hope other people can confirm it they also see this.To reproduce
Test environment:
I tested this with the following file
foo.py
Suggestions for the last option show up twice in the generated list:
Output with
_ARC_DEBUG=1
The suggestions are generated once with
WORDS: ['python', './foo.py']
and once withWORDS: ['./foo.py']
where in both cases,LINE: 'python ./foo.py '
.The text was updated successfully, but these errors were encountered: