Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use sbt shell for build and import

There is this option in IntelliJ. What does it do? When should we enable it and when not?

[ ] Use sbt shell for build and import (requires sbt 0.13.5+)

enter image description here

like image 752
Yuchen Avatar asked Mar 10 '18 20:03

Yuchen


1 Answers

From the youtrack issue:

Currently in sbt projects, project settings are imported, but compiling is done via the compiler providede by the Scala plugin. In some sbt configurations that don't map well to the IDEA project model, this will result in errors, forcing users to use the shell in addition to the IDE.

For a better integration, we want the Scala plugin to be controlling an sbt shell or server (new functionality in sbt 1.0)

like image 196
Artem Malchenko Avatar answered Sep 19 '22 03:09

Artem Malchenko