无法将新生成的播放框架项目导入IntelliJ IDEA 15 [英] Could not import the newly generated play framework project into IntelliJ IDEA 15

查看:103
本文介绍了无法将新生成的播放框架项目导入IntelliJ IDEA 15的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将新创建的播放框架项目导入IntelliJ IDEA 15时,出现以下异常:

When I try to import the newly created play framework project to my IntelliJ IDEA 15 I got following exception:

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

更多详细信息:

  • 操作系统: macOS Sierra 10.12.6
  • IntelliJ IDEA: 15(2016.12023,于2016年4月28日建立)
  • SBT: 1.0.2 (与brew一起安装)
  • 播放版本: 2.6.6
  • Java: 1.8.0_131
  • 使用以下命令创建的项目:sbt new playframework/play-scala-seed.g8
  • OS: macOS Sierra 10.12.6
  • IntelliJ IDEA: 15 (2016.12023 built on 28 Apr 2016)
  • SBT: 1.0.2 (installed with brew)
  • Play version: 2.6.6
  • Java: 1.8.0_131
  • Project created with command: sbt new playframework/play-scala-seed.g8

使用命令sbt run

我试图通过以下方式解决该问题:

I tried to solve that problem by:

  • 为IntelliJ vmoptions提供-Dsbt.version = 1.0.2并使用捆绑的sbt-launcher
  • 提供自定义sbt-launcher的路径(/usr/local/Cellar/sbt/1.0.2/libexec/bin/sbt-launch.jar)

但是没有用.

推荐答案

"Dmytro Mitin Oct 22 at 7:10"的建议对我有用.

Suggestion of "Dmytro Mitin Oct 22 at 7:10" worked for me.

在project/build.properties中更改sbt版本 sbt.version = 0.13.16

change the sbt version in project/build.properties sbt.version=0.13.16

这篇关于无法将新生成的播放框架项目导入IntelliJ IDEA 15的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆