Last active
November 9, 2023 14:21
-
-
Save benvp/5a76cd974f301329c268e8b1a2cc2a65 to your computer and use it in GitHub Desktop.
recompile elixirls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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