当我执行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
答案 0 :(得分:2)
Typesafe控制台(您似乎正在使用)已停止使用。正如异常所述:Akka version is not supported by Typesafe Console: 2.3.4
。
Typesafe控制台已停产。请使用最新的Activator
https://typesafe.com/platform/getstarted或其他一个Akka监控解决方案:
答案 1 :(得分:2)
你偶然使用Activator来创建应用程序吗? Typesafe Activator包含Inspect选项卡,它基本上是控制台的剩余部分(并使用sbt-atmos,它是AtmosRun类所在的项目)。使用Activator运行Akka 2.3.4时遇到了类似的问题。不确定它是否已在当前版本中修复。在这种情况下,您可能需要停用激活器的检查功能。
答案 2 :(得分:0)
我有这个问题。似乎早期版本的控制台或激活器(或其他东西)在我的项目中安装了“atmos shim”。删除这两个文件解决了这个问题:
activator-sbt-atmos-akka-shim.sbt
project/activator-sbt-atmos-akka-shim.sbt