Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh completions

I am seeing a couple of stumpers (for me) on zsh completions.  Wanted to first reset the path to vanilla zsh.  Then unlash and load complaint.

Last login: Mon May 11 10:47:08 on ttys008
/usr/share/zsh/site-functions /usr/share/zsh/5.0.5/functions
/Users/kvaradha/.rc/zshell/.zshrc:21: write error
~ 1% fpath=( /usr/share/zsh/site-functions /usr/share/zsh/5.0.5/functions )
~ 2% unhash -f compinit                                                10:47:37
~ 3% autoload -U compinit                                              10:47:41
~ 4% compinit                                                          10:47:45
zsh: compinit: function not defined by file
~ 5%                                                                   10:47:47

It complains about one specific function, but I can’t tell which one, given a large number get autoloaded here..

~ 5%                                                                   10:47:49
~ 5% unhash -f compinit                                                10:47:49
~ 6% autoload -U compinit                                              10:47:54
~ 7% compinit 2>&-                                                     10:47:56
zsh: write error
~ 8%                                                                   10:48:02

If I try to ignore the issue by closing stderr, I get this write error.

Now the stumper, this error only comes on after compinit has actually finished executing.
By this, I mean that the tail end of my compinit file is:

    if [[ ${_i_line[2]} = expand-or-complete ]] &&
      zstyle -a ':completion:' completer _i_line &&
      (( ${_i_line[(i)_expand]} <= ${#_i_line} )); then
      bindkey '^i' complete-word

    unfunction compinit compaudit
    autoload -Uz compinit compaudit

    return 0

and the error shows up after compinit has returned.



Messages sorted by: Reverse Date, Date, Thread, Author