zed icon indicating copy to clipboard operation
zed copied to clipboard

Allow providing a custom binary path for ZLS and other language servers.

Open paperclover opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

Excited to see merging of the Zig integration. I built the editor locally to try it out, and it's great to see syntax highlighting for it finally.

But I have the nightly version of zig and zls installed on my machine. Zed seems to load the stable version 0.11. That makes it unable to parse the build.zig in Bun because of new features the language has seen that have not been released into stable.

image

I solve this in VSCode with these options:

image

Furthermore, in Bun's repo, we hardcode a specific path relative to the project as our build system downloads a specific version of the compiler.

image

(the .exe is a specific workaround because Windows binaries must have .exe as a suffix; on Posix we symlink the extensionless binary to a .exe to get this working on all platforms seamlessly)

Honestly would be amazing if Zed could just peek at the vscode config and steal the properties to make this "just work", but I believe the proper feature request is having some Zed equivalents of these settings. I could not find any within the code so I assume they do not exist.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

paperclover avatar Jan 26 '24 11:01 paperclover

Sorry, ~~it seems this isnt a issue with ZLS. but rather the grammar.~~ auguste says to me it is a ZLS version issue.

image

I believe my feature request is still valid as I do need to configure specific versions of the compiler.

paperclover avatar Jan 26 '24 12:01 paperclover

Related:

  • #4978

jansol avatar Feb 01 '24 14:02 jansol

It seems #9293 opens up the door to add this to Zig, which would solve my own use case.

paperclover avatar Mar 28 '24 23:03 paperclover

I'm not confident enough in my Rust skills to PR it https://github.com/zed-industries/zed/commit/d40fb6a54168832bb71768302a26f0d41f9f6736

llogick avatar Jul 08 '24 22:07 llogick