Problems creating Play 2 projects and modules in Intellij 12

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!

11 comments
Comment actions Permalink

I just created an issue: http://youtrack.jetbrains.com/issue/SCL-5111
Please vote/watch here.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Thanks for taking the initiative.

0
Comment actions Permalink

Has this been resolved? I have exactly the same problem. I've just upgraded from version 11 because 12 has better support for Play2.

0
Comment actions Permalink


If I use Play 2.0.4, the create new project for Play2 Scala works.



If I use Play 2.1.0, this is what I am getting if I try to create a new Play2 Scala project:

   Error adding module to project: Cannot create module

It did create the project eventually after trying it several times.

0
Comment actions Permalink

Let's monitor the youtrack issue..

0
Comment actions Permalink

Did anyone manage to solve this issue? Still happening in 12.0.4....

0
Comment actions Permalink

Please try IDEA 12.1 EAP with updated Play 2.0 plugin.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

However issue SCL-5111 is not fixed in this version yet. But it has a lot of fixes for project creation.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

I'll give it a try and let you know. Thanks a lot for your rapid response.

0
Comment actions Permalink

Hey!
I use Play 2.1 and 2.2 and I read here "http://www.jetbrains.com/idea/features/play_framework.html" that the idea supports this framework. I installed the Play 2.0 plugin but it just doesn't work. I can't debug my code, I can't even run my application from the idea. This is ok or I'm doing something wrong?

0
Comment actions Permalink

I'm experiencing the same exact issue as originally reported. I'm on IDEA 12.1.6 using JDK 1.7, and attempting to use Play 2.2.0, but have also tried opting for the download within Intellij of version 2.1.0 – I receive the error regardless of the version I use.

0

Please sign in to leave a comment.