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

Running remote-development with NixOS as a host seems to cause issues #20524

Open
1 task done
thattomperson opened this issue Nov 12, 2024 · 1 comment
Open
1 task done
Labels
bug [core label] linux remote dev Feedback for remote development servers

Comments

@thattomperson
Copy link

thattomperson commented Nov 12, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When there is no global node installed, Zed attempts to download a version and places it in ~/.local/share/zed
Because nix doesn't have a normal LD_PATH this version of node fails to run

installing and configuring NIXLD doesn't seem to do anything as i assume these two lines are deleteing the NIX_LD and NIX_LD_LIBRARY_PATH env vars for the process

command.env_clear();
command.env("PATH", env_path);

Environment

Zed: v0.161.1 (Zed Preview)
OS: macOS 14.7.0
Memory: 18 GiB
Architecture: aarch64

Remote host is a NixOS host

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

No response

If applicable, attach your Zed.log file to this issue.

Zed.log
{"level":1,"module_path":"project::prettier_store","file":"crates/project/src/prettier_store.rs","line":536,"message":"(remote server) Failed to install default prettier: prettier & plugins install: fetching latest npm versions: fetching latest npm version for package prettier: failed to execute npm info subcommand:\nstdout: \"\"\nstderr: \"cannot execute /home/four/.local/share/zed/node/node-v22.5.1-linux-arm64/bin/node: You are trying to run an unpatched binary on nixos, but you have not configured NIX_LD or NIX_LD_aarch64-linux. See https://github.com/Mic92/nix-ld for more details\\n\""}
@thattomperson thattomperson added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Nov 12, 2024
@thattomperson
Copy link
Author

@JosephTLyons JosephTLyons added linux remote dev Feedback for remote development servers and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] linux remote dev Feedback for remote development servers
Projects
None yet
Development

No branches or pull requests

2 participants