How to stop play 2.0.4 throwing java.lang.NoSuchMethodError: org.sbtidea.SbtIdeaPlugin
When running the play console (2.0.4) it returns:
[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;
The exception is thrown at PlayCommands.scala:214 and it looks like a known bug.
The workaround however doesn't seem to be immediately apparent (short of upgrading).
First, you have to temporarily disable your global sbt-idea plugin. You can do this by commenting out (//) this line:
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.3.0")
Which should exist in one of these files:
/home/matt/.sbt/plugins/build.sbt or /home/matt/.sbt/plugins/plugins.sbt
Second, you have to remove (rm -rf) these directories: