arrterian / nix-env-selector

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

Remote/SSH developement with flakes not working #90

Open HendrikHuebner opened 3 months ago

HendrikHuebner commented 3 months ago

Describe the bug I'm not sure if this is a bug or just not supported yet, but for me at least remote developement with flakes does not work.

I would like to have the vscode ssh client, lsp etc. started inside my development shell (nix develop) from my flake.nix.

Currently, when I try to run "Nix Env: Select environment" with the flake, it just seems to get stuck. The "Applying Environment" spinner in the bottom bar just spins indefinitely.

Environment:

Additional context Add any other context about the problem here.

mexus commented 2 months ago

I also encounter this bug from time to time.

When this happens, I see the following line in the ouptut:

Loaded config: {:workspace-root "/path/to/the/project", :nix-file nil, :suggest-nix? true, :nix-packages #js [], :nix-args nil, :nix-shell-path nil}

Most of the times reloading the window helps, but sometimes it takes several attempts.