-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Zed Editor package can't use language servers #309662
Comments
Temporary workaround that works for me with Rust Analyzer is to use Create { pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSEnv {
name = "zed";
runScript = "zed";
}).env Then run |
Is zed trying to run the language servers from your PATH, failing and then defaulting to its own binaries ( |
As far as I can tell I think it only tries from the ones it downloads.
|
According to their website, Zed is not yet able to connect with "arbitrary language servers". Maybe we'll have to wait for this to be able to inject our nix built binaries... |
There seems to be an (undocumented) configuration option to override the language server binary it uses for a language: #284064 (comment). EDIT: seems like it only works for C, Tailwind, Rust and Go right now though, since each language has to set it up manually. |
I'm executing Zed in a FHS environment using: {pkgs, ...}: let
zed-fhs = pkgs.buildFHSUserEnv {
name = "zed";
targetPkgs = pkgs:
with pkgs; [
zed-editor
];
runScript = "zed";
};
in {
home.packages = [zed-fhs];
}; And it works quite well. The only problem is that it does not show up in the desktop entries. |
Describe the bug
Zed has the same issue as many other editors where it tries to run dynamically-linked libraries. A FHS chroot like
vscode-fhs
would probably fix this.Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Zed is able to download and execute the language server of choice.
Additional context
Here is the log entry:
Notify maintainers
@GaetanLepage
@niklaskorz
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: