运行播放控制台(2.0.4)时,它会返回:
[info] Loading global plugins from /home/matt/.sbt/plugins
[info] Loading project definition from /home/matt/src/app/project
[error] java.lang.NoSuchMethodError: org.sbtidea.SbtIdeaPlugin$.ideaSettings()Lscala/collection/Seq;
在PlayCommands.scala:214
处抛出异常,它看起来像known bug。
然而,解决方法似乎并不是立即显而易见的(没有升级)。
答案 0 :(得分:1)
首先,您必须暂时禁用全局sbt-idea插件。你可以通过注释掉(//
)这一行来做到这一点:
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.3.0")
其中一个文件应该存在:
/home/matt/.sbt/plugins/build.sbt
或/home/matt/.sbt/plugins/plugins.sbt
其次,您必须删除(rm -rf
)这些目录:
/home/matt/.sbt/plugins/project
/home/matt/.sbt/plugins/target
答案 1 :(得分:0)
当发生这种情况时,我会做一个“干净利落”的活动。 “玩汇编”