diff --git a/apps/elixir_ls_utils/priv/launch.sh b/apps/elixir_ls_utils/priv/launch.sh index 4dc5cee4e..b1358535e 100755 --- a/apps/elixir_ls_utils/priv/launch.sh +++ b/apps/elixir_ls_utils/priv/launch.sh @@ -42,14 +42,23 @@ then . "${asdf_vm}" else >&2 echo "ASDF not found" - >&2 echo "Looking for rtx executable" + >&2 echo "Looking for mise executable" - if which rtx >/dev/null + if which mise >/dev/null then - >&2 echo "rtx executable found in $(which rtx), activating" - eval "$($(which rtx) activate "$preferred_shell")" + >&2 echo "mise executable found in $(which mise), activating" + eval "$($(which mise) activate "$preferred_shell")" else - >&2 echo "rtx not found" + >&2 echo "mise not found" + >&2 echo "Looking for rtx executable" + + if which rtx >/dev/null + then + >&2 echo "rtx executable found in $(which rtx), activating" + eval "$($(which rtx) activate "$preferred_shell")" + else + >&2 echo "rtx not found" + fi fi fi diff --git a/guides/incomplete-installation.md b/guides/incomplete-installation.md index 82d4b0f16..21d3daffe 100644 --- a/guides/incomplete-installation.md +++ b/guides/incomplete-installation.md @@ -3,7 +3,7 @@ Incomplete installations is a frequent cause of ElixirLS failures. Generally this is resolved by: -* Installing elixir and erlang via [ASDF](https://github.com/asdf-vm/asdf) or [RTX](https://github.com/jdx/rtx) +* Installing elixir and erlang via [ASDF](https://github.com/asdf-vm/asdf) or [MISE](https://github.com/jdx/mise) (recommended) * Installing a full version of Erlang/OTP via the package manager @@ -16,7 +16,7 @@ installed. For Ubuntu this can be fixed by running sudo apt-get install erlang erlang-dialyzer ``` -or installing Elixir and Erlang via [ASDF](https://github.com/asdf-vm/asdf) or [RTX](https://github.com/jdx/rtx) +or installing Elixir and Erlang via [ASDF](https://github.com/asdf-vm/asdf) or [MISE](https://github.com/jdx/mise) Relevant issue: https://github.com/elixir-lsp/vscode-elixir-ls/issues/134 @@ -29,6 +29,6 @@ installed. For fedora this can be fixed by running sudo dnf install erlang erlang-edoc ``` -or installing Elixir and Erlang via [ASDF](https://github.com/asdf-vm/asdf) or [RTX](https://github.com/jdx/rtx) +or installing Elixir and Erlang via [ASDF](https://github.com/asdf-vm/asdf) or [MISE](https://github.com/jdx/mise) Relevant issue: https://github.com/elixir-lsp/elixir-ls/issues/431 diff --git a/scripts/launch.fish b/scripts/launch.fish index c50e60dc3..ad0385f4c 100644 --- a/scripts/launch.fish +++ b/scripts/launch.fish @@ -21,15 +21,25 @@ if test -f "$asdf_vm" source "$asdf_vm" else echo "ASDF not found" >&2 - echo "Looking for rtx executable" >&2 + echo "Looking for mise executable" >&2 - set rtx (which rtx) - if test -n "$rtx" - echo "rtx executable found in $rtx, activating" >&2 + set mise (which mise) + if test -n "$mise" + echo "mise executable found in $mise, activating" >&2 - "$rtx" env -s fish | source + "$mise" env -s fish | source else - echo "rtx not found" >&2 + echo "mise not found" >&2 + echo "Looking for rtx executable" >&2 + + set rtx (which rtx) + if test -n "$rtx" + echo "rtx executable found in $rtx, activating" >&2 + + "$rtx" env -s fish | source + else + echo "rtx not found" >&2 + end end end diff --git a/scripts/launch.sh b/scripts/launch.sh index a54329e4b..10870ac70 100755 --- a/scripts/launch.sh +++ b/scripts/launch.sh @@ -48,14 +48,23 @@ then . "${asdf_vm}" else >&2 echo "ASDF not found" - >&2 echo "Looking for rtx executable" + >&2 echo "Looking for mise executable" - if which rtx >/dev/null + if which mise >/dev/null then - >&2 echo "rtx executable found in $(which rtx), activating" - eval "$($(which rtx) env -s "$preferred_shell")" + >&2 echo "mise executable found in $(which mise), activating" + eval "$($(which mise) env -s "$preferred_shell")" else - >&2 echo "rtx not found" + >&2 echo "mise not found" + >&2 echo "Looking for rtx executable" + + if which rtx >/dev/null + then + >&2 echo "rtx executable found in $(which rtx), activating" + eval "$($(which rtx) env -s "$preferred_shell")" + else + >&2 echo "rtx not found" + fi fi fi