vim-lsp icon indicating copy to clipboard operation
vim-lsp copied to clipboard

vim-lsp does not install rust-analyzer

Open leitao opened this issue 5 months ago • 0 comments

This is happening because the "latest" release does not have an build. Only a few releases have the build.

A change like this fixed my problem:

diff --git a/installer/install-rust-analyzer.sh b/installer/install-rust-analyzer.sh
index f42518b..71e2fa5 100755
--- a/installer/install-rust-analyzer.sh
+++ b/installer/install-rust-analyzer.sh
@@ -42,7 +42,7 @@ mingw64_nt*)
   ;;
 esac

-curl -L -o "rust-analyzer-$platform.gz" "https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-$platform.gz"
+curl -L -o "rust-analyzer-$platform.gz" "https://github.com/rust-lang/rust-analyzer/releases/download/2024-08-05/rust-analyzer-aarch64-apple-darwin.gz"
 gzip -d "rust-analyzer-$platform.gz"

 mv rust-analyzer-$platform rust-analyzer

leitao avatar Sep 27 '24 11:09 leitao