Scala Plugin fails to import Play project from existing code

When trying to import a plain clean new Play2 project using version 2.5.2 I get this error:


$ less /Users/monzonj/Library/Logs/IntelliJIdea15/sbt.last.log


        at sbt.MainLoop$.runLogged(MainLoop.scala:22)

        at sbt.StandardMain$.runManaged(Main.scala:54)


        at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)

        at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)

        at xsbt.boot.Launch$.run(Launch.scala:109)

        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)

        at xsbt.boot.Launch$.launch(Launch.scala:117)

        at xsbt.boot.Launch$.apply(Launch.scala:18)

        at xsbt.boot.Boot$.runImpl(Boot.scala:41)

        at xsbt.boot.Boot$.main(Boot.scala:17)

        at xsbt.boot.Boot.main(Boot.scala)

[error] References to undefined settings:


[error]   */*:sbtStructureOutputFile from */*:dumpStructure ((org.jetbrains.sbt.CreateTasks) CreateTasks.scala:15)


[error]   */*:sbtStructureOptions from */*:ssOptions ((org.jetbrains.sbt.CreateTasks) CreateTasks.scala:13)


[error] Use 'last' for the full log.

[error] Not a valid key: dump-structure (similar: build-structure, buildStructure)

[error] */*:dump-structure


1 comment
Comment actions Permalink

The problem was that I had an object called "Global" in the Build.scala file. It seems this plugin has another object called Global and that will break everything.




Please sign in to leave a comment.