Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zig's ZLS download URLs have changed #4445

Open
2 of 3 tasks
nordlow opened this issue Apr 29, 2024 · 1 comment
Open
2 of 3 tasks

Zig's ZLS download URLs have changed #4445

nordlow opened this issue Apr 29, 2024 · 1 comment
Labels

Comments

@nordlow
Copy link

nordlow commented Apr 29, 2024

Thank you for the bug report

  • I am using the latest version of lsp-mode related packages.
  • 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

@jcs090218
Copy link
Member

Opened the issue in zigtools/zls#1879.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants