Play 2 routes.java compile errors

In any Play 2 application, I see errors displayed for the generated routes.java file & propagated wherever I use reverse routes in the application.

I have found that I can fix the ones in the controllers package, either by making target/scala-2.10/src-managed/main source & not target/scala-2.10/src-managed/main/controllers & target/scala-2.10/src-managed/main/views.

http://www.jensjaeger.com/2013/09/play-framework-2-2-in-intellij-errors-in-controllers-everywhere

I can make that automatic by using the sbt-idea 1.6.0-SNAPSHOT plugin & gen-idea, rather that the play idealise.

https://github.com/mpeltonen/sbt-idea/pull/257
http://stackoverflow.com/questions/20417085/create-idea-project-using-gen-idea

However, I still have compile errors (Cannot resolve symbol) for reverse routes in controllers.javascript & controllers.ref .

Those symbols are defined in routes_reverseRouting.scala, just the same as the ones that are now fixed, it is just that they are in the controllers.javascript & controllers.ref packages rather that controllers .

This is a problem for me, using the latest IDEA EAP, IU-133.471 & the play 2.0 support 0.26.357 .

Does anyone know how to fix this, please?



Attachment(s):
Screen Shot 2014-01-08 at 11.37.52.png
Screen Shot 2014-01-08 at 11.36.49.png
Screen Shot 2014-01-08 at 11.36.17.png

Please sign in to leave a comment.