Error while importing sbt project: idea
Two days have passed and this nightmare is still going on. I am new to Play.
I can create my game project, compile it and run it using the command.
But when I try to import or open it using Intellij Idea, I get the following error.
I can't seem to make an activator idea from the command line as mentioned here . When I do this, I get this.
I was able to do the import job yesterday, which stopped due to some changes in the build.properties and plugins.sbt files . The files now look like this when I create a new one.
plugin.sbt
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")
// Web plugins
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.6")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
// Play enhancer - this automatically generates getters/setters for public fields
// and rewrites accessors of these fields to use the getters/setters. Remove this
// plugin if you prefer not to have this feature, or disable on a per project
// basis using disablePlugins(PlayEnhancer) in your build.sbt
//addSbtPlugin("com.typesafe.sbt" % "sbt-play-enhancer" % "1.1.0")
// Play Ebean support, to enable, uncomment this line, and enable in your build.sbt using
// enablePlugins(SbtEbean). Note, uncommenting this line will automatically bring in
// Play enhancer, regardless of whether the line above is commented out or not.
// addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0")
build.properties
#Activator-generated Properties
#Thu Jul 09 08:03:01 NPT 2015
template.uuid=4908845b-9453-410b-af0f-404c1440dff1
sbt.version=0.13.8
Then the project somehow crashed. Now I cannot import the project.
I feel like the problem is on the IDE side.
source to share
The actual answer will be given in the .log idea as mentioned above in Alexander's comment - the IntelliJ error dialog leaves a lot to be desired.
From the manual
Play no longer includes sbteclipse or sbt-idea plugins, which allows users to update IDE support independently of Play.
IntelliJ can now import sbt projects natively, so we recommend using them instead. Alternatively, the sbt-idea plugin can be manually installed and used, instructions can be found here .
You can follow the link from the migration guide and add the idea plugin back to sbt.
Usually, however, you should be able to do exactly what you are doing.
- Install the Scala plugin if you haven't already - this supports not only Scala, but also Play and sbt
- File> Open> select
build.sbt
- The project will be imported into IntelliJ
source to share