Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: what difference between "SBT Console" and "SBT Shell"?

In the IntelliJ I see two tool windows: SBT Console and SBT Shell. What is the difference between these tools?

like image 226
den123 Avatar asked Sep 04 '17 07:09

den123


People also ask

What is sbt shell in IntelliJ?

The sbt tool window is enabled automatically when you create or open your sbt project. Click sbt on the right sidebar to open the tool window. The tool window displays the sbt linked projects, their tasks, dependencies, and all changes made to the underlying build. sbt file.

What is sbt console?

SBT is an interactive build tool that is used to run tests and package your projects as JAR files. SBT lets you create a project in a text editor and package it, so it can be run in a cloud cluster computing environment (like Databricks).

What is the difference between sbt and Scala?

SBT is tied to a specific project defined by a build. sbt file in a way that $ sbt console will load up the same REPL environment as $ scala but with the addition of all of the project code and dependencies defined in the build available for import. Also, it will use the version of Scala defined by build.


1 Answers

You may have installed both scala and sbt plugins. The newer version of scala plugin has sbt as part of it.

sbt console is the sbt plugin -- click start you will enter into sbt interactive mode.

sbt shell is part of the scala plugin, which is similar to the above mentioned sbt console and can autocomplete commands.

Here is a description: https://blog.jetbrains.com/scala/2017/03/23/scala-plugin-for-intellij-idea-2017-1-cleaner-ui-sbt-shell-repl-worksheet-akka-support-and-more/

like image 193
jiayp89 Avatar answered Oct 06 '22 01:10

jiayp89