arrterian / nix-env-selector

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

Unable to switch due to spaces in path name #41

Closed alexandre-lavoie closed 3 years ago

alexandre-lavoie commented 3 years ago

Describe the bug I am using a path that includes spaces in the name. I am unable to switch environments because of it. The error message is as follows:

Command failed: nix-shell /mnt/Disk E/.../shell.nix --run env error: getting status of '/mnt/Disk': No such file or directory

(I've replaced the full path with ...).

To Reproduce

  1. Create a folder with spaces in the name and a *.nix.
  2. Switch to the *.nix environment.

Expected behavior I expect to be able to switch environment.

Environment: This should affect any OS that allows spaces in the path.

Additional context Open #42 as a possible fix to the issue.

nbren12 commented 3 years ago

I am having the same issue.

arrterian commented 3 years ago

Fixed in #44 Released in v1.0.0