Scala Play 2.3 InteliJ community version 14 * - is it possible to start a project without the cmd group activation command

From http://blog.jetbrains.com/scala/2012/12/28/a-new-way-to-compile/ I understand that Intellij uses sbt to build - so thats 1x build

I am currently running a separate command line task to launch my project -

./activator -jvm-debug 5000 -Dhttp.port=9000 

Therefore, each code change is compiled twice (once InteliJ, once activator)

Is there a way to use InteliJ build artifacts at startup, so the code only compiles once?

Does the terminal window in InteliJ use any difference from a regular terminal window?

Versions I'm in:

Java 7 Playback Plugin 2.3.4 SBT 0.13.1 InteliJ 14 (Community Version)

Thanks Brent

+5
source share
1 answer

Yes it is possible.

Install the Play 2.x plugin (with dependencies) and add a launch configuration designed for Play 2 ( note in Intellij 14 Play2 support integrated in Scala plugin )

Menu > Run > Change Configurations ... > Add New Configuration (plus icon in the corner)> Play 2 App

After saving, you can start the application (also in debug mode) inside IntelliJ - that is, through

Menu > Run > Debug 'Your Project'

btw, you can remove Make (before starting) from there, SBT should correctly handle builds without Idea support

See sample picture

enter image description here

+2
source

Source: https://habr.com/ru/post/1210461/


All Articles