Skip to content

Conversation

doorgan
Copy link
Collaborator

@doorgan doorgan commented Oct 9, 2025

This is an alternative to #93 that should fix the issue for any version manager, if any

Previously we were trying to identify the version manager used by the user(asdf or mise/rtx in particular) and try to get them to provide an environment we could use to get the elixir+erlang versions for the project

The issue we're facing is that we can't reliably find an environment that way, so we end up with PATHs that don't include elixir, include the wrong version, or include only elixir and not erl.

Similarly for mise, we had issues where the env parsing stopped working(compared to lexical, from which this code is based on).

This PR uses the approach used by Radon IDE: launch an interactive shell on the project path so the OS populates the PATH, grab that PATH and use it to then find elixir

By doing this it doesn't matter which version manager you use or by what means elixir is installed, we can reliably get the same version the project expects.

@doorgan doorgan merged commit 5dacce4 into main Oct 10, 2025
121 of 126 checks passed
@doorgan doorgan deleted the doorgan/find_elixir branch October 10, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants