Occasionally, and seemingly for no reason, I get "not found: value routes" compilation error in one of the view templates (after compilation). This happens either in Eclipse or IDEA.
Googling finds this but it's not possible to add mainLang = SCALA in play 2.10 (I'm using version 2.1.2).
Cleaning the project / re-eclipsifying it / seems to work, sometimes, but is there any more permenant solution / work-around?
Thanks
@controllers.routes.Assets.at(...), or addTwirlKeys.templateImports += "controllers._"in setting of your project in build.sbt or Build.scala file. - andrey.feoktistov