0
當我嘗試到新創建的遊戲框架項目導入到我的IntelliJ IDEA 15我得到了以下異常:無法導入新生成的遊戲框架項目爲IntelliJ IDEA的15
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
[info] Loading settings from plugins.sbt,scaffold.sbt ...
[info] Loading project definition from /Users/lukasz/dev/repository/local-examples/scala-examples/scala-hands-on/scala-api-example/project
[info] Loading settings from build.sbt ...
[info] Set current project to scala-api-example (in build file:/Users/lukasz/dev/repository/local-examples/scala-examples/scala-hands-on/scala-api-example/)
[info] sbt server started at 127.0.0.1:5218
[scala-api-example] $ [info] Defining *:shellPrompt
[info] The new value will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to scala-api-example (in build file:/Users/lukasz/dev/repository/local-examples/scala-examples/scala-hands-on/scala-api-example/)
[info] Defining */*:sbtStructureOutputFile
[info] The new value will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to scala-api-example (in build file:/Users/lukasz/dev/repository/local-examples/scala-examples/scala-hands-on/scala-api-example/)
[info] Defining */*:sbtStructureOptions
[info] The new value will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to scala-api-example (in build file:/Users/lukasz/dev/repository/local-examples/scala-examples/scala-hands-on/scala-api-example/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks from /Users/lukasz/Library/Application Support/IntelliJIdea15/Scala/launcher/sbt-structure-1.0.jar
[error] java.lang.ClassNotFoundException: org.jetbrains.sbt.CreateTasks$
[error] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[error] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[error] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[error] at java.lang.Class.forName0(Native Method)
[error] at java.lang.Class.forName(Class.java:348)
[error] at sbt.internal.inc.ModuleUtilities$.getObject(ModuleUtilities.scala:20)
[error] at sbt.BasicCommands$.$anonfun$call$5(BasicCommands.scala:187)
[error] at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
[error] at scala.collection.immutable.List.foreach(List.scala:389)
[error] at scala.collection.TraversableLike.map(TraversableLike.scala:234)
[error] at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
[error] at scala.collection.immutable.List.map(List.scala:295)
[error] at sbt.BasicCommands$.$anonfun$call$2(BasicCommands.scala:187)
[error] at sbt.Command$.$anonfun$applyEffect$4(Command.scala:125)
[error] at sbt.Command$.$anonfun$applyEffect$2(Command.scala:121)
[error] at sbt.MainLoop$.processCommand(MainLoop.scala:121)
[error] at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:105)
[error] at sbt.State$$anon$1.runCmd$1(State.scala:227)
[error] at sbt.State$$anon$1.process(State.scala:233)
[error] at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:105)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.MainLoop$.next(MainLoop.scala:105)
[error] at sbt.MainLoop$.run(MainLoop.scala:98)
[error] at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:76)
[error] at sbt.io.Using.apply(Using.scala:22)
[error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:70)
[error] at sbt.MainLoop$.runAndClearLast(MainLoop.scala:52)
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:37)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:29)
[error] at sbt.StandardMain$.runManaged(Main.scala:104)
[error] at sbt.xMain.run(Main.scala:71)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error] at xsbt.boot.Boot$.main(Boot.scala:17)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.ClassNotFoundException: org.jetbrains.sbt.CreateTasks$
[error] Use 'last' for the full log.
[error] Not a valid key: dump-structure (similar: buildStructure)
[error] */*:dump-structure
[error] ^
[INFO] [10/21/2017 15:49:58.974] [Thread-5] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
更多細節:
- OS:MACOS塞拉利昂10.12.6
- IntelliJ IDEA的:15(2016.12023建立在2016年4月28日)
- SBT:1.0.2(與BREW安裝)
- 遊戲版本:2.6.6
- 的Java:
sbt new playframework/play-scala-seed.g8
:使用命令創建1.8.0_131
sbt run
我試過通過解決這一問題:
- 提供-Dsbt.version = 1.0.2到的IntelliJ vmoptions和使用捆綁SBT-發射
- 提供路徑定製SBT-啓動器(在/ usr /本地/地窖/ SBT/1.0.2/libexec/bin/sbt-launch.jar)
但它沒有工作。
我想嘗試一個更近的IntelliJ IDEA的版本,你是幾歲。 – CrazyCoder
除了@ CrazyCoder的建議,你可以嘗試[sbt](http://www.scala-sbt.org/download.html)0.13.16。 –
@DmytroMitin謝謝,將project/build.properties中的sbt.version從1.0.2更改爲0.13.16。 – luwojtaszek