Comments (16)
Finally I was able to find a bit of time to look into this deeper. There are good news and bad news.
Good news are:
- Yes, I'm working on it and it's coming
- I'll try to roll out multiple files support together with multiple platforms support
Bad news are:
- There are no truly generic way to add support for such functionality across all platforms
- But there is semi-generic way to do that (if I'm not missing anything)
- Although it probably will make the UI for the plugin a little bit less convenient
- And it will take time to implement this new approach
- Therefore probably platform support will be added one by one
Now, I will start from integrating with IDEA as it's the most requested platform. As for others - need to figure out order based on demand. Stay tuned. ;)
from envfile.
http://stackoverflow.com/questions/27093002/specifying-webstorm-environment-from-file
from envfile.
Version 2.0
is now available for downloads. Please check-out the README.md
as it contains updated usage guide.
I'm closing this issue as v2.0
implements support for multiple files and provides integration with IDEA and RubyMIne (lower hanging fruits)/ For other platforms - please create new issues and specify not only platform (e.g. WebStorm
) but also run configuration types (e.g. Node.js
) you would like to see supported.
from envfile.
Hooray! First issue. :)
Support for multiple files with an explicit load order -- last-one-wins on key conflicts.
There are no problems from technical point of view but I guess how to do UI for this... Do you have any ideas?
Ability to use this with IntelliJ and non-Python projects (in particular, for JVM-based projects of course).
Due to IntelliJ IDEA architecture it's not possible to implement this as one-fro-all so I will need to add special code fore each platform. What will be priorities for you? IntelliJ IDEA itself?
from envfile.
IntelliJ IDEA Community Edition is what we're using around here. We specifically have Scala-based projects on JDK 1.6 and 1.8, built using Maven. Not sure if any/all of that is relevant but including it just in case.
As for UI, I'd do a simple list view with options to move an item up/down the list. It should be reasonably self-evident with little/no explanation that it runs through them first-to-last, and it's trivial to determine that semantic experimentally so likely little need to bog things down with exposition about it.
(Thank you for your responsiveness, BTW!)
On Sep 1, 2015, at 8:45 PM, Borys Pierov [email protected] wrote:
Hooray! First issue. :)
Support for multiple files with an explicit load order -- last-one-wins on key conflicts.
There are no problems from technical point of view but I guess how to do UI for this... Do you have any ideas?Ability to use this with IntelliJ and non-Python projects (in particular, for JVM-based projects of course).
Due to IntelliJ IDEA architecture it's not possible to implement this as one-fro-all so I will need to add special code fore each platform. What will be priorities for you? IntelliJ IDEA itself?—
Reply to this email directly or view it on GitHub #3 (comment).
from envfile.
That's very relevant, thanks. What type of build configuration are you using? Is it built-into IDEA? Or you using some kind of Scala plugin? If it's built into IDEA, is it CE or PE?
from envfile.
It's a plugin -- one of the preferred ones it recommends when you set Idea up the first time, and we're using CE.
Sent from my iPhone
On Sep 3, 2015, at 9:25 AM, Borys Pierov [email protected] wrote:
That's very relevant, thanks. What type of build configuration are you using? Is it built-into IDEA? Or you using some kind of Scala plugin? If it's built into IDEA, is it CE or PE?
—
Reply to this email directly or view it on GitHub.
from envfile.
Would you be able to make this work with all runtime configuration types by moving support for .env files up to the project level? In other works, configure the .env file (or list of files, love that idea) in the project settings, and use that to create an environment inherited by all runtime configurations?
from envfile.
Ansel, that's a nice idea. I will look into it. Thanks.
from envfile.
Any chance this is coming to IDEA?
from envfile.
@EvertEt would be helpful to hear desired use-case - how exactly would you like this one to be integrated? For what kind of run configurations?
from envfile.
@ashald Thank you for your reply! I would like to be able to load an .env file for a grails run configuration. (Now I have to fill in the env vars in IDEA itself or run it with dotenv).
from envfile.
i'd also love to see this for intellij-- in any of the build/run configurations (no idea why they haven't brought this to the IDE on their own yet)
from envfile.
Not sure that it'll be easy to add this to all build configurations but I'll see what I can do about it.
from envfile.
👍 WebStorm
from envfile.
As it usually happens, there are good news and bad news.
Among the good news is that I think I made some progress on my research how to bring EnvFile
functionality to more platforms (at least IDEA and RubyMine).
The bad news... It looks like IDEA platform is done in a way that there is no generic way to bring this functionality to all platforms, by design (or by a flaw in design). In long term I might try to talk to JetBrains to extend the plugin API and/or to include EnvFile
functionality into the IDEA platform core. But that might take a lot of time.
Meanwhile, I'll try to integrate with as much platforms/languages as I can. Speaking of WebStorm
- that's one of tricky cases. As far as I understand, WebStorm
is not some essentially special product but rather a basic IDEA distribution with number of bundled plugins, each of them developed in a different way (by potentially different people). This essentially mean that I cannot integrate with WebStorm
as a whole - I'll have to integrate with Node.js
plugin (and its run configurations), Karma
plugin and its run configurations and so on...
Given the details I described above, for those who looking forward to using EnvFile
plugin with currently unsupported IDEA-based products, I'd like to ask you to share a bit more info about your use-cases: not only the name of the platform but also list of run configuration types you use [and need EnvFile
for].
from envfile.
Related Issues (20)
- Paths relative to working directory
- Env vars are not loaded in RubyMine on mac
- ExecutionException when EnvFile is renamed in IntelliJ IDEA
- provide envfiles for terminal HOT 2
- When running tests in IntelliJ the `envfile` if not loaded HOT 2
- provide EnvFile for Kotlin run configurations HOT 1
- EnvFile fails to parse well-formed yaml files
- EnvFile 3.4.1 crash HOT 4
- Error response from daemon: invalid environment variable: =::=::\ HOT 2
- Issues when using with IntelliJ 2023.1 HOT 19
- Allow Kubernetes yaml style
- Read access is allowed from inside read-action (or EDT) only HOT 3
- Does not work with custom defined files.
- New Release 3.4.2
- Causes ModuleNotFoundError error in PyCharm HOT 1
- Missing EnvFile tab in 2023.2.2 HOT 5
- $PROJECT_DIR$ is not working HOT 1
- Crash when starting a springboot application with a YAML env file
- Security vulnerability in apache commons-text v1.9 HOT 2
- When executable is ticked, please add an option to run it from the working dir configured in the run config
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 envfile.