'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



Solution 1:[1]

You can select

Window ? Restore Default layout

Or press Shift + F12

enter image description here

This will restore your default window layout and the tab will be visible again (You can check this works by hiding the sbt tab by right clicking and selecting 'Remove From Sidebar').

Some windows such as Maven or Ant need to be brought back by

View ? ToolWindows ? [Window Name]

enter image description here

Solution 2:[2]

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

Solution 3:[3]

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).

Solution 4:[4]

In my case, scala plugin needed to be updated and accordingly this caused sbt to disappear from build tools.
Go to Settings --> Plugins --> Updates and make sure that scala plugin is updated. If it wasn't and you updated it, you should restart the IDE afterwards.
After that removing the .idea folder and reimporting the project was necessary for the project to build.

Solution 5:[5]

In my case I enabled the sbt shell going to "File - Settings - Build, Execution, Deployment - Build Tools - sbt " and after enabling here, you need to restart your intellij and then you can find sbt-shell here "view- Tool window - sbt shell"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Salvatore Pannozzo Capodiferro
Solution 3 tekumara
Solution 4
Solution 5 jhalak