Problem with Play 2.1 Framework support and project creation

Hi Guys
I don't know if I'm using some incompatible versions or something but I cannot get the Play 2.1 to work with IntelliJ (Unlimited Edition 12.0.4).
Trying to create the Project from scratch I point to a downloaded version of Play 2.1 (that version of Play reports this from console: play! 2.1.0 (using Java 1.7.0_11 and Scala 2.10.0)) on Mac OSX 10.8.2.

The creation fails at the end reporting that it cannot create a module and I can see below in the log file, however it manages to open the project.

2013-03-04 22:42:17,136 [282124563]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $WORKSPACE_FILE$ file is null
2013-03-04 22:42:17,156 [282124583]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2013-03-04 22:42:17,197 [282124624]   INFO - ellij.project.impl.ProjectImpl - 166 project components initialized in 70 ms
2013-03-04 22:42:17,197 [282124624]   INFO - le.impl.ModuleManagerComponent - 0 modules loaded in 0 ms
2013-03-04 22:42:17,198 [282124625]   INFO - i.vcs.changes.ChangeListWorker - default list not found when copy
2013-03-04 22:42:17,198 [282124625]   INFO - i.vcs.changes.ChangeListWorker - default list not found when copy in original object too
2013-03-04 22:42:49,718 [282157145]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.openapi.progress.util.ProgressWindow$MyDialog$1@5471f1bb,notifier=null,catchExceptions=false,when=1362436969717] on apple.awt.CToolkit@6c44e76c
java.lang.IllegalArgumentException: index == 75
     at javax.swing.JLabel.setDisplayedMnemonicIndex(JLabel.java:546)
     at javax.swing.JLabel.setText(JLabel.java:313)
     at com.intellij.openapi.progress.util.ProgressWindow$MyDialog$1.run(ProgressWindow.java:374)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)
     at java.awt.EventQueue.access$400(EventQueue.java:82)
     at java.awt.EventQueue$2.run(EventQueue.java:669)
     at java.awt.EventQueue$2.run(EventQueue.java:667)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)
     at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
     at java.awt.Dialog$1.run(Dialog.java:1049)
     at java.awt.Dialog$3.run(Dialog.java:1101)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.awt.Dialog.show(Dialog.java:1099)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.a(DialogWrapperPeerImpl.java:727)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:723)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:425)
     at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1438)
     at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1414)
     at com.intellij.openapi.progress.util.ProgressWindow$MyDialog.show(ProgressWindow.java:606)
     at com.intellij.openapi.progress.util.ProgressWindow.showDialog(ProgressWindow.java:233)
     at com.intellij.openapi.progress.util.ProgressWindow$1$1.run(ProgressWindow.java:176)
     at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)
     at java.awt.EventQueue.access$400(EventQueue.java:82)
     at java.awt.EventQueue$2.run(EventQueue.java:669)
     at java.awt.EventQueue$2.run(EventQueue.java:667)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)
     at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
     at java.awt.Dialog$1.run(Dialog.java:1049)
     at java.awt.Dialog$3.run(Dialog.java:1101)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.awt.Dialog.show(Dialog.java:1099)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.a(DialogWrapperPeerImpl.java:727)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:723)
     at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:425)
     at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1438)
     at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1414)
     at com.intellij.openapi.progress.util.ProgressWindow$MyDialog.show(ProgressWindow.java:606)
     at com.intellij.openapi.progress.util.ProgressWindow.showDialog(ProgressWindow.java:233)
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder$$anon$1.show(Play2ModuleBuilder.scala:170)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.runPlay2ModuleCreator(Play2ModuleBuilder.scala:263)
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.createModule(Play2ModuleBuilder.scala:112)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.createAndCommitIfNeeded(ModuleBuilder.java:201)
     at com.intellij.ide.util.projectWizard.ModuleBuilder$2.compute(ModuleBuilder.java:256)
     at com.intellij.ide.util.projectWizard.ModuleBuilder$2.compute(ModuleBuilder.java:253)
     at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1008)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.commitModule(ModuleBuilder.java:253)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.commit(ModuleBuilder.java:239)
     at com.intellij.ide.impl.NewProjectUtil.a(NewProjectUtil.java:170)
     at com.intellij.ide.impl.NewProjectUtil.createFromWizard(NewProjectUtil.java:86)
     at com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.java:81)
     at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:26)
     at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:169)
     at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:132)
     at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
     at java.awt.Component.processEvent(Component.java:6147)
     at java.awt.Container.processEvent(Container.java:2083)
     at java.awt.Component.dispatchEventImpl(Component.java:4744)
     at java.awt.Container.dispatchEventImpl(Container.java:2141)
     at java.awt.Component.dispatchEvent(Component.java:4572)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
     at java.awt.Container.dispatchEventImpl(Container.java:2127)
     at java.awt.Window.dispatchEventImpl(Window.java:2489)
     at java.awt.Component.dispatchEvent(Component.java:4572)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
     at java.awt.EventQueue.access$400(EventQueue.java:82)
     at java.awt.EventQueue$2.run(EventQueue.java:669)
     at java.awt.EventQueue$2.run(EventQueue.java:667)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
     at java.awt.EventQueue$3.run(EventQueue.java:683)
     at java.awt.EventQueue$3.run(EventQueue.java:681)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
     at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:494)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2013-03-04 22:42:49,720 [282157147]  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 12.0.4  Build #IU-123.169
2013-03-04 22:42:49,720 [282157147]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_41
2013-03-04 22:42:49,720 [282157147]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) 64-Bit Server VM
2013-03-04 22:42:49,720 [282157147]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Apple Inc.
2013-03-04 22:42:49,720 [282157147]  ERROR - com.intellij.ide.IdeEventQueue - OS: Mac OS X
2013-03-04 22:42:49,720 [282157147]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: WelcomeScreen.CreateNewProject
2013-03-04 22:42:52,969 [282160396]   WARN - il.projectWizard.ModuleBuilder - Cannot create module
com.intellij.openapi.util.InvalidDataException: Cannot create module
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.errorWhileCreatingModule(Play2ModuleBuilder.scala:57)
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.createModule(Play2ModuleBuilder.scala:122)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.createAndCommitIfNeeded(ModuleBuilder.java:201)
     at com.intellij.ide.util.projectWizard.ModuleBuilder$2.compute(ModuleBuilder.java:256)
     at com.intellij.ide.util.projectWizard.ModuleBuilder$2.compute(ModuleBuilder.java:253)
     at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1008)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.commitModule(ModuleBuilder.java:253)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.commit(ModuleBuilder.java:239)
     at com.intellij.ide.impl.NewProjectUtil.a(NewProjectUtil.java:170)
     at com.intellij.ide.impl.NewProjectUtil.createFromWizard(NewProjectUtil.java:86)
     at com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.java:81)
     at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:26)
     at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:169)
     at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:132)
     at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
     at java.awt.Component.processEvent(Component.java:6147)
     at java.awt.Container.processEvent(Container.java:2083)
     at java.awt.Component.dispatchEventImpl(Component.java:4744)
     at java.awt.Container.dispatchEventImpl(Container.java:2141)
     at java.awt.Component.dispatchEvent(Component.java:4572)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
     at java.awt.Container.dispatchEventImpl(Container.java:2127)
     at java.awt.Window.dispatchEventImpl(Window.java:2489)
     at java.awt.Component.dispatchEvent(Component.java:4572)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
     at java.awt.EventQueue.access$400(EventQueue.java:82)
     at java.awt.EventQueue$2.run(EventQueue.java:669)
     at java.awt.EventQueue$2.run(EventQueue.java:667)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
     at java.awt.EventQueue$3.run(EventQueue.java:683)
     at java.awt.EventQueue$3.run(EventQueue.java:681)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
     at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:494)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2013-03-04 22:42:56,217 [282163644]   INFO - .roots.impl.DirectoryIndexImpl - Directory index initialized in 0 ms, indexed 0 directories
2013-03-04 22:42:56,217 [282163644]   INFO - pl.PushedFilePropertiesUpdater - File properties pushed in 0 ms
2013-03-04 22:42:56,241 [282163668]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 14 ms
2013-03-04 22:42:56,241 [282163668]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2013-03-04 22:42:56,241 [282163668]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2013-03-04 22:42:56,965 [282164392]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 39845 ms
2013-03-04 22:43:54,143 [282221570]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $MODULE_FILE$ file is null
2013-03-04 22:43:54,162 [282221589]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 1 ms
2013-03-04 22:43:54,162 [282221589]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2013-03-04 22:43:54,163 [282221590]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2013-03-04 22:43:54,168 [282221595]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $MODULE_FILE$ file is null
2013-03-04 22:43:54,175 [282221602]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 2 ms
2013-03-04 22:43:54,175 [282221602]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2013-03-04 22:43:54,175 [282221602]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2013-03-04 22:43:54,973 [282222400]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 720 ms
2013-03-04 22:43:54,973 [282222400]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 224 files to update



When I open the project and import the Module manually it doesn't detect Play framework.
Does this mean that IntelliJ doesn't work with the latest version of Play 2.1 ?


Cheers, greg

1 comment

There are a lot of fixes in project creation with IDEA 12.1 EAP Play 2.0 plugin version (you can find it here http://confluence.jetbrains.com/display/IDEADEV/IDEA+12.1+EAP).
However in case if you want to stay with IDEA 12.0.4, you can try to create IDEA play project from console using "play idea" command, then everything should work as expected.

For Play 2.0/Scala plugin related questions please use http://devnet.jetbrains.com/community/idea/scala community forum.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.