#719625 vcsh: tab combletion when calling git command failed

#719625#5
Date:
2013-08-13 17:54:40 UTC
From:
To:
Hello,

I was trying vcsh, and when I use

  vcsh $repo add [TAB]

it failed with "not a git repository"

Thanks.

#719625#10
Date:
2013-09-04 07:28:05 UTC
From:
To:
Is that related to the issue solved via IRC or is this still open?

I tried, and failed to, reproduce this several times, now...

If it's still open, please run

  VCSH_DEBUG=1 vcsh $repo add <tab>

Richard

#719625#15
Date:
2013-09-04 07:28:05 UTC
From:
To:
Is that related to the issue solved via IRC or is this still open?

I tried, and failed to, reproduce this several times, now...

If it's still open, please run

  VCSH_DEBUG=1 vcsh $repo add <tab>

Richard

#719625#20
Date:
2013-09-04 08:15:40 UTC
From:
To:
Richard Hartmann <richih.mailinglist@gmail.com> writes:

I can't recall of a issue solved via IRC, that said I still have this
problem.

When doing either:

  export VCSH_DEBUG=1
  vcsh zsh add <tab>

or

  VCSH_DEBUG=1 vcsh $repo add <tab>

it just said

  not a git repository

with no debug message

I've:
  $ apt-cache policy vcsh zsh                                            -~
  vcsh:
    Installed: 1.20130829-1
    Candidate: 1.20130829-1
    [...]
  zsh:
    Installed: 5.0.2-3
    Candidate: 5.0.2-3
    [...]

Thanks.

#719625#25
Date:
2013-09-04 09:00:54 UTC
From:
To:
Can you run

  vcsh enter zsh
  git status

Please?

#719625#30
Date:
2013-09-04 09:46:06 UTC
From:
To:
Richard Hartmann <richih.mailinglist@gmail.com> writes:

   $ vcsh enter zsh
   $ git status
   # On branch master
   nothing to commit, working directory clean

Note that the completion do work when inside `vcsh enter zsh`

#719625#35
Date:
2013-09-04 10:02:23 UTC
From:
To:
That's really strange...

Can you try to reproduce this with a minimal zsh configuration,
ideally only with completion loaded?


RIchard

#719625#40
Date:
2013-09-04 11:44:33 UTC
From:
To:
Richard Hartmann <richih.mailinglist@gmail.com> writes:

Okay, when I just load completion, I've no more error message, but no
completion either. The .zshrc I used is:

#+begin-src: zsh
   # Created by newuser for 5.0.2
   # The following lines were added by compinstall
   zstyle :compinstall filename '/home/testing/.zshrc'

   autoload -Uz compinit
   compinit
   # End of lines added by compinstall
#+end-src

Note that as with my main account, I've completion if I run
`vcsh enter mr` first

#719625#45
Date:
2013-09-04 15:57:55 UTC
From:
To:
You will need to load site completions. Or load _vcsh by itself.


Richard

#719625#50
Date:
2013-09-04 17:13:39 UTC
From:
To:
Richard Hartmann <richih.mailinglist@gmail.com> writes:

Sorry, I've not been clear. I've completion on vcsh command and repos,
on git command when typing `vcsh mr ad<tab>` for example, but not on
file I want to add (vcsh mr add .config/<tab> lead to nothing, when
after a vcsh enter mr:

% vcsh mr a<tab> #here completion happen
% vcsh mr add .co<tab>  #here nothing happen

% vcsh enter mr
% git add .co<tab>  #here completion happen

The only difference with my standard config is that with my current
config an error occur in place of nothing on .co<tab>

Should I add something?

Ps: I've only very few notion of zsh, so I'm not sure what I should do
to load site completions or such things.

#719625#55
Date:
2013-09-06 18:29:20 UTC
From:
To:
Richard Hartmann <richih.mailinglist@gmail.com> writes:

[...]

No problem, If you think it's better, just give me the url

Rémi