ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
539 stars 129 forks source link

Add support for Play 2 App #106

Open mirelon opened 4 years ago

mirelon commented 4 years ago

Play 2 App is a run configuration provided by the Scala plugin

ashald commented 4 years ago

I will look into this someday. Until then - contributions are welcome.

antoine-morisseau commented 3 years ago

I would like to contribute and take time to add Play 2 App support. But do you know where the code is located for something similar ? Is it a good start to go from GradleEnvFileProvider in order to create a PlayAppEnvFileProvider ?

antoine-morisseau commented 3 years ago

Ok. i saw it use the GradleRunConfiguration to attach to it. I created a run configuration of a Play 2 App configuration and then stored it as xml project file. type="Play2FrameworkRunConfigurations" factoryName="Play 2 App" I searched everywhere a Play2FrameworkRunConfigurations on the web and couldn't find anything.

Even in the scala plugin it's not referenced. (https://github.com/JetBrains/intellij-scala)

If anyone can help me to find the missing link from Play2FrameworkRunConfigurations and the ConfigurationFactory that it must extends

I found a AbstractTestRunConfigurationFactory but i'm not sure if it's helpfull for us.

Maybe it's made by typesafe in another library but i didn't see any clear dependency in the build.sbt file. I saw a Resolver.typesafeIvyRepo("releases") used but i don't find the link to a lib from it.

zalito12 commented 2 years ago

I have created a PR with sbt support, it's not updated to last IntelliJ version but it's something #167 I usually compile and run my play application with sbt tasks so it does the trick.