2

I worked some time with SBT and a text editor. Then, moved to Intellij, installed Scala plugin, and created a new project as in the picture here by choosing it to be based on SBT. Also, in the settings, I chose the SBT launcher to be custom, and made it point to the already-installed sbt.

I believe Intellij is probably calling SBT commands like sbt run and stuff in the background. My question: How can I see (a log of) these commands as they're called by Intellij to sbt and their responses? And as a plus: where can I edit them? I opened the "Edit Configurations" but couldn't find anything like sbt compile.

I believe Intellij shows the responses (e.g., [info] downloading...) below in the "Background Tasks", but

1. It doesn't log these responses and

2. It doesn't show the commands issued by Intellij to sbt.

Big picture/what I'd really want to do: have the IntelliSense features from Intellij and Scala plugin, but build and run from the terminal and not have any effects from Intellij on that.

Hossam El-Deen
  • 972
  • 1
  • 13
  • 27

3 Answers3

0

I don't understand the question well do u want to see the SBT output? if you are using run/debug you will see both the command & the output in the run window (alt+4) also intelliJ has a window called event log

I hope that help

ameen
  • 686
  • 5
  • 12
  • More like wanting to see the SBT output. Specifically: - Probably, Intellij called `sbt compile` and other calls. I want to see these calls. - See SBT's output. Alt+4 is nice, didn't notice the command above. However, this doesn't have any calls to sbt. Does this mean Intellij doesn't even use it? And Event log doesn't have it. – Hossam El-Deen Aug 08 '16 at 13:16
0

Intellij reads the projects configuration from sbt and creates an equivalent configurations for its project format (either .idea folder or .ipr)

this is a similar question to yours but about maven, you may find helpful: https://stackoverflow.com/a/30167052/2675679

Community
  • 1
  • 1
Mohamed Kamaly
  • 127
  • 3
  • 10
0

The IntelliJ Scala plugin doesn't (yet) call sbt except for project import/refresh or if you have a run configuration that uses sbt. Compilation is done by the built-in compile server. If you prefer to use IntelliJ as an editor and run tasks from the sbt console, that usually works fine.

Justin Kaeser
  • 5,868
  • 27
  • 46