我在执行 sbt compile 时遇到此异常
我的 build.sbt 包含以下条目。

scalaVersion := "2.10.3"
val akkaVersion = "2.3.4"

libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-actor" % akkaVersion,
  "com.typesafe.akka" %% "akka-testkit" % akkaVersion,
  "com.typesafe.akka" %% "akka-persistence-experimental" % akkaVersion)

知道是什么原因造成的吗?
java.lang.RuntimeException: Akka version is not supported by Typesafe Console: 2.3.4
    at scala.sys.package$.error(package.scala:27)
    at com.typesafe.sbt.atmos.AtmosRun$.supportedAkkaVersion(AtmosRun.scala:65)
    at com.typesafe.sbt.atmos.AtmosRun$$anonfun$selectAkkaVersion$1.apply(AtmosRun.scala:58)
    at com.typesafe.sbt.atmos.AtmosRun$$anonfun$selectAkkaVersion$1.apply(AtmosRun.scala:58)
    at scala.Option.map(Option.scala:145)
    at com.typesafe.sbt.atmos.AtmosRun$.selectAkkaVersion(AtmosRun.scala:58)
    at com.typesafe.sbt.SbtAtmos$$anonfun$atmosDefaultSettings$26.apply(SbtAtmos.scala:159)
    at com.typesafe.sbt.SbtAtmos$$anonfun$atmosDefaultSettings$26.apply(SbtAtmos.scala:159)
    at sbt.Scoped$RichInitialize$$anonfun$map$1$$anonfun$apply$3.apply(Structure.scala:130)
    at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
    at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
    at sbt.std.Transform$$anon$4.work(System.scala:64)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
    at sbt.Execute.work(Execute.scala:244)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
    at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
[error] (atmos:traceAkkaVersion) Akka version is not supported by Typesafe Console: 2.3.4
[error] Total time: 0 s, completed Aug 4, 2014 8:04:08 AM

最佳答案

您是否偶然使用了 Activator 来创建应用程序? Typesafe Activator 包含 Inspect 选项卡,它基本上是控制台的左侧(并使用 sbt-atmos,这是 AtmosRun 类所在的项目)。我在使用 Activator 运行 Akka 2.3.4 时遇到了类似的问题。不确定它是否已在当前版本中修复。在这种情况下,您可能需要停用激活器的检查功能。

关于scala - 为什么消息是 "Akka version is not supported by Typesafe Console: 2.3.4"?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25118378/

10-13 08:43