IDEA 12 with Play 2.0

I can't seem to find much documentation how to utilize Play 2.0 (Scala) support in IDEA 12...
I created the default Play module from scratch and, when trying to build it, I get "cannot find symbol variable index".
I guess it needs sbt (as opposed to javac) to process routes and such. How do I configure that? Why it doesn't get configured for me automatically when I run the Play 2 wizard?
I have Scala, SBT and Play 2 plugins enabled.

Comment actions Permalink

I just tried using an existing Play 2.0.3 project and it ran fine. Same settings as you. Did you set the Play Home and working directory?

Comment actions Permalink

Play support currently requires compiled classes for your application. So after new project creation, just run it using context menu on your Application object. Then when you return back to IDEA from your browser, you will see correct highlighting. In future we will implement generating stub classes without requirements of compiled classes, so such problem will disappear.

Best regards,
Alexander Podkhalyuzin.


Please sign in to leave a comment.