Skip to content

Commit

Permalink
lsp-erlang: update erlang-language-platform download file names (#4187)
Browse files Browse the repository at this point in the history
Include architecture triples to be able to download the appropriate
macos variant.
  • Loading branch information
alanz authored Oct 9, 2023
1 parent 73bb98e commit ef7b92a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* Changelog
** Unreleased 8.0.1
* Add architecture triples for [[https://github.com/WhatsApp/erlang-language-platform][erlang-language-platform]] file downloads, to support macos on ARM and X86.
* Add semantic token support for [[https://github.com/WhatsApp/erlang-language-platform][erlang-language-platform]] in lsp-erlang client.
* Update [[https://github.com/WhatsApp/erlang-language-platform][erlang-language-platform]] download file names to match new upstream names.
* Add [[https://github.com/WhatsApp/erlang-language-platform][erlang-language-platform]] support in lsp-erlang client.
Expand Down
7 changes: 5 additions & 2 deletions clients/lsp-erlang.el
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ It can use erlang-ls or erlang-language-platform (ELP)."
(defcustom lsp-erlang-elp-download-url
(format "https://github.com/WhatsApp/erlang-language-platform/releases/latest/download/%s"
(pcase system-type
('gnu/linux "elp-linux-otp-26.tar.gz")
('darwin "elp-macos-otp-25.3.tar.gz")))
('gnu/linux "elp-linux-x86_64-unknown-linux-gnu-otp-26.tar.gz")
('darwin
(if (string-match "^aarch64-.*" system-configuration)
"elp-macos-aarch64-apple-darwin-otp-25.3.tar.gz"
"elp-macos-x86_64-apple-darwin-otp-25.3.tar.gz"))))
"Automatic download url for erlang-language-platform."
:type 'string
:group 'lsp-erlang-elp
Expand Down

0 comments on commit ef7b92a

Please sign in to comment.