Peter Becich
Peter Becich

Reputation: 1053

IntelliJ and SBT plugin: not running in current module

I'm using IntelliJ IDEA 15 and the IDEA SBT plugin: https://github.com/orfjackal/idea-sbt-plugin

The SBT project has several sub-projects (modules in IntelliJ) and these work fine in my usual SBT terminal workflow. The root sub-project has no Main class.

My SBT Task seems to only run in the root sub-project. I have the intended 'module' highlighted in both the 'Project' pane, and the 'SBT projects' pane of the SBT plugin.

"Run in current module" is checked.

edit configurations

enter image description here

Using the SBT Console pane and typing in project [intended sub-project] and run works. But I need to get the run and debug buttons working. Thanks!

enter image description here

Upvotes: 0

Views: 194

Answers (1)

Ajay Padala
Ajay Padala

Reputation: 2401

Type in

[sub-project]/run

in the tasks inputbox This will execute the run task for that subproject

Upvotes: 1

Related Questions