[Pkg-zsh-devel] Bug#663982: zsh: autocompletion does not work anymore after compinit

Frank Terbeck ft at bewatermyfriend.org
Thu Mar 22 06:28:16 UTC 2012


Martin Steigerwald wrote:
> auto completion stopped worked since this week. This might be related
> to an upgrade of Z-Shell. It is related configuration, with an empty
> .zshrc it works. But with the recommended configuration from the
> system administrator it does not.
>
> I found it to stop working after compinit. With empty configuration:
>
> mango% cd Infrastruktur/ [aborted with Ctrl-C]
> mango% autoload -Uz compinit
> mango% cd Infrastruktur/ [aborted with Ctrl-C]

Before you're running `compinit', the function-based completion system
is *NOT* online yet. Zsh will fall back to the older compctl system.

> mango% compinit
> mango% cd In
>
> No reaction on tab anymore.

When you say "no reaction" do you mean that zsh eats up all CPU or does
it actually hang without and CPU utilisation at all?

> But this only happens for *one* user that uses a home directory on NFS.

If NFS is in play it could also be bad performance with certain options.
Does the shell hang or does completion just take a very very long time?
As in "minutes"?

> Neither with root nor with a local user I can reproduce this.
>
> Tab completion worked for the NFS user as well before. I can fix it by
> uncommenting compinit from his .zshrc.

Sounds weird. Can't identify a reason off hand.

> This is the .zshrc of the user, but as said it also does not work
> with the system admin recommended one.
[...]

There is nothing in there, that would cause that I think. The other
files (zshenv, zprofile, zlogin - global and user-only) are empty, I
presume?

[...]
> Even with this configuration auto completion does not work for the
> autocd case. But for the local test user it works also in the autocd
> case. For the local test user it also works when I navigate on the
> NFS export.

My *guess* is that something triggers user-name lookups which may take a
very long time with a lot of users in networked environments. But like I
said, it's a guess for now...

Sorry for taking so long. I'm pretty swamped with other work right now.
I hope the other guys from the maintenance team will chime in. ;-)

Regards, Frank





More information about the Pkg-zsh-devel mailing list