zinit icon indicating copy to clipboard operation
zinit copied to clipboard

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

Open the-arkhive opened this issue 1 year ago • 5 comments

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

  • [X] I agree to follow this project's Code of Conduct

the-arkhive avatar Mar 24 '24 03:03 the-arkhive

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 avatar Apr 03 '24 10:04 cands

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

cands avatar Apr 13 '24 12:04 cands

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

Running zinit cclear didn't help also.

asgMostafa avatar Jul 28 '24 13:07 asgMostafa

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

Running zinit cclear didn't help also.

same here, get this when I enable zinit snippet OMZP::docker in my .zshrc

CanRau avatar Jan 15 '25 18:01 CanRau

fixed:

mkdir ~/.cache/zinit/completions
. ~/.zshrc

zatkowich avatar Jan 16 '25 13:01 zatkowich