zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
3.2k stars 129 forks source link

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

Open the-arkhive opened 8 months ago

the-arkhive commented 8 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 7 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 7 months ago

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

asgMostafa commented 4 months ago

I get a similar error: tee: ~/.cache/zinit/completions/_docker: No such file or directory

Running zinit cclear didn't help also.