Skip to content

[bug]: not creating $ZSH_CACHE_DIR/completions directory #707

@war-turtle

Description

@war-turtle

What happened?

When OMZP/mise plugin in used with zinit the following error is thrown:

/Users/username/.local/share/zinit/snippets/OMZP::mise/OMZP::mise:26: no such file or directory: /Users/username/.cache/zinit/completions/_mise

The plugin was added using the following line:

zinit snippet OMZP::mise

Why the issue happened?

Some of the ohmyzsh plugins expect $ZSH_CACHE_DIR/completions to be present for their functioning.

Like mise plugin in ohmyzsh expects the directory at the following line:
https://github.com/ohmyzsh/ohmyzsh/blob/6e7ac0544e71c7b777746cb50f70de68c6495b86/plugins/mise/mise.plugin.zsh#L19

Ohmyzsh is creating the directory using the following code:
https://github.com/ohmyzsh/ohmyzsh/blob/6e7ac0544e71c7b777746cb50f70de68c6495b86/oh-my-zsh.sh#L67

Steps to reproduce

  1. add the following line to your .zshrc file
zinit snippet OMZP::mise
  1. source the .zshrc file and the issue will happen

Relevant output

Screenshots and recordings

No response

Operating System & Version

OS: darwin23.0 | Vendor: apple | Machine: x86_64 | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.9 (x86_64-apple-darwin23.0)

Terminal emulator

tmux-256color

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions