目前我有一个简单的scala项目。
从命令行运行sbt compile
成功
在Intellij做Build > Rebuild Project
时,构建将成功。
然而,语法高亮有几个问题。
接收类型未被识别,context.become(<some Receive def>)
失败(这是由于接收未被识别),以及许多看似随机的其他问题。
当前build.sbt
:
scalaVersion := "2.12.1"
resolvers += "Typesafe Repository" at
"http://repo.typesafe.com/typesafe/releases/"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.1",
"com.typesafe.akka" %% "akka-http-core" % "10.0.5",
"com.typesafe.akka" %% "akka-http" % "10.0.5",
"com.typesafe.akka" %% "akka-http-spray-json" % "10.0.6",
"com.typesafe.akka" %% "akka-slf4j" % "2.5.1",
"com.typesafe.akka" %% "akka-stream" % "2.5.1",
"ch.qos.logback" % "logback-classic" % "1.1.7",
"com.typesafe.akka" %% "akka-testkit" % "2.5.1" % "test"
)
我尝试使缓存无效并重新启动,但无效。 我已经更新了Intellij。我尝试擦除我的.idea文件并重新导入项目。
有关如何解决此问题的任何想法?