Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play Idea failing - no sbt-idea plugin for this version of sbt 0.11.3

I'm stuck.

I've on a Mac and have installed the typesafe stack with brew

I've created a new play project using play new appname and all is fine.

I'm trying to import it into intelliJ using play idea - but when I do this I get the following error;

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

I have play! 2.0.3 and sbt 0.11.3

Any idea how I actually fix this?

like image 351
Roger Avatar asked Aug 15 '12 12:08

Roger


People also ask

How can I download SBT plugin in IntelliJ?

On the start screen, click “Configure”. Now, click “Plugins”. Type “scala” in the search field. Select “SBT” and “Scala” plugins in the search results and install them.

How do I run an SBT Assembly in IntelliJ?

IntelliJ now allows you to create a run configuration for an SBT task. You create the Run Configuration by : choosing "Edit configurations" from the "Run" menu (or the toolbar popup) click the "+" button to add a configuration and select "SBT Task" as the type of configuration you want to make.


1 Answers

First, ensure you've followed: the official installation instructions

This will currently result in the following exception:

java.lang.NoSuchMethodError: org.sbtidea.SbtIdeaPlugin$.ideaSettings()Lscala/collection/Seq; at
sbt.PlayCommands$class.intellijCommandSettings(PlayCommands.scala:214)

Current fix is to downgrade to play 2.0.1 by editing the project.plugins.sbt file thusly:

// 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")

This seems to resolve the problem for now.

like image 167
PlexQ Avatar answered Oct 03 '22 23:10

PlexQ