Skip to content

Commit

Permalink
lsp/next-ls: Fix wrong nls binary being fetched. (#3181)
Browse files Browse the repository at this point in the history
CPU types had to be swapped around.

Fixed zed-industries/community#2185

Release Notes:
- Fixed Elixir next-ls LSP installation failing due to fetching a binary
for the wrong architecture (zed-industries/community#2185).
  • Loading branch information
osiewicz authored Oct 30, 2023
1 parent 4986d47 commit dc8a853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/zed/src/languages/elixir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ impl LspAdapter for NextLspAdapter {
latest_github_release("elixir-tools/next-ls", false, delegate.http_client()).await?;
let version = release.name.clone();
let platform = match consts::ARCH {
"x86_64" => "darwin_arm64",
"aarch64" => "darwin_amd64",
"x86_64" => "darwin_amd64",
"aarch64" => "darwin_arm64",
other => bail!("Running on unsupported platform: {other}"),
};
let asset_name = format!("next_ls_{}", platform);
Expand Down

0 comments on commit dc8a853

Please sign in to comment.