Scala and Play 2.0 Plugin for IntelliJ IDEA 14 EAP is Out
We’re excited to tell you that we’ve just started the Scala plugin EAP for IntelliJ IDEA 14, so if you’re running an IntelliJ IDEA 14 EAP build, you can install the new Scala plugin via Settings → Plugins.
Here’s what the new Scala plugin brings you.
Play 2.0 Support is Now Part of the Scala Plugin
The key change we’d like to highlight is that the Scala and Play 2.0 plugins have merged together, so with IntelliJ IDEA 14 you don’t need to install them separately because Play 2.0 support is now a part of the Scala plugin. You still need to run IntelliJ IDEA Ultimate to enable Play 2.0 support though.
Change Signature Refactoring
The Change Signature refactoring is now also available for Scala code. It’s still a work in progress, but you can give it a try:
Improved SBT Support
- Documentation popup for SBT keys on Ctrl + Mouse hover
- Code completion for artifacts
- The dep live template
- The inspection that checks unresolved dependencies
- The android-sbt-plugin support
- The inspection that simplifies Project() call into project.in() when possible
- Navigation to subproject via Ctrl + Mouse click (Cmd + Mouse click for OS X)
Faster Performance
In the new Scala plugin we’ve added a caching mechanism that significantly improves performance when you’re working with files that contain large numbers of implicits.
For the complete list of changes, refer to the Release Notes.
As always, you’re welcome to share your feedback in our discussion forum or issue tracker.
Develop with Pleasure!
Omid says:
September 18, 2014thanks for good work, Please do something about high def monitors on Windows and Linux. Apparently on Mac it works but not working on Linux and Windows.
Tim Kellogg says:
September 26, 2014How’s the bug fixing going? The v13 version of the Scala plugin was pretty buggy – a lot of false positives (for errors), a lot of uncaught errors, a lot of incorrect type inference. Seems like that should be the highest priority.
Alexander Podkhalyuzin says:
September 29, 2014Hi, Tim,
That’s how it was in all IntelliJ IDEA versions. And such problems is our everyday task, so it’s improving constantly.
Uncaught errors have lower priority as we need to fix most of false positives.
You can find the biggest reason of all problems (false positives) in your code, find similar issue and create new one and you will know when this issue will be fixed, and we also will know more about importance of this issue.
Best regards,
Alexander Podkhalyuzin.
IntelliJ IDEA 14 パブリックプレビュー | JetBrains ブログ says:
September 26, 2014[…] ScalaプラグインはChange Signatureリファクタリングの追加、SBTサポートの強化、パフォーマンスの改善など様々な強化が施されています。より詳しく » […]
Stephen Boesch says:
September 27, 2014I agree with Tim Kellogg.
But specifically, Please! Fix the apache Spark compilation issues! I posted in beginning of July already: Spark version 1.0 and later do NOT COMPILE in Intellij due to Intellij compiler bugs.
Simple to reproduce the issues: git clone https://github.com/apache/spark.git. Open the pom.xml as a maven project. Then try to build it. Fails on a DataType class due to internal compiler errors.
PLEASE make fixing these Intellij compiler bugs that prevent building successfully (and therefore can not run unit tests or do any debugging). Do you need money? I have been a paying customer since Version 6 and will gladly continue. Save us from Eclipse!
Nikolay Tropin says:
September 29, 2014Hi, Stephen,
I tried to clone, import with Maven and compile spark branch-1.0 and it works without errors with latest versions of the plugin. Newest branches of spark have some Avro and probably need additional setup to work.
Where did you post about this problem before? I cannot find it. We are trying to fix compiler errors as fast as we can, but we need to know about them somehow. Best place to report bugs is our bug tracker:
https://youtrack.jetbrains.com/issues/SCL
Robson Peixoto says:
October 1, 2014How to execute Play Framework integration tests using Intellij?
I’m using IDEA 14 Preview Ultimate.
Thanks
Daniel Lang says:
October 5, 2014I second Tim Kellogg. In everyday development, the bugs and false-positives are most annoying. I like the new features too, but fixing all these nasty smaller bugs would have a tremendously positive effect on the development experience.
Alexander Podkhalyuzin says:
October 6, 2014We are working on all things, including fixes for error highlighting and new features as well. Understanding the balance is always hard task, but error highlighting bugs will always have top priority. We just have a lot of them (less than year ago, but still a lot), so it’s probably hard to see that.
Best regards,
Alexander Podkhalyuzin.
David Pérez says:
October 6, 2014Congratulations for your hard work.
The Scala plugin is improving constantly.
I’d like to know more about android-sbt-plugin support.
Is the android-sdk-plugin supported?
https://github.com/pfn/android-sdk-plugin
Alexander Podkhalyuzin says:
October 6, 2014Yes. This is the only SBT plugin, which is being supported by its authors.
Best regards,
Alexander Podkhalyuzin.
IntelliJ IDEA 14 is Released! | JetBrains IntelliJ IDEA Blog says:
November 5, 2014[…] has moved to the Scala plugin, so you don’t need to install the plugins separately anymore. The updated Scala plugin comes with the Change Signature refactoring, support for anonymous functions in the Evaluate […]
Jean says:
November 7, 2014I am using IntelliJ IDEA v14 community edition. After installing the Scala plugin that is supposed to support Play, I do not have the Play 2.x choice when creating a new Scala application is that normal? I have reinstalled the plugin and consistantly get the same result. Thanks for your help.
Jose Pablo Alberto Andreotti says:
November 18, 2014Have the same problem here! no support for Play 2 apparently!
Kha says:
November 20, 2014You have to use the ultimate version to get Scala support.
Pietro says:
December 8, 2014This seems to be true.
I had similar issues after using the EAP. After the 14 was officially out I was forced to upgrade and just took the free community version, after all the scala/play plugin was available. It just does not work.
Maybe add a line in the plugin description that the play 2 support also requires Ultimate edition.
Sheldon Kreger says:
December 9, 2014I also have this problem. I cannot import or create new Play projects in IDEA 14 Community Edition.
SK says:
February 18, 2015From the command prompt run the following and you should have your project visible on the IntelliJ. However this will not allow you to create new project. User “activator” to create new play project.
activator new // create new project , give it a name
cd
sbt gen-idea
Now open intelliJ and say open and select the project
Ilan says:
November 10, 2014I have the same exact issue here. IntelliJ IDEA v14 community edition + Scala plugin v1.0 doesn’t show the Play 2.x option and doesn’t import projects correctly. I hope someone can fix it soon. Thanks.
Laksitha says:
December 15, 2014Isn’t Play Framework support only available in Ultimate Edition ?
https://www.jetbrains.com/idea/features/editions_comparison_matrix.html
Ulrik says:
December 20, 2014Intellij 14 + Play 2.3.7 fails to run.
Any ideas:
[info] play – Listening for HTTP on /0:0:0:0:0:0:0:0:9000
Server started, use Alt+D to stop
[success] Compiled in 443ms
[info] play – Application started (Dev)
[error] application –
! Internal server error, for (GET) [/] ->
java.lang.UnsupportedClassVersionError: controllers/Application : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_51]
at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[na:1.7.0_51]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.7.0_51]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[na:1.7.0_51]
at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[na:1.7.0_51]
[error] application – Error while rendering default error page
scala.MatchError: java.lang.UnsupportedClassVersionError: controllers/Application : Unsupported major.minor version 52.0 (of class java.lang.UnsupportedClassVersionError)
at play.api.GlobalSettings$class.onError(GlobalSettings.scala:148) ~[play_2.11-2.3.7.jar:2.3.7]
at play.api.DefaultGlobal$.onError(GlobalSettings.scala:206) [play_2.11-2.3.7.jar:2.3.7]
at play.core.server.Server$class.logExceptionAndGetResult$1(Server.scala:63) [play_2.11-2.3.7.jar:2.3.7]
at play.core.server.Server$$anonfun$getHandlerFor$4.apply(Server.scala:73) [play_2.11-2.3.7.jar:2.3.7]
at play.core.server.Server$$anonfun$getHandlerFor$4.apply(Server.scala:71) [play_2.11-2.3.7.jar:2.3.7]
System Info:
———————————————————————————
OS:
——-
OSX Maverick
JAVA jdk version:
———————
java version “1.8.0”
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
kalempir says:
January 5, 2015I encountered the same problem. Removing JAVA_HOME line in .bashrc file solved the problem. it was pointered java 7, although default java version was java 8.
balu says:
November 17, 2016thank you, that worked. I had to point to 1.8 instead of removing the line.
Jeramy says:
January 13, 2015How did you even get Play to compile? I’m using 14 Ultimate and I keep getting:
Error:Play 2 Compiler:
required: Content
found: Html
Note: /Users/jeramy/IdeaProjects/BlogEngine/test/ApplicationTest.java uses or overrides a deprecated API.
and
Error:Play 2 Compiler:
Note: Recompile with -Xlint:deprecation for details.
1 error
(test:compile) javac returned nonzero exit code
It won’t even compile if I go into the command line and type play compile. However, if I download play from playframework.com and compile it without using Intellij it works just fine.
Gautam says:
April 5, 2015Hi I am having same problem.. if you get the solution please share..
Gautam says:
April 5, 2015I got the solution: i just changed the one line of code: —
html = views.html.index.render(“Your new application is ready.”);
to ===>
Content html = (Content) views.html.index.render(“Your new application is ready.”);
AND IT WORKED
Yadu Krishnan says:
February 20, 2015Hi,
I was working on Eclipse till recently and switched to IntelliJ a few months back on trial basis. I was extremely happy with the IDE and was about to buy the license. But we switched to Scala and then realized that most of us are facing a lot of issues with intellij scala IDE. I have tried v13 and v14, both Ultimate-trial as well as Community edition. The IDE suddenly hangs and unable to do anything. I am using a i7 machine with 8 GB ram. Still getting the issues very frequently. The CPU usage goes to 100% and have no other option other than killing the process. I have also tried increasing the memory in vmopts file, but could not find it very helpful. Is there anything else I need to do to improve the performance ?
jakub says:
March 24, 2015Hello,
I am using Intellij 14 pesonal license with play 2.3.7. All works fine in intellij v13 but when I try the same project (of course there is an upgrade of intellij internal files) play is simply dead. When I try project form SBT Console it is complaining
[error] (compile:compile) java.io.IOException: Cannot run program “javac”: CreateProcess error=2, The system cannot find the file specified
And If I try “Run Play 2 App” nothing happens after Make phase. So no error message simply nothing. …