jdx / mise

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

`mise ls -g` is broken #1421

Closed dhanak closed 9 months ago

dhanak commented 9 months ago

Describe the bug mise ls -g should list the globally set versions (this used to work with rtx), but currently, it doesn't show anything.

To Reproduce

$ mise ls -g
Plugin  Version  Config Source Requested

Expected behavior Versions set in the global version file (in my case, ~/.mise.toml) should be listed.

mise doctor output

mise version:
  2024.1.14 linux-x64 (187cc24 2024-01-09)

build:
  Target: x86_64-unknown-linux-gnu
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Tue, 9 Jan 2024 00:23:51 +0000
  Rust Version: rustc 1.75.0 (82e1608df 2023-12-21)
  Profile: release

shell:
  /bin/zsh
  zsh 5.9 (x86_64-debian-linux-gnu)

mise data directory:
  /home/david/.local/share/mise

mise environment variables:
  MISE_SHELL=zsh

mise settings file:
  ~/.config/mise/settings.toml

settings:
  {
    "all_compile": false,
    "always_keep_download": false,
    "always_keep_install": false,
    "asdf_compat": false,
    "color": true,
    "disable_default_shorthands": false,
    "disable_tools": [],
    "experimental": true,
    "jobs": 4,
    "legacy_version_file": true,
    "legacy_version_file_disable_tools": [],
    "node_compile": false,
    "not_found_auto_install": false,
    "paranoid": false,
    "plugin_autoupdate_last_check_duration": "7d",
    "python_compile": false,
    "python_venv_auto_create": false,
    "raw": false,
    "shorthands_file": null,
    "task_output": null,
    "trusted_config_paths": [
      "~/CI"
    ],
    "quiet": false,
    "verbose": false,
    "yes": false,
    "ci": false,
    "cd": null,
    "debug": false,
    "env_file": null,
    "trace": false,
    "log_level": "info"
  }

config files:
  ~/.mise.toml

plugins:
  bun       (core)
  cmake     https://github.com/srivathsanmurali/asdf-cmake.git#3811ad7
  deno      (core)
  elixir    https://github.com/asdf-vm/asdf-elixir.git#a4c42e1
  erlang    https://github.com/asdf-vm/asdf-erlang.git#127716e
  fzf       https://github.com/kompiro/asdf-fzf.git#d19eb67
  go        (core)
  java      (core)
  julia     https://github.com/rkyleg/asdf-julia.git#1788f0f
  just      https://github.com/olofvndrhr/asdf-just.git#6882e77
  node      (core)
  python    (core)
  rebar     https://github.com/Stratus3D/asdf-rebar.git#4af0770
  ripgrep   https://gitlab.com/wt0f/asdf-ripgrep.git#e836665
  ruby      (core)
  vale      https://github.com/pdemagny/asdf-vale#9a3b1c0
  vhs       https://github.com/chessmango/asdf-vhs.git#3a4ef12

toolset:
  cmake@3.24.1, elixir@1.16.0-otp-25, erlang@25.0 erlang@23.2.1, fzf@latest, go@1.20, java@openjdk-18, julia@1.9 julia@1.8 julia@1.7 julia@1.6, just@latest, node@20.3.0, python@3.11.4, rebar@3.20 rebar@3.16.1, ripgrep@latest, ruby@latest, vale@latest, vhs@0.3.0

No problems found

Additional context mise ls --cd $HOME works as a workaround.

jdx commented 9 months ago

~/.mise.toml is not a global file. It should be ~/.config/mise/config.toml

dhanak commented 9 months ago

Ah, that explains it. Sorry for the false alarm, my bad.