Git Product home page Git Product logo

Comments (16)

ashald avatar ashald commented on May 24, 2024 3

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:

  1. Yes, I'm working on it and it's coming
  2. I'll try to roll out multiple files support together with multiple platforms support

Bad news are:

  1. There are no truly generic way to add support for such functionality across all platforms
  2. But there is semi-generic way to do that (if I'm not missing anything)
  3. Although it probably will make the UI for the plugin a little bit less convenient
  4. And it will take time to implement this new approach
  5. 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.

refack avatar refack commented on May 24, 2024 1

http://stackoverflow.com/questions/27093002/specifying-webstorm-environment-from-file

from envfile.

ashald avatar ashald commented on May 24, 2024 1

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.

ashald avatar ashald commented on May 24, 2024

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.

MrJoy avatar MrJoy commented on May 24, 2024

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.

ashald avatar ashald commented on May 24, 2024

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.

MrJoy avatar MrJoy commented on May 24, 2024

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.

ansel1 avatar ansel1 commented on May 24, 2024

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.

ashald avatar ashald commented on May 24, 2024

Ansel, that's a nice idea. I will look into it. Thanks.

from envfile.

EvertEt avatar EvertEt commented on May 24, 2024

Any chance this is coming to IDEA?

from envfile.

ashald avatar ashald commented on May 24, 2024

@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.

EvertEt avatar EvertEt commented on May 24, 2024

@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.

olslash avatar olslash commented on May 24, 2024

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.

ashald avatar ashald commented on May 24, 2024

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.

refack avatar refack commented on May 24, 2024

👍 WebStorm

from envfile.

ashald avatar ashald commented on May 24, 2024

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)

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.