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

Zig's ZLS download URLs have changed

Open nordlow opened this issue 1 year ago • 2 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
  • [ ] You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain

Bug description

lsp-zig.el needs to be adjusted to download the now uncompressed binary from https://github.com/zigtools/zls/wiki/Installation#latest-nightly.

Steps to reproduce

Open a .zig file and the error occurrs.

Expected behavior

The output in Message become

LSP :: Download zls started. LSP :: Starting to download https://github.com/zigtools/zls/releases/latest/download/zls-x86_64-linux.tar.gz to ~/.emacs.d/.cache/lsp/zig/temp.tar.gz... Contacting host: github.com:443 Wrote ~/.emacs.d/.cache/lsp/zig/temp.tar.gz LSP :: Finished downloading ~/.emacs.d/.cache/lsp/zig/temp.tar.gz... LSP :: Decompressing ~/.emacs.d/.cache/lsp/zig/temp.tar.gz... tar: This does not look like a tar archive

gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now LSP :: Decompressed ~/.emacs.d/.cache/lsp/zig/temp... LSP :: Server zls downloaded, auto-starting in 1 buffers. Quit [2 times] Displaying messages... Mark set

Which Language Server did you use?

I used lsp-zig.

OS

Linux

Error callstack

No response

Anything else?

No response

nordlow avatar Apr 29 '24 07:04 nordlow

Opened the issue in https://github.com/zigtools/zls/issues/1879.

jcs090218 avatar Apr 29 '24 09:04 jcs090218

This issue has been unblocked. See https://github.com/zigtools/zls/issues/1879#issuecomment-2302889190

Techatrix avatar Aug 31 '24 17:08 Techatrix