-
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Milestone
Description
- Asdf version: 0.18.0-arch (rev 028097)
- Expert version: Nightly on e9d69dd
I had both asdf and mise installed, but I only had mise activated. Expert fails to parse an asdf error output.
Here's the rundown:
- Expert prioritizes asdf as first manager to check
- The check involves checking the manager binary and finding
elixir
in the toolings env - I get the following output from asdf (the command to inspect the current manager environment):
asdf env elixir && echo Good || echo Bad
Bad
- This match fails without fallback for returning
nil
, blocking the check from proceeding to try other managers.
Suggestions
- Check whether asdf returned a success exit code before attempting to parse the output.
- Even when exit code is successful, if any match fails when parsing the output, invalidate the manager instead of crashing out (or be lenient about it providing warning messages).
- If anything is out of the ordinary when checking tooling managers, provide warnings.
An additional related case
Mise fetching deps from .tool-versions
instead of mise.config.toml
(no asdf installed), described in more detail here #128 (comment).
In this case mise env elixir && echo good || echo bad
outputs below. Same error when matching output lines as the one described in the issue and suggestions should address it the same way.
export PATH='/Users/REDACTED_USERNAME/.local/share/mise/installs/erlang/28.0.2/bin:/Users/REDACTED_USERNAME/.local/share/mise/installs/elixir/1.18.4-otp-28/bin:/Users/REDACTED_USERNAME/.local/share/mise/installs/elixir/1.18.4-otp-28/.mix/escripts:/Users/REDACTED_USERNAME/.local/share/mise/installs/node/24.1.0/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/TeX/texbin:/opt/homebrew/bin:/Users/REDACTED_USERNAME/.orbstack/bin:/Users/REDACTED_USERNAME/.orbstack/bin'
good
vanderhoop
Metadata
Metadata
Assignees
Labels
No labels