File tree Expand file tree Collapse file tree
apps/elixir_ls_utils/priv Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 . " ${asdf_vm} "
4343else
4444 >&2 echo " ASDF not found"
45- >&2 echo " Looking for rtx executable"
45+ >&2 echo " Looking for mise executable"
4646
47- if which rtx > /dev/null
47+ if which mise > /dev/null
4848 then
49- >&2 echo " rtx executable found in $( which rtx ) , activating"
50- eval " $( $( which rtx ) activate " $preferred_shell " ) "
49+ >&2 echo " mise executable found in $( which mise ) , activating"
50+ eval " $( $( which mise ) activate " $preferred_shell " ) "
5151 else
52- >&2 echo " rtx not found"
52+ >&2 echo " mise not found"
53+ >&2 echo " Looking for rtx executable"
54+
55+ if which rtx > /dev/null
56+ then
57+ >&2 echo " rtx executable found in $( which rtx) , activating"
58+ eval " $( $( which rtx) activate " $preferred_shell " ) "
59+ else
60+ >&2 echo " rtx not found"
61+ fi
5362 fi
5463fi
5564
Original file line number Diff line number Diff line change 33Incomplete installations is a frequent cause of ElixirLS failures. Generally
44this is resolved by:
55
6- * Installing elixir and erlang via [ ASDF] ( https://github.com/asdf-vm/asdf ) or [ RTX ] ( https://github.com/jdx/rtx )
6+ * Installing elixir and erlang via [ ASDF] ( https://github.com/asdf-vm/asdf ) or [ MISE ] ( https://github.com/jdx/mise )
77 (recommended)
88* Installing a full version of Erlang/OTP via the package manager
99
@@ -16,7 +16,7 @@ installed. For Ubuntu this can be fixed by running
1616sudo apt-get install erlang erlang-dialyzer
1717```
1818
19- or installing Elixir and Erlang via [ ASDF] ( https://github.com/asdf-vm/asdf ) or [ RTX ] ( https://github.com/jdx/rtx )
19+ or installing Elixir and Erlang via [ ASDF] ( https://github.com/asdf-vm/asdf ) or [ MISE ] ( https://github.com/jdx/mise )
2020
2121Relevant issue: https://github.com/elixir-lsp/vscode-elixir-ls/issues/134
2222
@@ -29,6 +29,6 @@ installed. For fedora this can be fixed by running
2929sudo dnf install erlang erlang-edoc
3030```
3131
32- or installing Elixir and Erlang via [ ASDF] ( https://github.com/asdf-vm/asdf ) or [ RTX ] ( https://github.com/jdx/rtx )
32+ or installing Elixir and Erlang via [ ASDF] ( https://github.com/asdf-vm/asdf ) or [ MISE ] ( https://github.com/jdx/mise )
3333
3434Relevant issue: https://github.com/elixir-lsp/elixir-ls/issues/431
Original file line number Diff line number Diff line change @@ -21,15 +21,25 @@ if test -f "$asdf_vm"
2121 source " $asdf_vm "
2222else
2323 echo " ASDF not found" >&2
24- echo " Looking for rtx executable" >&2
24+ echo " Looking for mise executable" >&2
2525
26- set rtx (which rtx )
27- if test -n " $rtx "
28- echo " rtx executable found in $rtx , activating" >&2
26+ set mise (which mise )
27+ if test -n " $mise "
28+ echo " mise executable found in $mise , activating" >&2
2929
30- " $rtx " env -s fish | source
30+ " $mise " env -s fish | source
3131 else
32- echo " rtx not found" >&2
32+ echo " mise not found" >&2
33+ echo " Looking for rtx executable" >&2
34+
35+ set rtx (which rtx)
36+ if test -n " $rtx "
37+ echo " rtx executable found in $rtx , activating" >&2
38+
39+ " $rtx " env -s fish | source
40+ else
41+ echo " rtx not found" >&2
42+ end
3343 end
3444end
3545
Original file line number Diff line number Diff line change 4848 . " ${asdf_vm} "
4949else
5050 >&2 echo " ASDF not found"
51- >&2 echo " Looking for rtx executable"
51+ >&2 echo " Looking for mise executable"
5252
53- if which rtx > /dev/null
53+ if which mise > /dev/null
5454 then
55- >&2 echo " rtx executable found in $( which rtx ) , activating"
56- eval " $( $( which rtx ) env -s " $preferred_shell " ) "
55+ >&2 echo " mise executable found in $( which mise ) , activating"
56+ eval " $( $( which mise ) env -s " $preferred_shell " ) "
5757 else
58- >&2 echo " rtx not found"
58+ >&2 echo " mise not found"
59+ >&2 echo " Looking for rtx executable"
60+
61+ if which rtx > /dev/null
62+ then
63+ >&2 echo " rtx executable found in $( which rtx) , activating"
64+ eval " $( $( which rtx) env -s " $preferred_shell " ) "
65+ else
66+ >&2 echo " rtx not found"
67+ fi
5968 fi
6069fi
6170
You can’t perform that action at this time.
0 commit comments