and I am trying to use it with intellij, I am getting this error whenever I try to type any sbt command (eg sbt compile, sbt assembly and even sbt help),
the first thing I did that I installed intellij, then installed plugin scala from it, and I created an sbt project.
I am having the structure of my project as follows:
and this is my build.sbt file:
ThisBuild / version := "0.1.0-SNAPSHOT"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.12" % Test
libraryDependencies += "org.apache.spark" %% "spark-core" % "3.3.0"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "3.3.0"
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
ThisBuild / scalaVersion := "2.13.9"
lazy val root = (project in file("."))
.settings(
name := "helloscala"
)
and this is my build.properties file:
sbt.version = 1.7.1
and here's my plugins.sbt file:
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0")
but every time I use the sbt shell in intelliji to apply any sbt command I get this error:
[error] Expected ID character
[error] Not a valid command: sbt (similar: set, boot, last)
[error] Expected 'sbtRebootNetwork'
[error] Expected project ID
[error] Expected configuration
[error] Expected ':'
[error] Expected key
[error] Not a valid key: sbt (similar: test, state, ivySbt)
[error] Expected 'sbtPromptChannel'
[error] Expected 'sbtRebootImpl'
[error] Expected 'sbtReportResult'
[error] Expected 'sbtMapExec'
[error] Expected 'sbtCompleteExec'
[error] sbt help
PS: I am in the root of the project in the sbt shell as it's mentioned:
info] set current project to helloscala (in build file:/C:/Users/menn4243/IdeaProjects/helloscala/)
any idea what I am doing wrong here? Thanks in advance
