Can't find SBT-shell in IntelliJ IDEA

11,739

Solution 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

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

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

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

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"

Share:
11,739
y2k-shubham
Author by

y2k-shubham

"A Big-Shot is a Little-Shot who keeps on Shooting, So keep Trying" - Dr. APJ Abdul Kalam, [Wings of Fire] My Bio Science Lover Introvert Technology Enthusiast Know me Web: y2k-shubham About.Me: y2k-shubham Connect with me GitHub: y2k-shubham Disqus: y2k_shubham . LinkedIn: y2k-shubham Twitter: y2k_shubham . Instagram: y2k.shubham Facebook: y2k.shubham

Updated on July 23, 2022

Comments

  • y2k-shubham
    y2k-shubham almost 2 years

    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