Skip to content

Commit 62415f9

Browse files
fix: rtx project was renamed to mise (#1048)
* fix: rtx project was renamed to mise * chore: keep rtx compatibility
1 parent 46c8766 commit 62415f9

File tree

4 files changed

+47
-19
lines changed

4 files changed

+47
-19
lines changed

apps/elixir_ls_utils/priv/launch.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,23 @@ then
4242
. "${asdf_vm}"
4343
else
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
5463
fi
5564

guides/incomplete-installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Incomplete installations is a frequent cause of ElixirLS failures. Generally
44
this 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
1616
sudo 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

2121
Relevant 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
2929
sudo 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

3434
Relevant issue: https://github.com/elixir-lsp/elixir-ls/issues/431

scripts/launch.fish

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,25 @@ if test -f "$asdf_vm"
2121
source "$asdf_vm"
2222
else
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
3444
end
3545

scripts/launch.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,23 @@ then
4848
. "${asdf_vm}"
4949
else
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
6069
fi
6170

0 commit comments

Comments
 (0)