jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
8.07k stars 211 forks source link

`mise plugins ls` returns error immediately after install #2267

Closed deregtd closed 3 weeks ago

deregtd commented 3 weeks ago

Describe the bug + repro After installing mise for the first time (testing done through homebrew), if you immediately run mise plugins ls before installing any plugins/running mise install, the ~/.local/share/mise/plugins directory does not yet exist, and mise errors out:

$ mise plugins ls
mise No such file or directory (os error 2)
File: [$HOME]/.local/share/mise/plugins
mise Run with --verbose or MISE_VERBOSE=1 for more information

This was tested on both macos homebrew install and fedora 40 linuxbrew install with the same result.

Expected behavior Expected to return an empty list if no plugins are installed. (Need to detect if the plugins dir is missing and don't error)