Skip to content

Commit 69f09e0

Browse files
authored
feat: Support vfox(version-fox) (#1096)
1 parent 5a71a3f commit 69f09e0

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

apps/elixir_ls_utils/priv/launch.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ else
5858
eval "$($(which rtx) activate "$preferred_shell")"
5959
else
6060
>&2 echo "rtx not found"
61+
62+
>&2 echo "Looking for vfox executable"
63+
if which vfox >/dev/null
64+
then
65+
>&2 echo "vfox executable found in $(which vfox), activating"
66+
eval "$($(which vfox) activate "$preferred_shell")"
67+
else
68+
>&2 echo "vfox not found"
69+
fi
6170
fi
6271
fi
6372
fi

guides/incomplete-installation.md

Lines changed: 1 addition & 1 deletion
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 [MISE](https://github.com/jdx/mise)
6+
* Installing elixir and erlang via [ASDF](https://github.com/asdf-vm/asdf) or [vfox (version-fox)](https://github.com/version-fox/vfox) or [MISE](https://github.com/jdx/mise)
77
(recommended)
88
* Installing a full version of Erlang/OTP via the package manager
99

scripts/launch.fish

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ else
3939
"$rtx" env -s fish | source
4040
else
4141
echo "rtx not found" >&2
42+
43+
set vfox (which vfox)
44+
if test -n "$vfox"
45+
echo "vfox executable found in $vfox, activating" >&2
46+
47+
"$vfox" activate fish | source
48+
else
49+
echo "vfox not found" >&2
50+
end
4251
end
4352
end
4453
end

scripts/launch.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ else
6464
eval "$($(which rtx) env -s "$preferred_shell")"
6565
else
6666
>&2 echo "rtx not found"
67+
68+
>&2 echo "Looking for vfox executable"
69+
if which vfox >/dev/null
70+
then
71+
>&2 echo "vfox executable found in $(which vfox), activating"
72+
eval "$($(which vfox) activate "$preferred_shell")"
73+
else
74+
>&2 echo "vfox not found"
75+
fi
6776
fi
6877
fi
6978
fi

0 commit comments

Comments
 (0)