Seeing this page on confluence http://confluence.jetbrains.net/display/IntelliJIDEA/Play+Framework+2.0,I thought that there is out-of-the-box support for creating Play 2 projects in IDEA 12.
However, I've been unable to do so. Here is what happened:
If I am creating a new module with an existing project opened, I don't see the input field for the Play 2 home directory.
Input:
Module name: play
Result:
"Invalid Play 2.0 dir, cannot find /framework/skeletons/scala-skel"
If I am creating a new project with a Play 2 module, I can specify Play 2 home directory, but whilst the project is being created, there is an error when creating the Play module like:
Input:
Project name: practice
Module name: play
Play 2 path: /home/user/applications/play-2.0.4
Otherwise settings default.
Result:
"Error adding module to the project: /home/user/ideaProjects/practice/play/.idea_modules/play.iml (No such file or directory)
I was expecting the play.iml to be looked for in the directory /home/user/ideaProjects/practice/play since this is where it is actually located.
Project then loads without anything in it.
Both seem to be typical scenarios to me and yet they don't work.
I have found a workaround when creating a new project though:
If you use the same name for both the project and the module, the project is created as expected!