Play 2 isn't installed Follow
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?
Please sign in to leave a comment.
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?
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.
Thank you for your help
I found an exception in the idea.log file which might be helpful:
2013-12-19 13:31:28,273  INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2013-12-19 13:31:29,035  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  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  INFO - tion.impl.ExecutionManagerImpl - Play 2 isn't installed
com.intellij.execution.ExecutionException: Play 2 isn't installed
at java.security.AccessController.doPrivileged(Native Method)
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?
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
My problem fixed then play 2.0 plugin update.
Thanks for update.
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
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…
You are a lucky guy! Which versions do you have and which system are you running?
I've jus tget a new update for play 2 plugin and it works fine. Thanks a lot!
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!
did you update play plugin to 0.26.344 (and Idea to 13.0.1) ?
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
Seems like IDEA doesn't show last update, could you install it from here http://plugins.jetbrains.com/plugin/7080 ?
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!
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:
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…