我被卡住了.
我在Mac上安装了brew的类型安全堆栈
我使用play new appname创建了一个新的play项目,一切都很好.
我正在尝试使用播放理念将其导入intelliJ – 但是当我这样做时,我得到以下错误;
[error] no sbt-idea plugin for this version of sbt - 0.11.3
我玩了! 2.0.3和sbt 0.11.3
知道我是如何解决这个问题的吗?
解决方法
首先,确保您遵循:
the official installation instructions
这将导致以下异常:
java.lang.NoSuchMethodError: org.sbtidea.SbtIdeaPlugin$.ideaSettings()Lscala/collection/Seq; at sbt.PlayCommands$class.intellijCommandSettings(PlayCommands.scala:214)
目前的修复是通过编辑project.plugins.sbt文件降级到播放2.0.1:
// Comment to get more information during initialization logLevel := Level.Warn // The Typesafe repository resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" // Use the Play sbt plugin for Play projects addSbtPlugin("play" % "sbt-plugin" % "2.0.1")
这似乎解决了现在的问题.