Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support vfox(version-fox) package manager #1096

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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