Inline Refactoring for Type Aliases and Kind Projector Support

Scala Plugin 1.7 for IntelliJ IDEA 15 EAP brings you a number of new features and improvements, among which we’d like to highlight these two:

Inline refactoring for type aliases

Invoked just as any other inline refactoring, by placing the caret on an alias you want to inline and pressing Ctrl+Alt+N.
ScalaGif
For now this refactoring is only available for non-parameterized types and for aliases that are used inside of the same class.

Kind project support

Kind Projector is a Scala compiler plugin that provides an easy way to create type lambdas. Scala 1.7 plugin includes inspection that suggests to rewrite existing lambdas using the Kind Projector function syntax.
kindprojector
You can use the settings under Settings | Editor | Code Style to select whether you want to denote lambdas with the Lambda keyword, or the λ symbol.
Feel free to share your feedback in our discussion forums and issue tracker.

Develop with Pleasure!

Posted in EAP, New Features | Tagged , | 1 Comment

Try Experimental SAM in Scala Plugin 1.7 for IntelliJ IDEA 15 EAP

If you being in the forefront of it all, and all includes the latest language and IDE features, you’re welcome to download IntelliJ IDEA 15 EAP, a very early preview of what the next big Java IDE is going to be like. Among other things, it brings you an update to the Scala plugin 1.7 we released yesterday.

One of the 1.7 highlights is the support for experimental single abstract method types (SAM) added in Scala 2.11:

scala_sam

This is the first version of the plugin available exclusively for IntelliJ IDEA 15 EAP. More new features are coming soon, so stay tuned. If you have feedback to share, please do so in our discussion forum and issue tracker.

Develop with Pleasure!

Posted in New Features | Tagged | 3 Comments

Scala 1.5 EAP: Coding Assistance for Interpolated Strings, New Inspections and Better SBT Support

If you’re using the EAP update channel, you might’ve noticed a new version of the  Scala plugin available. In addition to a bunch of bugfixes inside the new update you’ll also find a few nice new features.

Coding assistance for interpolated strings

Interpolated strings is a great feature of the Scala language. Better coding assistance for writing those interpolated strings is a new feature of IntelliJ IDEA. Now it’s possible to quickly turn a string to an interpolated string simply by adding a variable reference. Notice  that the IDE will take care of adding brackets:

scala_interpolated_string_completion

We hope this additional coding assistance will save you some time.

New inspections for Scala Collections

Inspections help you spot potential problems in your code and find the code that smells. This is why we never stop adding new inspections: this time we’ve added several more that will ensure you treat Scala Collections properly:

scala_collections_inspections

SBT project auto-import

The SBT project auto-import (when enabled) has been triggered by any change in your SBT files, even if you just pressed a single keystroke. In our latest update we’ve changed it so the auto-import is now triggered only when your changes are physically saved (usually on frame deactivation).

We hope you’ll find all these changes useful. Please share your feedback on our discussion forum and submit found issues directly to the tracker.

To give this EAP update a try, just go to Settings (Preferences for OS X) → Languages & Frameworks → Scala → Updates → Plugin update channel, switch the EAP channel, and update the plugin.

 Develop with Pleasure!

Posted in EAP, New Features | Tagged , | 6 Comments

What to Check Out in Scala Plugin 1.4.x for IntelliJ IDEA 14 & 14.1

If you’ve already upgraded to IntelliJ IDEA 14.1 (released just a few days ago), you might’ve noticed (in addition to all of its awesome new features), a new Scala plugin update: v1.4.15.

The update brings you quite a few improvements for the Play framework support: fixed problems with running of the applications, and better yet, JavaScript injection to Play templates. 1.4.15 is the first of the planned series of Scala plugin updates that will be available exclusively for IntelliJ IDEA 14.1, because at this moment IntelliJ IDEA 14 only receives bug fixes, whereas the new feature development is entirely focused on 14.1. This also means more new features and improvements are on the way for it, so getting the 14.1 is a good idea (if you haven’t done this already.)

Now that I’ve already got your attention, I’d also like to review what’s exactly new in this Scala plugin version (in case you haven’t followed the EAP news.)

Continue reading

Posted in Uncategorized | Tagged , , , , | 35 Comments

Scala 1.4 EAP Brings Advanced Implicits Analyzer and Faster Play Compiler

We’re working on our next update for the Scala plugin, and today I want to share with you a fresh EAP build that brings two noticeable improvements: advanced analysis for implicit parameters and faster compilation for Play Framework.

Advanced Implicit Parameters Analyser

Now, when you call the Implicit Parameters action, in addition to the list of applicable implicit parameters you will see those that can’t be found:

Screen Shot 2015-03-02 at 20.20.51

Under the “Parameter not found” label you’ll find the list of possible implicits for this location. It distinguishes the following cases:

  • Fewer applicable implicits are found
  • Somewhere deep an implicit is not found or diverging
  • No applicable implicits found for this parameter

Compiler Server for Play Framework

Another improvement makes the compilation for Play applications blazingly fast, thanks to moving it to a separate process. Now every time we compile the project we don’t have to start SBT.

For the complete list of changes refer to Release Notes.

We hope you’ll find these changes useful. Don’t forget to write us back on our discussion forum or report any found bugs directly to the tracker.

In case you’d like to give a preview build a try, but don’t know how, switch to the EAP update channel via Settings (Preferences for OS X) → Languages & Frameworks → Scala → Updates → Plugin update channel.

 Develop with Pleasure!

Posted in EAP, New Features | Tagged , , | 7 Comments

Scala Plugin 1.3.3 RC is Available

With IntelliJ IDEA 14.1 EAP that has started earlier this week, we now have Scala plugin EAP available for both versions of this IDE.

As Scala plugin 1.3 proved to contain some performance problems, today we are releasing Scala plugin 1.3.3 RC, a preview build with the corresponding fixes. One more important change in this build is the option to rollback to the old implicit search algorithm via Settings/Preferences → Languages & Frameworks → Scala → Use old implicit conversion search algorithm. Use this option only if you encounter red code or performance problems. In this case please do report these issues to our tracker. This will help us safely migrate to the proper new  algorithm.

Develop with Pleasure!

Posted in EAP | Tagged , | 9 Comments

Scala Plugin 1.3 is Available for IntelliJ IDEA 14.0.3

We’ve just released Scala Plugin 1.3! If you haven’t been following the recent EAP, here’s what this new update has to offer:

  • Debugger improvements
    • Variables from the outer scopes are visible in the Variables tab now: there is no need to evaluate expressions or step through frames anymore.
    • Step into action now works in a more natural way for lambda expressions, methods implemented in traits, default arguments, specialization methods, etc.
  • Support for Monocle
  • Unused imports inspections are now aware about the implicit parameters in the implicit conversions for extension methods
  • Possibility to have custom compiler settings for different modules
  • Fixed requirement of Invalidate Caches to get rid of weird error highlighting in project
  • Fixed Specs2 3.M1 support
  • Automake with enabled compiler server is working now
  • SBT shared source roots support for ScalaJS projects (see SCL-7859)

Find the complete list of changes in the Release Notes.

Note that to use Scala Plugin 1.3, you need the most recent version of IntelliJ IDEA (IntelliJ IDEA 14.0.3).

Don’t forget to share your feedback with us in the discussion forum and the issue tracker.

Develop with Pleasure!

Posted in Release report | Tagged , , , | 10 Comments

Scala Plugin 1.3 RC is Available

You’ll be glad to know that we’ve just released a fresh RC build for the upcoming Scala plugin update. This build fixes the recently introduced performance regression and brings several other bugfixes and enhancements.

Be sure to give the new build a try and share your feedback with us in our discussion forum and issue tracker.

Posted in EAP | 2 Comments

Scala Plugin 1.3 EAP 1.2.67 is Available

You’ll be glad to know that a fresh EAP build for Scala Plugin 1.3 is already available, and it brings a lot of improvements:

  • Monocle support
  • Unused imports inspections are now aware about the implicit parameters in the implicit conversions for extension methods
  • Fixed requirement of Invalidate Caches to get rid of weird error highlighting in project.
  • Fixed Specs2 3.M1 support
  • Automake with enabled compiler server is working now
  • Possibility to have custom compiler settings for different modules
  • SBT shared source roots support for ScalaJS projects (see SCL-7859)

We hope these improvements will make your life easier. Be sure to give the new build a try and share your feedback with us in our discussion forum and issue tracker.

For the complete list of changes, refer to Release Notes.

Posted in EAP, New Features | 5 Comments

Scala Plugin 1.3 EAP Brings Better Debugger

You’ll be pleased to know that our new Scala Plugin 1.3 EAP build brings several small but quite important improvements to the debugger:

  • The variables from outer scopes are visible in the Variables tab now: there is no need to evaluate expressions or step through frames anymore.
  • Stepping into now works in a more natural way for lambda expressions, methods implemented in traits, default arguments, specialization methods, etc.

We hope these improvements will make your life easier. Be sure to give the new build a try and share your feedback with us in our discussion forum and issue tracker.

For the complete list of changes, refer to Release Notes.

Develop with Pleasure!

Posted in EAP, New Features | Tagged , | 3 Comments