Skip to content

Instantly share code, notes, and snippets.

@benvp
Last active November 9, 2023 14:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benvp/5a76cd974f301329c268e8b1a2cc2a65 to your computer and use it in GitHub Desktop.
Save benvp/5a76cd974f301329c268e8b1a2cc2a65 to your computer and use it in GitHub Desktop.
recompile elixirls
#!/bin/zsh
#
# Little script to recompile ElixirLS with the current elixir version.
default_version=0.14.5
version=$1 || $default_version
elixir_ls_dir=/tmp/elixir_ls
set -e
info () {
printf "\r [ \033[00;34m..\033[0m ] $1\n"
}
success () {
printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
}
echo ''
info 'Recompiling ElixirLS'
git clone --depth 1 --branch v$version https://github.com/elixir-lsp/elixir-ls.git $elixir_ls_dir
cd $elixir_ls_dir
mix deps.get
mix elixir_ls.release -o ~/.vscode/extensions/jakebecker.elixir-ls-$version/elixir-ls-release/
rm -rf $elixir_ls_dir
success "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment