Giter VIP home page Giter VIP logo

Comments (3)

arrterian avatar arrterian commented on May 23, 2024

@tbenst I investigated the issue briefly. Sad but we need to run some shell command as process fork from node js and I didn't find the solution with buildFHSUserEnv if you can help to get env output inside the environment by forking process it can help in another way I think we should close the issue as unresolved in this context.

from nix-env-selector.

tbenst avatar tbenst commented on May 23, 2024

Hi @arrterian, thanks for looking into this! I didn’t quite follow your comment, could you elaborate or point me to code? happy to help. Thanks!

from nix-env-selector.

arrterian avatar arrterian commented on May 23, 2024

@tbenst
Now the extension works this way. https://github.com/arrterian/nix-env-selector/blob/master/src/helpers.ts#L22
We run env command inside nix-shell then parse the output through dotenv, then set each variable to node-process on extension host via process.env. If we can get the output from buildFHSUserEnv via forking some process I will able to implement that in extension. But I can't find a solution to how to do that.

from nix-env-selector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.