Giter VIP home page Giter VIP logo

Comments (6)

bpracht avatar bpracht commented on June 12, 2024 1

I'd like to import environment from an env file, but on a per launch configuration. My reasoning is that many times I need to simulate something running in a cloud environment with secrets.

from eclipse-environment-variables.

JorisAerts avatar JorisAerts commented on June 12, 2024

How would you see this happen?
What do you suggest?
Should it automatically read .env files?
Should it be an opt-in feature (globally or per project)?

from eclipse-environment-variables.

andreas-wolf avatar andreas-wolf commented on June 12, 2024

Thanks for asking. I have to admit that I did not use Eclipse recently. I changed to Visual Studio Code.

So my scenario is that I have a lot of projects, which are depending on environment variables. I have to switch between projects a lot. Variables often have the same name, but different values (e.g. HOST_URL)
Furthermore during development these env variables change quite often (e.g. new password for a service).
It is a hassle to keep all the variables up to date and change them in eclipse when changing projects.
Furthermore there are different .env files for different project environments (development, test, production)

So to not over-complicate things it would be great if one could configure a file per project to read env-variables from (auto import from file when opening project). So if I configure ".env", Eclipse tries to read that file from the project root when I open the project.

I have to admit that since I wrote this feature request I learned that Eclipse uses the currently set environment variables and I could just go into the project directory and auto-set the variables with dotenv or a start script and then start an eclipse instance from that directory instead of using the eclipse start menu entry.
I found that to be a good workaround.
So maybe if I am the only one with that need it's not worth implementing it.

from eclipse-environment-variables.

JorisAerts avatar JorisAerts commented on June 12, 2024

Thanks!

from eclipse-environment-variables.

paulodcpicpay avatar paulodcpicpay commented on June 12, 2024

This feature could be implemented as JetBrains Intellij IDE.

https://plugins.jetbrains.com/plugin/7861-envfile

Screen Shot 2021-07-28 at 13 52 57

from eclipse-environment-variables.

bdmstyle avatar bdmstyle commented on June 12, 2024

ut on a per launch configuration. My reasoning is that many times I need to simulate something running in a cloud environment with secrets.

Is gonna be great this way!

from eclipse-environment-variables.

Related Issues (17)

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.