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

Add a ZLS command for installing a specific labelled version #82

Closed
SuperAuguste opened this issue Feb 24, 2023 · 5 comments · Fixed by #138
Closed

Add a ZLS command for installing a specific labelled version #82

SuperAuguste opened this issue Feb 24, 2023 · 5 comments · Fixed by #138
Labels
enhancement lsp Issue with language server integration

Comments

@SuperAuguste
Copy link
Collaborator

As @leecannon said in zigtools/zls#1020 (comment), this is required for ZLS' new backwards compatibility model.

In essence, we would add a new "Install versioned release of ZLS" command which would allow someone to select a version from our releases page.

@Techatrix
Copy link
Collaborator

Once ziglang/zig#14475 is supported, this step could also be fully automated.

@Zireael07
Copy link

Installed a tagged version of zig, then zls, only to be nagged by the notification mentioned in the linked issue.
This is really sorely needed, automated or not

@tuket
Copy link

tuket commented Sep 20, 2023

Code_mxNH9F1vRB

At some point in time, I started getting this message.

What am I supposed to do? At the very least there should be some documentation about how to use the extension. The average user (me) has no clue what's the "intended" way to use the extension. I suspect that the extension has automatically updated ZLS at some point? Most of us just use the latest stable release of Zig and we end up getting this version mismatch error.

@antlanc7
Copy link

Code_mxNH9F1vRB At some point in time, I started getting this message.

What am I supposed to do? At the very least there should be some documentation about how to use the extension. The average user (me) has no clue what's the "intended" way to use the extension. I suspect that the extension has automatically updated ZLS at some point? Most of us just use the latest stable release of Zig and we end up getting this version mismatch error.

For now I disabled zls update in vscode settings, then I have manually downloaded the 0.11 release and I have overwritten the zls executable downloaded by the extension.

@tuket
Copy link

tuket commented Sep 23, 2023

I ended up downloading ZLS 0.11. The VS code extension has an option to set a path to a custom ZLS executable.

Code_hGOTnNojmI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement lsp Issue with language server integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants