File tree Expand file tree Collapse file tree 4 files changed +47
-19
lines changed
apps/elixir_ls_utils/priv Expand file tree Collapse file tree 4 files changed +47
-19
lines changed Original file line number Diff line number Diff line change 42
42
. " ${asdf_vm} "
43
43
else
44
44
>&2 echo " ASDF not found"
45
- >&2 echo " Looking for rtx executable"
45
+ >&2 echo " Looking for mise executable"
46
46
47
- if which rtx > /dev/null
47
+ if which mise > /dev/null
48
48
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 " ) "
51
51
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
53
62
fi
54
63
fi
55
64
Original file line number Diff line number Diff line change 3
3
Incomplete installations is a frequent cause of ElixirLS failures. Generally
4
4
this is resolved by:
5
5
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 )
7
7
(recommended)
8
8
* Installing a full version of Erlang/OTP via the package manager
9
9
@@ -16,7 +16,7 @@ installed. For Ubuntu this can be fixed by running
16
16
sudo apt-get install erlang erlang-dialyzer
17
17
```
18
18
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 )
20
20
21
21
Relevant issue: https://github.com/elixir-lsp/vscode-elixir-ls/issues/134
22
22
@@ -29,6 +29,6 @@ installed. For fedora this can be fixed by running
29
29
sudo dnf install erlang erlang-edoc
30
30
```
31
31
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 )
33
33
34
34
Relevant 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"
21
21
source " $asdf_vm "
22
22
else
23
23
echo " ASDF not found" >&2
24
- echo " Looking for rtx executable" >&2
24
+ echo " Looking for mise executable" >&2
25
25
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
29
29
30
- " $rtx " env -s fish | source
30
+ " $mise " env -s fish | source
31
31
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
33
43
end
34
44
end
35
45
Original file line number Diff line number Diff line change 48
48
. " ${asdf_vm} "
49
49
else
50
50
>&2 echo " ASDF not found"
51
- >&2 echo " Looking for rtx executable"
51
+ >&2 echo " Looking for mise executable"
52
52
53
- if which rtx > /dev/null
53
+ if which mise > /dev/null
54
54
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 " ) "
57
57
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
59
68
fi
60
69
fi
61
70
You can’t perform that action at this time.
0 commit comments