Play 2 isn't installed
Good evening
I'm new to IntelliJ IDEA and testing IntelliJ IDEA 13 Ultimate which I want to use for developing with the Play! Framework 2. After installing IntelliJ IDEA 13 Ultimate I installed the Play2 plugin. Play2 itself is already installed on my machine (OS X 10.9). When I try to start a Play project using IntelliJ IDEA I get the following error message:
Play 2 isn't installed
But if I start the project using the command line, it works, so Play itself is successfully installed. I could not find any hints about this on the JetBrains website or using google. In IntelliJ IDEA I was searching for Play2 onfiguration options (maybe I need to configure the installation directory of Play) but I didn't find anything.
Has anybody an idea what I can do?
Thank you
McPringle
Please sign in to leave a comment.
Hello,
Can you specify a few details please,
Do you have Play installed via homebrew? Do you try to run a project created with Idea or a project imported from SBT? Do you have problems with .scala.html, i.e. are they treated as plain html or as scala templates?
Best regards,
Dmitry Naydanov
Hello Dmitry
I have installed Play on my own (download from the Play website, extracted to a new folder, added the folder to the path). On command line it works like a charm but IntelliJ IDEA doesn't regocnize the Play installation. I deleted it and used homebrew to install Play again. On command line Play works, but IntelliJ IDEA doesn't regocnize this installation, too.
I have the exact same problem independently of how I created the application. I tried to create it on command line (play new / play idea) which works. I can start the Play application and use it. When I try to open the project in IntelliJ IDEA it looks good. It is regocnized as a Play project (the Play2 plugin is installed) and the Scala HTML files are correctly interpreted as Scala files. But I can't start the Play application: "Play 2 isn't installed" The same error occours if I create a new Play2 project inside IntelliJ IDEA.
Really frustrating!
Any IDEAs?
Thank you for your help
McPringle
I found an exception in the idea.log file which might be helpful:
2013-12-19 13:31:28,273 [74174879] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2013-12-19 13:31:29,035 [74175641] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /Applications/IntelliJ IDEA 13.app/lib/jps-launcher.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/Applications/IntelliJ IDEA 13.app/lib/optimizedFileManager.jar:/Applications/IntelliJ IDEA 13.app/lib/ecj-4.2.1.jar
2013-12-19 13:31:30,197 [74176803] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 1926 ms: 0 min 1sec
2013-12-19 13:31:30,210 [74176816] INFO - tion.impl.ExecutionManagerImpl - Play 2 isn't installed
com.intellij.execution.ExecutionException: Play 2 isn't installed
at com.intellij.scala.play.runConfigurations.Play2RunConfiguration$Play2RunProfileState$$anonfun$1$$anonfun$apply$1.apply(Play2RunConfiguration.scala:177)
at com.intellij.scala.play.runConfigurations.Play2RunConfiguration$Play2RunProfileState$$anonfun$1$$anonfun$apply$1.apply(Play2RunConfiguration.scala:175)
at scala.Option.getOrElse(Option.scala:120)
at com.intellij.scala.play.runConfigurations.Play2RunConfiguration$Play2RunProfileState$$anonfun$1.apply(Play2RunConfiguration.scala:175)
at com.intellij.scala.play.runConfigurations.Play2RunConfiguration$Play2RunProfileState$$anonfun$1.apply(Play2RunConfiguration.scala:175)
at scala.Option.getOrElse(Option.scala:120)
at com.intellij.scala.play.runConfigurations.Play2RunConfiguration$Play2RunProfileState.createJavaParameters(Play2RunConfiguration.scala:175)
at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:35)
at com.intellij.execution.configurations.JavaCommandLineState.createCommandLine(JavaCommandLineState.java:52)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:42)
at com.intellij.execution.configurations.JavaCommandLineState.startProcess(JavaCommandLineState.java:26)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:76)
at com.intellij.scala.play.runConfigurations.console.Play2AppRunner.doExecute(Play2AppRunner.scala:22)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:84)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:204)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:95)
at com.intellij.execution.impl.ExecutionManagerImpl$1$1.run(ExecutionManagerImpl.java:168)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:696)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
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)
I can reproduce this problem by creating a new Scala Play project on Windows. Play 2 libraries are not present anywhere in the dependencies of the generated project.
This issue was also reported to support from Linux users, so it doesn't seem to be system specific.
Does someone know any workaround except running play from console?
Hi,
I have the same problem. I am using play 2.0 for java.
When i try run in intelij idea, i am gettting "Error running play2: Play 2 isn't installed" error.
I tried set PLAY_HOME and use non-default play 2 install dir but nothing has changed.
OS : windows 7
Play version : play 2.2.1
Java version : JDK_1.7.0_45
Hi,
My problem fixed then play 2.0 plugin update.
Thanks for update.
Good evening
I tested it again with an updated IntelliJ IDEA and updated Play 2 Support and still have the same error:
Play 2 isn't installed
OS X 10.9.1
Java 1.6.0_65-b14-462-11M4609 x86_64
IntelliJ IDEA Ultimate 13.0.1 & Play 2.0 Support 0.26.343
Play 2.2.1
It feels like Play 2 Support of IntelliJ IDEA was never tested. The version number of the Play 2 Support indicates this plugin is in a very early stage. I tried to get IntelliJ IDEA 13 running since it was released, with no luck. Very frustrating – even more because it is commercial software…
:(
McPringle
You are a lucky guy! Which versions do you have and which system are you running?
Thanks
McPringle
I've jus tget a new update for play 2 plugin and it works fine. Thanks a lot!
Hi,
Did you tried create project with idea after then update ?
I tried it five times:
No, I didn't changed anything between my tries. I only used different project names (PlayTest1, PlayTest2, …).
I only have a few days left of the evaluation period but I recommend my company not to buy IntelliJ IDEA. My experience the last days were too negative. Our business is developing web applications based on the Play! Framework 2 and we must be able to trust our IDE.
Thank you very much for your help!
McPringle
Hello,
did you update play plugin to 0.26.344 (and Idea to 13.0.1) ?
Best regards,
Dmitry Naydanov
Hello Dmitry
I installed every available update. IntelliJ IDEA shows me version 13.0.1 (Build 133.331) and the Play plugin shows me version 0.26.343. In the morning it told me that there are two updates: One for IDEA itself and one for the Play plugin. I accepted to install both and restarted the IDE. I don't see anything about a version 0.26.344.
Thanks for your help
McPringle
Seems like IDEA doesn't show last update, could you install it from here http://plugins.jetbrains.com/plugin/7080 ?
Best regards,
Dmitry Naydanov
Hello Dmitry
I downloaded the Play plugin version 0.26.344 from the link you provided. My first test was successful, I could create a new Play2 project and start the server directly from IDEA. Looks surprising. I'll continue testing…
Thank you for you help and your fast responses!
McPringle
And again I still have problems! I created a new Java based Play 2 project from inside IntelliJ IDEA. Without doing anything directly after creating the project I have a bunch of errors:
And, VERY funny, IntelliJ IDEA not only creates a ".idea" directory, it creates a ".settings" directory, too (using "Play 2 Module for Java", "Play 2 Module for Scala" don't create this directory)! And whats inside this directory? A single file named "org.eclipse.core.resources.prefs" with the following contents:
eclipse.preferences.version=1
encoding/<project>=UTF-8
What the hell is IntelliJ IDEA doing there? I don't have Eclipse installed on this machine. Is there any code copied from the Eclipse sources inside IntelliJ IDEA? It seems so…
McPringle