Scala and Play 2.0 Plugins Update 0.38.437 is Out

Good news, everyone! The fresh versions of Scala and Play 2.0 plugins have arrived, and we’re going to briefly tell you what new goodies this update brings.

HOCON format

First of all, Roman Janusz has made a great contribution to Scala community by adding the HOCON format support to IntelliJ IDEA, and the Scala plugin now provides support for it out of the box.

Better import management

We have finally fixed the problem with incorrect imports (e.g. scala.Some), so you can use Optimize Imports to eliminate all bad imports in your code.

In addition, the Optimize Imports has been improved in several other ways:

  • Optimizing imports on the fly
  • Lexicographical sorting of import statements
  • Possibility to disable the grouping of imports from the same package in a single statement
  • Grouping imports
  • All imports are fully qualified by default

Faster and more user-friendly Scala worksheets

They’re just plain better. Read more details in the previous post.

Extract Trait refactoring

This is a new refactoring that helps you define new traits from existing classes.

Extract Method refactoring improved

This good old refactoring has been improved and can now search for duplicates and extract a case class when multiple output is detected. Plus, it now has fewer bugs and work a bit faster.

More inspections for collections

And last but not least, we have new code inspections for you! This time, they help you improve code working with collections:

  • contains(_ == x) ==> exists
  • getOrElse(null) ==> orNull
  • product, min, max ==> foldLeft, reduce
  • Option.map.getOrElse ==> fold
  • Map.get.getOrElse ==> getOrElse
  • !isEmpty ==> nonEmpty

That’s pretty much it. For the full list of changes, see the Release Notes.

As always, you’re welcome to share your feedback in our discussion forum as well as submit bug directly to the tracker.

Develop with Pleasure!

This entry was posted in New Features, Release report and tagged . Bookmark the permalink.

5 Responses to Scala and Play 2.0 Plugins Update 0.38.437 is Out

  1. Roberto Burgos says:

    Awesome, great job!! A few things I’ve noticed:

    1) After installing the update I can’t see a “Run …” menu entry when I right click on an Object extending App;
    2) When switching to the Scala compiler 2.11.* and running a worksheet, I get an error starting with line “Internal error: package scala does not have a member Int”.

    • Roberto Burgos says:

      PS, I’m seeing this in build #IC-135.909 community edition. I haven’t tried this in unlimited edition.

    • Alexander Podkhalyuzin says:

      1. It’s known, but not reproducible problem. It happens from time to time usually on Mac OS.
      2. Please create a ticket in our issue tracker.

  2. Marc says:

    Excellent job guys! We can now, finally, use Optimize Imports to support our convention, which requires no wildcard imports and one import per line.

    Thank you!

  3. Titus says:

    Really great work team! These small conveniences and bug fixes will have a big impact on my team’s daily coding lives.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">