Skip to content

Commit

Permalink
feat: Support vfox(version-fox) (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshan333 committed Jun 11, 2024
1 parent 5a71a3f commit 69f09e0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions apps/elixir_ls_utils/priv/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ else
eval "$($(which rtx) activate "$preferred_shell")"
else
>&2 echo "rtx not found"

>&2 echo "Looking for vfox executable"
if which vfox >/dev/null
then
>&2 echo "vfox executable found in $(which vfox), activating"
eval "$($(which vfox) activate "$preferred_shell")"
else
>&2 echo "vfox not found"
fi
fi
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion guides/incomplete-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Incomplete installations is a frequent cause of ElixirLS failures. Generally
this is resolved by:

* Installing elixir and erlang via [ASDF](https://github.com/asdf-vm/asdf) or [MISE](https://github.com/jdx/mise)
* 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)
(recommended)
* Installing a full version of Erlang/OTP via the package manager

Expand Down
9 changes: 9 additions & 0 deletions scripts/launch.fish
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ else
"$rtx" env -s fish | source
else
echo "rtx not found" >&2

set vfox (which vfox)
if test -n "$vfox"
echo "vfox executable found in $vfox, activating" >&2

"$vfox" activate fish | source
else
echo "vfox not found" >&2
end
end
end
end
Expand Down
9 changes: 9 additions & 0 deletions scripts/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ else
eval "$($(which rtx) env -s "$preferred_shell")"
else
>&2 echo "rtx not found"

>&2 echo "Looking for vfox executable"
if which vfox >/dev/null
then
>&2 echo "vfox executable found in $(which vfox), activating"
eval "$($(which vfox) activate "$preferred_shell")"
else
>&2 echo "vfox not found"
fi
fi
fi
fi
Expand Down

0 comments on commit 69f09e0

Please sign in to comment.