Error creating Play 2 module

I've been trying to create add a Play 2 module to my project now for about an hour, and I can't seem to get it work. I can't even get a new (empty) Play 2 project started.

I'm on OS X 10.8.3, using IDEA 12.1.2 (#IU-129.354) and Scala 2.10.1. I've tried Play 2.1.0 and 2.1.1, and I keep getting the following exception. I'm having a hard time nailing down the exact steps because it seems like sometimes it works and sometimes it doesn't. Am I missing something?

com.intellij.openapi.util.InvalidDataException: Cannot create Play 2 module:  Use 'last' for the full log.
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.errorWhileCreatingModule(Play2ModuleBuilder.scala:70)
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.runPlay2ModuleCreator(Play2ModuleBuilder.scala:316)
     at com.intellij.scala.play.projectTemplate.Play2ModuleBuilder.createModule(Play2ModuleBuilder.scala:136)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.createAndCommitIfNeeded(ModuleBuilder.java:246)
     at com.intellij.ide.util.projectWizard.ModuleBuilder$3.compute(ModuleBuilder.java:301)
     at com.intellij.ide.util.projectWizard.ModuleBuilder$3.compute(ModuleBuilder.java:298)
     at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1035)
     at com.intellij.ide.util.projectWizard.ModuleBuilder.commitModule(ModuleBuilder.java:298)
     at com.intellij.openapi.roots.ui.configuration.actions.NewModuleAction.createModuleFromWizard(NewModuleAction.java:87)
     at com.intellij.openapi.roots.ui.configuration.actions.NewModuleAction.actionPerformed(NewModuleAction.java:66)
     at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:151)
     at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:259)
     at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:892)
     at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:114)
     at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:230)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
     at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:104)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
     at com.apple.laf.ScreenMenuItemCheckbox.itemStateChanged(ScreenMenuItemCheckbox.java:178)
     at java.awt.CheckboxMenuItem.processItemEvent(CheckboxMenuItem.java:372)
     at java.awt.CheckboxMenuItem.processEvent(CheckboxMenuItem.java:340)
     at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:343)
     at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:331)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:713)
     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:700)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
     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)


3 comments

This is still happening in IntelliJ 12.1.6. Tobin, did you ever resolve it?

Thanks

0

We are integrating SBT with Play2 plugin right now, so in IntelliJ IDEA 13 everything will work in normal cycle (with auto-import mode).
As for IntelliJ IDEA 12 I can suggest only to use "play idea" or even better "sbt gen-idea" (we also have alpha version of SBT plugin for IDEA 12, but it's not working with SBT 0.13).

Best regards,
Alexander Podkhalyuzin,

0

No, I gave up, ended up not even using Scala.

0

Please sign in to leave a comment.