zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.73k stars 122 forks source link

[bug]: compinit:527: no such file or directory: ~/.local/share/zinit/completions/_nvm #647

Open the-arkhive opened 3 months ago

the-arkhive commented 3 months ago

What happened?

This error started printing twice each time I initiate a shell. The file specified does in fact exist.

Steps to reproduce

Honestly I have no clue. This happened very randomly, but possibly after a recent oh-my-zsh update?

Relevant output

compinit:527: no such file or directory: ~/.local/share/zinit/completions/_nvm

Operating System & Version

OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: unknown | Hardware: x86_64

Zsh version

zsh 5.9 (x86_64-pc-linux-gnu)

Terminal emulator

foot

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

cands commented 3 months ago

I experience the same or a similar issue and also think it stems from some recent update. I get slightly different error message and one additional error printed:

compinit:527: no such file or directory: ~/.local/share/zinit/completions/_autocomplete__ancestor_dirs compinit:shift:529: shift count must be <= $#

cands commented 2 months ago

I investigated further and issuing command zinit cclear (documentation states this will clear stray and improper completions) solved the issue for me.