Comments (6)
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.
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.
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.
Thanks!
from eclipse-environment-variables.
This feature could be implemented as JetBrains Intellij IDE.
https://plugins.jetbrains.com/plugin/7861-envfile
from eclipse-environment-variables.
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)
- not working with Neon.3 (4.6.3) HOT 1
- Exception when attempting to Apply or Apply and Close HOT 2
- Environment variables per project HOT 1
- Eclipse links broken HOT 2
- Env not available in eclipse debug mode HOT 1
- add p2 site
- Not working on Eclipse 4.20 (Mac) HOT 3
- Enhancement: project specific Enviroments variable
- NoClassDefFoundError on eclipse 4.23 on mac HOT 2
- Not working with eclipse oxygen
- Can not define a variable with empty value HOT 2
- Error with Java 11 HOT 4
- Unable to install the plugin on Spring Tool Suite 3.9.7.RELEASE HOT 1
- Marketplace Install does not work HOT 6
- Not working with eclipse 2019-06 (4.12) HOT 2
- Building from source throws errors HOT 2
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 eclipse-environment-variables.