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

lsp lua-language-server version is not latest

Open basaran opened this issue 1 year ago • 1 comments

Thank you for the bug report

  • [X] I am using the latest version of lsp-mode related packages.
  • [X] I checked FAQ and Troubleshooting sections
  • [X] You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

version 1.x is hardcoded:

url (lsp-vscode-extension-url "sumneko" "lua" "1.17.4")

Latest version from vscode marketplace 3.5.0.

Steps to reproduce

NA

Expected behavior

It should download the latest version

Which Language Server did you use?

lua-language-server

OS

Linux

Error callstack

No response

Anything else?

I downloaded the latest version manually from vscode marketplace, extracted and updated lsp-clients-lua-language-server-bin to the new folder, and I got format buffer enabled. I can try to send a PR if allowed.

basaran avatar Jul 23 '22 04:07 basaran

yes, that would be nice to get the @latest but sumneko's release page is providing different compressed files for different platforms and stuff. I don't know if the decompression routine in the lisp file can handle the tar.gz seamlessly. So I just pulled the links from the marketplace and updated the pcases.

Marketplace download links were also different per platform. However, the roblox language server didn't have that (single zip with all platforms). But I fixed that too while I am at it. The lisp I used can most definitely be better. I tested both lang servers and they do seem fine. Please test and let me know.

basaran avatar Jul 23 '22 05:07 basaran