activator new play-scala-intro play-scala-intro
File
-> Import project from Existing sources
and selected SBT
.This is default project structure:
I've also tried all tips from here (suggested for for Play 2.2 — 2.3, whereas I have Play 2.4). But I haven't tried to add target/scala-*/classes_managed
to sources because my project doesn't contain this folder.
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.1")
scalaVersion := "2.11.6"
JetBrains hasn't yet updated their Scala/Play plugin to reflect the new routing structure with Play 2.4 (using classes instead of objects for the controllers, for example). You can ignore those errors, run the app and it'll be all fine.
See the ongoing issue ticket over on https://youtrack.jetbrains.com/issue/SCL-8812 for more. One comment says: "This got fixed in the recent EAP Build of IntelliJ and Scala 1.6.27.1.EAP also IntelliJ EAP 15 looks really good in his current state."
You can wait for IntelliJ 15. In the meanwhile, ignore the errors which are wrongly flagged by IntelliJ 14 and older versions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With