ohmyzsh: compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_docker_compose
Describe the bug
When I open zsh on vs code terminal, the warning compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_docker_compose appear on it.
I saw an issue is the same as mine, but it doesn’t work.
Steps to reproduce
- open vs code project
- open terminal(default use zsh)
- show
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_docker_compose
Expected behavior
I want to don’t show it on my terminal. Thank you.
Screenshots and recordings
No response
OS / Linux distribution
macOS ventura 13.4.1
Zsh version
5.9
Oh My Zsh version
master (1c55a0fe)
Terminal emulator
VS Code terminal
If using WSL on Windows, which version of WSL
None
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Reactions: 2
- Comments: 18 (7 by maintainers)
Running
brew cleanup && rm -f $ZSH_COMPDUMP && omz reloadshould solve the issue.Thank you very much! I solved it by this:
I had a similar problem on
wsland I’ve solved it. My reported error was something like this:coinit:527: no such file or directory: /usr/share/zsh/vendor-completions/_dockerThe cause of my problem is that the file/usr/share/zsh/vendor-completions/_dockeris softlinked to/mnt/wsl/docker-desktop/cli-tools/usr/share/zsh/vendor-completions/_docker, and my docker-desktop was uninstalled, when I looked at the directory /usr/share/zsh/vendor-completions/ I found the _docker file was red, so I just needed to delete this file and everything worked fine!I have a similar problem!
compinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask
Just wanted to say that:
As suggested by @carlosala initially resolved this issue for me.
Possibly you’re hit by https://github.com/docker/for-mac/issues/6343 and you updated Docker recently. The right path should be in
/Applications/Docker.app/Contents/Resources/etc/docker(try looking on that path and finding the right file), or otherwise not exist under that path (in which case, you should remove the symlink).Confirmed not happening because of OMZ.
@Talljack try the code below and also tell us whether you changed your Homebrew setup from Intel to ARM as this user found:
@LuoJimmy try
brew cleanupas in https://github.com/ohmyzsh/ohmyzsh/issues/9602#issuecomment-768663375.Try
rm $_comp_dumpfileas well.