From dc8a8538421102c1f41cbec1f79f5130ecb7ed35 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:27:05 +0100 Subject: [PATCH] lsp/next-ls: Fix wrong nls binary being fetched. (#3181) 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). --- crates/zed/src/languages/elixir.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/zed/src/languages/elixir.rs b/crates/zed/src/languages/elixir.rs index 5c0ff273ae385ce1aa2efff99cc2d00860898f08..df438d89eef7b7c5c89a376670d7d270db4fa413 100644 --- a/crates/zed/src/languages/elixir.rs +++ b/crates/zed/src/languages/elixir.rs @@ -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);