IntelliJ IDEA Scala plugin 2017.1.19: simplified Project View, ScalaTest selection by regexp, improved Akka support

After IntelliJ IDEA 2017.1 was released, we have added many new features to the Scala plugin.

Project View is simplified

We have reworked and simplified navigation to Scala nodes:

  • IDEA 2017-like icon style
  • Type + Companion object nodes
  • Flat package object
  • Files are leaf nodes

To explore the internal structure of a file, enable the “Show Members” parameter in Project View options:

SPhd_1

Besides, we provide a View / Tool Window / Structure panel to see the structure of files opened in the editor:

SP2hd

Error highlighting in Project View

We have added error highlighting to Project View. The feature is disabled by default, but you can turn it on by going to Preferences / Languages & Frameworks / Scala / Project View / Highlight nodes with errors:

SP4hd_full

ScalaTest selection by RegExp

We have introduced a new kind of test suite selection: regular expression. It is now easier and more flexible to designate an exact set of tests in a particular Run Configuration. Here’s how we can filter tests with names that match “.*Phone” and with class names that match “.*UserDataTest”:

SP4hd

New features in Akka support

We’ve added a couple of new features to Akka support in the Ultimate version of the Scala plugin. Now we can highlight dynamic invocations that can be replaced with a constructor call:

SP5hd_full

Besides, the refactoring can suggest a system name as a candidate:

SP6hd_full

Your feedback on these improvements is very welcomed. Expect more features and improvements in the upcoming 2017.2 release of the IntelliJ Scala plugin.

P.S: Don’t forget to report bugs you find directly into our issue tracker.

Develop with Pleasure!

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

4 Responses to IntelliJ IDEA Scala plugin 2017.1.19: simplified Project View, ScalaTest selection by regexp, improved Akka support

  1. Mike Slinn says:

    Where is the “Show Members” parameter in Project View options?

  2. Steve Swing says:

    The versioning confuses me. The blog post says: “…the upcoming 2017.2 release of the IntelliJ Scala plugin.” I’m using the IDEA 2017.2 EAP and already have the 2017.2.2 Scala plugin. Does 2017.2.2 already have the changes? A 3-minute github pull request comparison of 2017.1.19 vs 2017.2.2 was not immediately obvious. Thanks!

  3. Stefan Endrullis says:

    Sorry to say that, but the new Project View is IMO a big regression. I have a lot of Scala files that contain a normal class and one or two case classes (one-liners) used by this class. When I look at the project view now, I see several of those gray paper icons with a tiny scala symbol. They look completely different to all other class icons. It looks like something is wrong with this class, such as IDEA could not parse the file or was unable to detect the type. Why did you chose such a strange icon for this? Why didn’t you use the normal class icon with a small plus symbol indicating that this class is not alone?

    I have to admit that I was so annoyed by those icons that I started to extract the small case classes into separate files. After a short time I stopped and reverted everything again, since I recognized that I started to flood my project with dozens of tiny files making it harder and harder to get an overview of what is really important. Those case classes belong to their main classes and should be located their, too.

    Enabling “Show members” is also not an option since then I’ll get flooded with thousands of methods and fields I don’t want to see in the Project View. Moreover it doesn’t fix the “ugly gray paper icon” bug.

    So it seems that the only solution is to inline every additional class into the main class, although I don’t like this so much or to wait for the “gray paper icon” fix. :\

Leave a Reply

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