Discussion:
tab completion taking a _really_ long time
TJ Luoma
2018-09-20 22:31:35 UTC
Permalink
I just plugged in a computer that hasn't been used in over a year and
ran a bunch of updates.

One thing I noticed is that zsh is taking a long time (like 90
seconds) to do tab completion for 'cd'

For example, I was in my $HOME and did 'cd d' and press tab, which
should show me Desktop, Documents, and Downloads.

Instead it just sat there for 90 seconds.

When I tried it again and killed it (control-c) after a few seconds,
it reported this:

Killed by signal in _path_files after 5s

This was in ZSH_VERSION 5.3

Any idea what I need to do to fix this?

Thanks

TjL

ps - if more diagnostic info is needed, please let me know. I'm not
sure what would be helpful here.


--
TJ Luoma
TJ @ MacStories
Personal Website: luo.ma (aka RhymesWithDiploma.com)
Twitter: @tjluoma
TJ Luoma
2018-09-20 22:40:10 UTC
Permalink
More info:

I tried updating zsh to a newer version, and that didn't fix the problem.

I renamed .zshenv and .zshrc so neither of them were read, and my tab
completions went back to instantaneous, so it's obviously something in
my config, but I don't know what, and obviously it didn't _used_ to do
this, so I'm still at an impasse.

--
TJ Luoma
TJ @ MacStories
Personal Website: luo.ma (aka RhymesWithDiploma.com)
Post by TJ Luoma
I just plugged in a computer that hasn't been used in over a year and
ran a bunch of updates.
One thing I noticed is that zsh is taking a long time (like 90
seconds) to do tab completion for 'cd'
For example, I was in my $HOME and did 'cd d' and press tab, which
should show me Desktop, Documents, and Downloads.
Instead it just sat there for 90 seconds.
When I tried it again and killed it (control-c) after a few seconds,
Killed by signal in _path_files after 5s
This was in ZSH_VERSION 5.3
Any idea what I need to do to fix this?
Thanks
TjL
ps - if more diagnostic info is needed, please let me know. I'm not
sure what would be helpful here.
--
TJ Luoma
Personal Website: luo.ma (aka RhymesWithDiploma.com)
TJ Luoma
2018-09-21 01:41:43 UTC
Permalink
I ended up copying my .zshenv and .zshrc from my current machine to my
old (recently revived) machine and that seems to have solved the
problem, so unless someone happens to know off the top of their head
what was the problem, feel free to ignore.

Sorry for the noise.

TjL
Bart Schaefer
2018-09-21 02:19:22 UTC
Permalink
Post by TJ Luoma
I ended up copying my .zshenv and .zshrc from my current machine to my
old (recently revived) machine and that seems to have solved the
problem, so unless someone happens to know off the top of their head
what was the problem, feel free to ignore.
You've probably got a cdpath setting in there, pointing to a directory
that doesn't exist any more (maybe one that used to be an NFS mount?).

If instead of TAB you type control-x followed by a question mark,
completion debugging is invoked -- a file will be written in /tmp with
a trace of what the completion system is doing. Hit control-c and
then have a look at the file.

Continue reading on narkive:
Loading...