-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Can find packages from nix-shell, but not with nix-env-selector #80
Comments
Yep, I've found this since the latest VSCode update (March 2023). In my case, it's the Haskell extension crashing at launch because it can't find the language server binary. So it looks like upstream may have completely broken this extension... |
Between this and #53*, I've ended up switching to using direnv (with nix-direnv). All I needed to do to replicate nix-env-selector was to install direnv and the maintained direnv VSCode extension and add a
then run I did prefer the seamless experience of nix-env-selector when it worked though! * EDIT: And, perhaps, a general lagginess since the last VSCode update, particularly in |
This seems to activate the extension earlier and allows language extensions to depend on the loaded nix environment. See arrterian#80
This seems to activate the extension earlier and allows language extensions to depend on the loaded nix environment. See arrterian#80
For the haskell-language-server I could get it working again by adding an additional "onLanguage" activationEvent in the extension manifest. See #82 |
When I run
nix-shell
and thencode .
, intellisense can find all of my packages. However, opening VS Code (not from the nix-shell) using nix-env-selector, intellisense does not find the packages. I've uninstalled, reinstalled, and repeated selection of the environment.Environment:
The text was updated successfully, but these errors were encountered: