* Tab completion breaks after upgrade
@ 2004-06-15 3:18 lists
2004-06-15 4:43 ` Bart Schaefer
0 siblings, 1 reply; 6+ messages in thread
From: lists @ 2004-06-15 3:18 UTC (permalink / raw)
To: zsh-users
Hello all,
It's been my experience on several different machines that when I
upgrade the version of zsh I'm using, tab completion stops working.
This happened going from 4.0.6 to 4.1 and again when I moved to 4.2.
When I type the first part of a command and press the tab key (in this
case the 'pri' in 'print'), I get something like the following:
% pri_alternative:69: command not found: _suffix_alias_files
nt
I get around the issue by backing up ~/.zshrc, then running compinstall
again, and replacing my original ~/.zshrc file for the new one
generated by compinstall. Does anyone have any ideas?
Thanks!
P.S. I didn't include my .zshrc file because it's quite large an messy
but will happily do so if that would help.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tab completion breaks after upgrade
2004-06-15 3:18 Tab completion breaks after upgrade lists
@ 2004-06-15 4:43 ` Bart Schaefer
2004-06-15 4:55 ` lists
0 siblings, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2004-06-15 4:43 UTC (permalink / raw)
To: zsh-users
On Mon, 14 Jun 2004, lists wrote:
> It's been my experience on several different machines that when I
> upgrade the version of zsh I'm using, tab completion stops working.
Remove the ~/.zcompdump file. I've often suspected that this should have
included a version number in the file name.
If that doesn't help, make sure that you aren't stepping on the default
value of $fpath, because that _does_ include directories that have the
version number in the name.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tab completion breaks after upgrade
2004-06-15 4:43 ` Bart Schaefer
@ 2004-06-15 4:55 ` lists
2004-06-15 7:12 ` Wayne Davison
2004-06-15 9:26 ` Peter Stephenson
0 siblings, 2 replies; 6+ messages in thread
From: lists @ 2004-06-15 4:55 UTC (permalink / raw)
To: zsh-users
It was the ~/.zcompdump file. Thanks so much!
On Jun 14, 2004, at 11:43 PM, Bart Schaefer wrote:
> On Mon, 14 Jun 2004, lists wrote:
>
>> It's been my experience on several different machines that when I
>> upgrade the version of zsh I'm using, tab completion stops working.
>
> Remove the ~/.zcompdump file. I've often suspected that this should
> have
> included a version number in the file name.
>
> If that doesn't help, make sure that you aren't stepping on the default
> value of $fpath, because that _does_ include directories that have the
> version number in the name.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tab completion breaks after upgrade
2004-06-15 4:55 ` lists
@ 2004-06-15 7:12 ` Wayne Davison
2004-06-15 9:26 ` Peter Stephenson
1 sibling, 0 replies; 6+ messages in thread
From: Wayne Davison @ 2004-06-15 7:12 UTC (permalink / raw)
To: zsh-users
On Mon, Jun 14, 2004 at 11:55:40PM -0500, lists wrote:
> It was the ~/.zcompdump file. Thanks so much!
You can avoid this problem in the future by using a separate .zcompdump
file for each version of zsh, like this (from my .zshrc file):
compinit -d ~/.zcompdump_$ZSH_VERSION
This also lets you run multiple zsh versions without conflict.
..wayne..
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tab completion breaks after upgrade
2004-06-15 4:55 ` lists
2004-06-15 7:12 ` Wayne Davison
@ 2004-06-15 9:26 ` Peter Stephenson
2004-06-15 10:12 ` Oliver Kiddle
1 sibling, 1 reply; 6+ messages in thread
From: Peter Stephenson @ 2004-06-15 9:26 UTC (permalink / raw)
To: zsh-users
lists wrote:
> It was the ~/.zcompdump file. Thanks so much!
I think Bart's right and we need to make this version dependent. The
only real downside is we probably ought to flag this up to the user so
they can prune ancient files which aren't going to be used again. It
should be an easy change but I'm in the thick of other stuff at the
moment.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Tab completion breaks after upgrade
2004-06-15 9:26 ` Peter Stephenson
@ 2004-06-15 10:12 ` Oliver Kiddle
0 siblings, 0 replies; 6+ messages in thread
From: Oliver Kiddle @ 2004-06-15 10:12 UTC (permalink / raw)
To: zsh-users
Peter wrote:
> lists wrote:
> > It was the ~/.zcompdump file. Thanks so much!
>
> I think Bart's right and we need to make this version dependent. The
> only real downside is we probably ought to flag this up to the user so
> they can prune ancient files which aren't going to be used again. It
> should be an easy change but I'm in the thick of other stuff at the
> moment.
Why not just stick $ZSH_VERSION in the top of .zcompdump along with the
number of files. That avoids having to clear up the ancient files.
Oliver
Index: Completion/compdump
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/compdump,v
retrieving revision 1.6
diff -u -r1.6 compdump
--- Completion/compdump 20 Apr 2004 12:11:15 -0000 1.6
+++ Completion/compdump 15 Jun 2004 10:07:45 -0000
@@ -33,7 +33,7 @@
(( $#_d_wdirs )) && _d_files=( "${(@)_d_files:#(${(j:|:)_d_wdirs})/*}" )
fi
-print "#files: $#_d_files" > $_d_file
+print "#files: $#_d_files\tversion: $ZSH_VERSION" > $_d_file
# Dump the arrays _comps, _services and _patcomps. The quoting
# hieroglyphics ensure that a single quote inside a variable is itself
Index: Completion/compinit
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/compinit,v
retrieving revision 1.11
diff -u -r1.11 compinit
--- Completion/compinit 20 Apr 2004 12:11:15 -0000 1.11
+++ Completion/compinit 15 Jun 2004 10:07:46 -0000
@@ -442,7 +442,9 @@
if [[ -f "$_comp_dumpfile" ]]; then
if [[ -n "$_i_check" ]]; then
read -rA _i_line < "$_comp_dumpfile"
- if [[ _i_autodump -eq 1 && $_i_line[2] -eq $#_i_files ]]; then
+ if [[ _i_autodump -eq 1 && $_i_line[2] -eq $#_i_files &&
+ $ZSH_VERSION = $_i_line[4] ]]
+ then
builtin . "$_comp_dumpfile"
_i_done=yes
fi
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-06-15 10:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-15 3:18 Tab completion breaks after upgrade lists
2004-06-15 4:43 ` Bart Schaefer
2004-06-15 4:55 ` lists
2004-06-15 7:12 ` Wayne Davison
2004-06-15 9:26 ` Peter Stephenson
2004-06-15 10:12 ` Oliver Kiddle
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).