Skip to content

Commit fd9443c

Browse files
committed
drop support for rtx
1 parent 181a04b commit fd9443c

File tree

3 files changed

+26
-36
lines changed

3 files changed

+26
-36
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
### Unreleased
2+
3+
#### Highlights
4+
5+
#### Improvements
6+
27
- Added option `elixirLS.dotFormatter` to specify path to custom `.formatter.exs`
38

9+
#### Fixes
10+
11+
#### Breaking changes
12+
13+
- support for `rtx` in launch script dropped. Upgrade to `mise`
14+
415
### v0.28.1: 24 May 2025
516

617
#### Fixes

scripts/launch.fish

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,25 +66,15 @@ else
6666
export_stdlib_path "mise which elixir"
6767
else
6868
echo "mise not found" >&2
69-
echo "Looking for rtx executable" >&2
69+
echo "Looking for vfox executable" >&2
7070

71-
set rtx (which rtx)
72-
if test -n "$rtx"
73-
echo "rtx executable found at $rtx, activating" >&2
74-
"$rtx" env -s fish | source
75-
export_stdlib_path "rtx which elixir"
71+
set vfox (which vfox)
72+
if test -n "$vfox"
73+
echo "vfox executable found at $vfox, activating" >&2
74+
"$vfox" activate fish | source
7675
else
77-
echo "rtx not found" >&2
78-
echo "Looking for vfox executable" >&2
79-
80-
set vfox (which vfox)
81-
if test -n "$vfox"
82-
echo "vfox executable found at $vfox, activating" >&2
83-
"$vfox" activate fish | source
84-
else
85-
echo "vfox not found" >&2
86-
export_stdlib_path "which elixir"
87-
end
76+
echo "vfox not found" >&2
77+
export_stdlib_path "which elixir"
8878
end
8979
end
9080
end

scripts/launch.sh

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,14 @@ else
9797
export_stdlib_path "mise which elixir"
9898
else
9999
>&2 echo "mise not found"
100-
>&2 echo "Looking for rtx executable"
100+
>&2 echo "Looking for vfox executable"
101101

102-
# Look for rtx executable
103-
if command -v rtx >/dev/null 2>&1; then
104-
>&2 echo "rtx executable found at $(command -v rtx), activating"
105-
eval "$($(command -v rtx) env -s "$preferred_shell")"
106-
export_stdlib_path "rtx which elixir"
102+
if command -v vfox >/dev/null 2>&1; then
103+
>&2 echo "vfox executable found at $(command -v vfox), activating"
104+
eval "$( $(command -v vfox) activate "$preferred_shell" )"
107105
else
108-
>&2 echo "rtx not found"
109-
>&2 echo "Looking for vfox executable"
110-
111-
# Look for vfox executable
112-
if command -v vfox >/dev/null 2>&1; then
113-
>&2 echo "vfox executable found at $(command -v vfox), activating"
114-
eval "$($(command -v vfox) activate "$preferred_shell")"
115-
else
116-
>&2 echo "vfox not found"
117-
export_stdlib_path "which elixir"
118-
fi
106+
>&2 echo "vfox not found"
107+
export_stdlib_path "which elixir"
119108
fi
120109
fi
121110
fi
@@ -153,9 +142,9 @@ echo "" | elixir "$SCRIPTPATH/quiet_install.exs" >/dev/null || exit 1
153142
default_erl_opts="-kernel standard_io_encoding latin1 +sbwt none +sbwtdcpu none +sbwtdio none"
154143

155144
if [ "$preferred_shell" = "bash" ]; then
156-
source "$dirname/exec.bash"
145+
. "$dirname/exec.bash"
157146
elif [ "$preferred_shell" = "zsh" ]; then
158-
source "$dirname/exec.zsh"
147+
. "$dirname/exec.zsh"
159148
else
160149
if [ -z "$ELS_ELIXIR_OPTS" ]
161150
then

0 commit comments

Comments
 (0)