Comments (7)
Not the issue author, but I can confirm that 1.0.4 is working for me.
from nix-env-selector.
@Hjdskes it seems there is not a related bug (I just miss error handling somewhere). Please, create a new issue with your problem.
from nix-env-selector.
I've been getting this same behavior recently; I tried downgrading to 0.1.2 and it works fine, so it looks like the issue is only with version 1.0.2. I am using VSCode on Windows inside a WSL2 environment.
from nix-env-selector.
Should be fixed in v1.0.4
from nix-env-selector.
@faldor20 can you confirm that the issue resolved?
from nix-env-selector.
Yeah sorry. I'm not setup with nix right now. I'll take @cordarei 's word for it :)
from nix-env-selector.
I seem to be facing this on 1.0.7. I'm using the workspace feature as suggested elsewhere:
{
"folders": [
{
"path": "."
}
],
"settings": {
"nixEnvSelector.suggestion": false,
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix"
}
}
My shell.nix:
{ pkgs ? import ./haskell.nix
, hsPkgs ? import ./default.nix {} }:
let
terraform = pkgs.terraform_0_14.withPlugins(p: [ p.aws ]);
in hsPkgs.shellFor {
# Include only the *local* packages of your project.
packages = ps: with ps;
[ shiba ];
# Builds a Hoogle documentation index of all dependencies,
# and provides a "hoogle" command to search the index.
withHoogle = true;
# You might want some extra tools in the shell (optional).
# Some common tools can be added with the `tools` argument
tools = { cabal = "3.2.0.0"; hlint = "2.2.11"; stylish-haskell = "0.12.2.0"; };
# See overlays/tools.nix for more details
# Some you may need to get some other way.
buildInputs = with hsPkgs.haskellPackages;
[ terraform pkgs.awscli ];
# Prevents cabal from choosing alternate plans, so that
# *all* dependencies are provided by Nix.
exactDeps = true;
}
It's a fairly standard haskell.nix setup. Let me know if you want me to open a new issue and if you need to see the rest of my nix files as well!
from nix-env-selector.
Related Issues (20)
- Stuck applying environment HOT 12
- Rustup packages as settings packages HOT 3
- Have the extension output logs in the Output window HOT 4
- Can't make my fhs env work HOT 1
- shell.nix exetubables don't seem to be made available after selecting shell.nix HOT 1
- [Feature]: Support shell.nix files outside of the project directory
- [BUG] Extension don't add package to PATH variable, when some active tabs need any package from shell.nix HOT 4
- "command 'nixEnvSelector.selectEnv' not found" HOT 1
- [Feature]: Support multiroot workspace HOT 2
- C/C++ Support: Can this be used to help generate the c_cpp_properties.json configuration file?
- [Documentation]: Document what `Hit environment` means
- [Feature]: Remember nix environment answer
- [Feature]: VSCode-Remote (SSH) support? HOT 6
- No longer applies shell.nix to integrated terminal? HOT 2
- Extension Development Host does not launch
- Can find packages from nix-shell, but not with nix-env-selector HOT 3
- TypeError when applying nix environment in Remote SSH HOT 3
- [Feature]: VSCodium support HOT 1
- Latest Pylance update brakes python environment HOT 1
- nix-env-selector does not work with flakes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-env-selector.