Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find SBT-shell in IntelliJ IDEA

Facing some issue with the build, I deleted the project and .idea directories of my SBT project (containing submodules) followed by Invalidate Caches / Restart... (invalidated the cache too)

Ever since relaunch of IntelliJ, I can't locate the sbt shell enter image description here

Interestingly, I'm still getting the sbt shell when I open my other projects (in which I didn't delete the project and .idea directories) in IntelliJ enter image description here

I can confirm that I have the latest release of IntelliJ IDEA for MacOS with the Scala plugin installed enter image description here enter image description here

like image 318
y2k-shubham Avatar asked Jan 11 '18 04:01

y2k-shubham


2 Answers

what fixed my problem was:

  • install scala plugin
  • restart
  • file -> close project
  • instead of open, click new project, select scala with sbt option, then next
  • select the same project as location.

hope it will save you time and energy

like image 165
Salvatore Pannozzo Capodiferro Avatar answered Sep 20 '22 18:09

Salvatore Pannozzo Capodiferro


In Intellij 2018, under Preferences - Build, Execution, Deployment - Build Tools - sbt, check "Use sbt shell for build and import (requires sbt 0.13.5+)". Then restart Intellij. The sbt shell tool window tab will appear in the bottom pane (if not, select it from View - Tool Windows - sbt shell).

like image 39
tekumara Avatar answered Sep 20 '22 18:09

tekumara