playframework 2.8.8 - 类 sbt.internal.inc.MappedVirtualFile 无法转换为类 java.io.File

问题描述 投票:0回答:1

执行时出现此错误

sbt run

这是我可能相关的版本号。

  • Play 框架 - 2.8.8
  • Scala - 2.13.6
  • sbt - 1.5.5
  • java - 11.0.13
  • addSbtPlugin(“com.typesafe.sbt”%“sbt-play-ebean”%“6.2.0-RC3”)

我读了下面的内容,但不确定我是否错过了什么。

  1. https://github.com/playframework/playframework/pull/10648
  2. https://github.com/playframework/playframework/pull/10649
  3. https://gitter.im/sbt/sbt?at=5f6b4a01b8a99f4519a0d3ab

知道如何解决这个问题吗?

[error]     at scala.collection.TraversableOnce$folder$1$.apply(TraversableOnce.scala:187)
[error]     at scala.collection.TraversableOnce$folder$1$.apply(TraversableOnce.scala:185)
[error]     at scala.collection.immutable.HashMap$HashMapKeys.$anonfun$foreach$1(HashMap.scala:149)
[error]     at scala.collection.immutable.HashMap$HashMap1.foreachEntry(HashMap.scala:395)
[error]     at scala.collection.immutable.HashMap$HashTrieMap.foreachEntry(HashMap.scala:728)
[error]     at scala.collection.immutable.HashMap$HashMapKeys.foreach(HashMap.scala:149)
[error]     at scala.collection.TraversableOnce.foldLeft(TraversableOnce.scala:189)
[error]     at scala.collection.TraversableOnce.foldLeft$(TraversableOnce.scala:184)
[error]     at scala.collection.AbstractTraversable.foldLeft(Traversable.scala:108)
[error]     at play.ebean.sbt.PlayEbean$.$anonfun$ebeanEnhance$1(PlayEbean.scala:113)
[error]     at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]     at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]     at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error]     at sbt.Execute.work(Execute.scala:291)
[error]     at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error]     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error]     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error]     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error]     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[error]     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[error]     at java.base/java.lang.Thread.run(Thread.java:831)
[error] (data / Compile / manipulateBytecode) java.lang.ClassCastException: class sbt.internal.inc.MappedVirtualFile cannot be cast to class java.io.File (sbt.internal.inc.MappedVirtualFile is in unnamed module of loader sbt.internal.MetaBuildLoader @130f889; java.io.File is in module java.base of loader 'bootstrap')
java scala sbt playback
1个回答
0
投票

scala版本 := "2.12.15"

© www.soinside.com 2019 - 2024. All rights reserved.