Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtime): support workspace shims with elixir_exec option #360

Closed
wants to merge 1 commit into from

Commits on Jan 20, 2024

  1. feat(runtime): Support workspace shims with elixir_exec option

    Relates to elixir-tools#334
    
    IDEs like to work with shims rather than tools that alter path
    (such as `mise`/`rtx`). As a result, one must launch their IDE
    manually from a terminal session with all the `PATH` loaded in
    order to properly find the `elixir` executable. This works fine,
    but switching between projects/workspaces that have varying
    Elixir/OTP versions will most likely be using the version loaded
    when launching the program from terminal.
    
    One resolve might be to include shims in the `PATH` globally.
    However, that negates some of the reasoning to move to alternate
    tools like `mise.
    
    Instead, this allows setting the `elixir_exec` option to point
    directly at a shim. When used in workspace directories, that
    should also be able to load the correct versions defined in the
    tool version files. This also allows keeping the need for a shim
    isolated to the LS tool rather than global use
    jjcarstens committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    8a6101d View commit details
    Browse the repository at this point in the history