【问题标题】:Play Idea failing - no sbt-idea plugin for this version of sbt 0.11.3Play Idea 失败 - 此版本的 sbt 0.11.3 没有 sbt-idea 插件
【发布时间】:2012-08-11 18:03:40
【问题描述】:

我被困住了。

我在 Mac 上使用 brew 安装了类型安全堆栈

我使用 play new appname 创建了一个新的游戏项目,一切都很好。

我正在尝试使用 play idea 将其导入 intelliJ - 但是当我这样做时,出现以下错误;

[error] no sbt-idea plugin for this version of sbt - 0.11.3

我有戏! 2.0.3 和 sbt 0.11.3

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

【问题讨论】:

  • 您是否尝试过在 build.properties 文件中将 SBT 覆盖为 0.11.2?

标签: scala playframework intellij-idea sbt sbt-idea


【解决方案1】:

首先,确保您已关注: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")

这似乎暂时解决了问题。

【讨论】:

猜你喜欢
  • 2013-03-22
  • 2012-03-17
  • 2012-11-21
  • 2013-07-26
  • 2017-07-01
  • 2018-05-13
  • 2017-02-19
  • 2014-11-14
  • 1970-01-01
相关资源
最近更新 更多