Control: tags -1 upstream
Control: forwarded -1 https://github.com/kislyuk/argcomplete/issues/491

On 2025-03-31 02:41:40 +0200, Vincent Lefevre wrote:
> Control: affects -1 zsh
> 
> On 2025-03-31 02:30:17 +0200, Vincent Lefevre wrote:
> > With python3-argcomplete 3.5.3-1, same issue, but if I type <tab>
> > a second time, I get
> > 
> > qaa% : testdir/FOO
> > 
> > as expected. (BTW, I had already seen this issue with <tab> not working
> > on the first time on this machine, and has already been wondering why...
> > Now, I know.)

Concerning the above differemce, the cause is the following commit:

https://github.com/kislyuk/argcomplete/commit/0d55af289f2f93c9bc2b7d75ddb7766dd4889912

"zsh: skip repeat Python runs in the same completion run"

But anyway, the real issue is the following one (which is now just
worse due to the above commit):

> Note that this older issue was already really annoying, as I often
> type <tab> quickly after <enter>, meaning that an incorrect filename
> is used on the command line (fortunately, without major consequences
> until now).

The cause is the following change seen in the generated .zcompdump
file:

-'-default-' '_default'
+'-default-' '_python-argcomplete'

and this has already been reported upstream:

  https://github.com/kislyuk/argcomplete/issues/491

Quoting:

rpigott:
│ The so called "global completion mode" for zsh implementation as a
│ -default- completer is harmful. Setting a -default- completer is a
│ prerogative of the user, and not any application or library (only
│ one completer can exist per service name). The current
│ implementation unnecessarily interferes with the user's ability to
│ customize the zsh completion system.

llua:
│ to provide a little more context, the zsh community have recently
│ received a number of reports[0] of completion not behaving how they
│ expect and it results from this package being pulled in, seemingly
│ unknowingly, causing the changed behavior.
│
│ [0] https://www.zsh.org/mla/workers/2024/msg00503.html

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to