I've been trying to import a Play2 project in IntelliJ IDEA 13. It seemed to have imported just fine until I tried navigating around the code and realized that the routes file points to the controller.Application
present in play jar bundled with sbt instead of my file.
I've tried all possible combinations that I could think of:
However this is not an issue when I create a new play project and the routes file happily points to the right controller.Application.
UPDATE:
My folder structure is like this:
I tried pulling controllers folder up one level & intellij stopped complaining but I get the error when I view it in browser.
It seems that I'm not configuring it right. I'd really appreciate any help on this. Thanks.
This issue was resolved by setting sources appropriately. Here's how I did it: