arrterian / nix-env-selector

Allows switch environment for Visual Studio Code using Nix Package Manager.
MIT License
220 stars 29 forks source link

[Feature]: VSCode-Remote (SSH) support? #74

Open ELLIOTTCABLE opened 1 year ago

ELLIOTTCABLE commented 1 year ago

Is your feature request related to a problem? Please describe. When working remotely over VScode Remote (SSH — a Linux box — not WSL), this extension doesn't appear to have any effect. The pop-up that a Nix environment has been detected works; but clicking the "Select" button does … nothing; the window doesn't reload, the environment doesn't appear affected.

Describe the solution you'd like I'd like to be able to use VSCode-OCaml-Platform etc with Nix environments that are on remote vscode-ssh servers! (=

dcarosone commented 1 year ago

Not exactly nothing. I get a spinning "Applying environment…" in the bottom window, but it seemingly makes no progress.

image

dliberalesso commented 1 year ago

@ELLIOTTCABLE Are you selecting flake.nix or shell.nix?

itslychee commented 1 year ago

I tried selecting both default.nix and flake.nix and it is stuck on Applying environment as well

dougch commented 1 year ago

Same behavior here, so I lsof'd the agent and found there is an agent log under ~/.vscode-server/data/logs/{TIKMESTAMP}/remoteagent.log

2023-06-28 19:48:56.745 [info] [127.0.0.1][25cadbd5][ExtensionHostConnection] <62108><stderr> error: nix-shell requires a single derivation

But I'm choosing flake.nix, are flakes not supported? or is there a configuration toggle to switch to nix develop?

senseab commented 10 months ago

same problem here

jeromegn commented 3 months ago

Works remotely for me, but I haven't found the right combo to properly apply it. Clicking "reload" on the popup does nothing and reloading manually doesn't always / ever apply the change. It does eventually work.