-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Allow providing a custom binary path for ZLS and other language servers. #6767
Comments
It seems #9293 opens up the door to add this to Zig, which would solve my own use case. |
I'm not confident enough in my Rust skills to PR it d40fb6a |
I believe this is now supported. Can you test and see if this works for you? "lsp": {
"zls": {
"binary": {
"path": "/opt/homebrew/bin/zig"
}
}
} If not, please comment and I'm happy to reopen. Thanks |
Does this allow for relative paths? My use case would be ruby gem bundle binstubs. |
I think so. Not sure whether it's:
We should document this better. If it doesn't work go ahead and open a new issue. Alternatively you should also be able to add that bin dir to your path and it'll pick it automatically. |
Check for existing issues
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.
I solve this in VSCode with these options:
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.
(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
The text was updated successfully, but these errors were encountered: