zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: Bug in "git stash drop" completion: "_arguments:comparguments:325: invalid argument: _git-notes"
Date: Mon, 22 Jun 2020 03:51:57 +0200	[thread overview]
Message-ID: <20200622015156.ihcbhvmeteni7zn7@sym.noone.org> (raw)

Hi,

just ran into zsh 5.8 throwing these errors upon "git stash drop" tab
completion:

% git stash drop stash@\{
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
% git stash drop stash@\{
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
% git stash drop stash@\{
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes
_arguments:comparguments:325: invalid argument: _git-notes

The amount of warnings seems to become more the more often I tried it.

"git stash show -p" tab completion in the same git repository though
works as expected:

% git stash show -p stash@\{
completing stash
stash@{0}: WIP on debian: f1e2af0ca Update debian/changelog (4 months ago)
stash@{1}: WIP on debian: 14d262602 d/upstream/signing-key.asc: Add the 5.7 RM's signing key. (1 year, 5 months ago)
stash@{2}: WIP on debian: 06946d431 debian/TODO.md: Mention that switching zsh-dev to arch:all is non-trivial. (1 year, 6 months ago)

Not sure if relevant: I first successfully tab-completed "git stash
show -p stash@\{<Tab>" once, then ran into this issue, and then
successfully did tab-complete "git stash show -p stash@\{<Tab>" a
second time.

Versions:

* zsh 5.8 as of Debian unstable package 5.8-4.
* git 2.27.0 as of Debian unstable package 1:2.27.0-1.

		Kind regards, Axel
-- 
PGP: 2FF9CD59612616B5      /~\  Plain Text Ribbon Campaign, http://arc.pasp.de/
Mail: abe@deuxchevaux.org  \ /  Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@noone.org  X
https://axel.beckert.ch/   / \  I love long mails: https://email.is-not-s.ms/

             reply	other threads:[~2020-06-22  1:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-22  1:51 Axel Beckert [this message]
2020-06-22  8:17 ` Daniel Shahaf
2020-06-22  9:04   ` Axel Beckert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200622015156.ihcbhvmeteni7zn7@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).