记录以防其他人遇到此事。
截至今天没有谷歌针对具体问题的结果。
https://www.google.ca/search?client=safari&rls=en&q=java.lang.RuntimeException:+Missing+Scala+tool+configuration+from+the+&#39;更新&#39 +报告++&#39;阶工具&#39; +是+常+添加+自动,+所以+这+可+表示+一+错误+在+ SBT +或+你+可+为+除去+它从+ ivyConfigurations +,+为+例子&安培;即= UTF-8和; OE = UTF-8&安培; gfe_rd = CR安培; EI = DkSQVavaMYiN8QeooIDgDQ < / p>
到目前为止clean
尚未解决此问题。
将退出并重试尽可能多的事情,但这个错误只是出现在没有的地方 - 我在另一个窗口运行规范测试并且它触发了更新(为什么?),这就是问题时( s)开始了。
接下来会尝试update
,看看这是不是更新了。
这是发生错误的堆栈跟踪。
java.lang.RuntimeException: Missing Scala tool configuration from the 'update' report. 'scala-tool' is normally added automatically, so this may indicate a bug in sbt or you may be removing it from ivyConfigurations, for example.
at scala.sys.package$.error(package.scala:27)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1$$anonfun$6.apply(Defaults.scala:376)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1$$anonfun$6.apply(Defaults.scala:376)
at scala.Option.getOrElse(Option.scala:120)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1.apply(Defaults.scala:375)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1.apply(Defaults.scala:374)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
[error] (*:scalaInstance) Missing Scala tool configuration from the 'update' report. 'scala-tool' is normally added automatically, so this may indicate a bug in sbt or you may be removing it from ivyConfigurations, for example.
java.lang.RuntimeException: Missing Scala tool configuration from the 'update' report. 'scala-tool' is normally added automatically, so this may indicate a bug in sbt or you may be removing it from ivyConfigurations, for example.
at scala.sys.package$.error(package.scala:27)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1$$anonfun$6.apply(Defaults.scala:376)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1$$anonfun$6.apply(Defaults.scala:376)
at scala.Option.getOrElse(Option.scala:120)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1.apply(Defaults.scala:375)
at sbt.Defaults$$anonfun$scalaInstanceFromUpdate$1.apply(Defaults.scala:374)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
第一次clean
后出现此错误
[info] Loading project definition from (xxx source directory...)
[info] Set current project to (xxx) (in build file:xxx)
java.lang.ClassNotFoundException: play.docs.BuildDocHandlerFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at play.runsupport.Reloader$.startDevMode(Reloader.scala:193)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scala:73)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.play$sbt$run$PlayRun$$anonfun$$anonfun$$anonfun$$devModeServer$1(PlayRun.scala:73)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:99)
at play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:52)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.lang.ClassNotFoundException: play.docs.BuildDocHandlerFactory
[error] Total time: 0 s, completed 28-Jun-2015 3:02:49 PM
1. Waiting for source changes... (press enter to interrupt)
update
错误后似乎消失了。我现在有其他的编译错误,所以不是100%肯定一切都很好。
如果堆栈跟踪有助于其他人......
答案 0 :(得分:1)
我在配置多项目构建时遇到了同样的问题。
只需添加"com.typesafe.play" %% "play-docs" % "2.4.x"
到libraryDependencies
或使用libraryDependencies ++= Seq(...)
代替libraryDependencies := Seq(...)
。
答案 1 :(得分:0)
update
似乎是神奇的药丸。
仍然不确定为什么它开始这个过程......
答案 2 :(得分:0)