IntelliJ IDEA 2016.3 RC: Scala.Js, Scala.Meta and More
Though we’ve been silent for quite a while recently, it doesn’t mean we’ve not been busy, so today we’re presenting the new features for Scala plugin RC for IntelliJ IDEA 2016.3 that we’ve just created.
First of all, in this update we’ve added a better support for js.Dynamic:
Now it provides code completion and quick navigation to fields and methods defined in the project.
The coding assistance works regardless to where fields and methods are defined–in libraries or in project files:
Note, that the Scala.js support is a part of Ultimate.
Another major plugin improvement is the support for scala.meta–the new metaprogramming toolkit designed to succeed scala.reflect. IntelliJ IDEA supports new-style macro annotations and provides coding assistance for scala.meta quasiquotes.
The new plugin version brings you gutter icons for scala.meta macro annotations. Clicking these icons expands the corresponding annotations. IntelliJ IDEA automatically detects when annotations change and prompts you to recompile them via the gutter icon (or the standard Recompile action.)
If there’s an error in an annotation (or it just doesn’t match the target), IntelliJ IDEA will inform you about it:
In other news, the update brings a great number of other improvements, for example, better responsiveness during long heavy operations.
Also, you’ll see less of “red code”, for example when you’re using akka-http:
Also, IntelliJ IDEA now suggests actor constructor parameters in Akka’s Prop method (Ultimate only):
Last, but not least, we’re working on the new “Migrators API” that will allow library authors to tell IntelliJ based IDE how migration of projects that are using different library versions should occur. This will allow to automatically migrate code, replace certain APIs, and so on. More details on this API are coming soon. The plugin uses this API itself for providing migration of code to Scala 2.12, e.g. replacing with SAM. Available migrators can be enabled via Settings → Language & Frameworks → Scala → Migrators.
And remember: switching your Scala plugin to the EAP channel can be performed in Settings → Language & Frameworks → Scala → Updates:
Develop with Pleasure!
Performance tips for IntelliJ Scala Plugin
A full-blown IDE is one of the most complicated applications you can find on an average laptop. This is why we – the Scala plugin team at JetBrains – from time to time receive reports that our product lags in certain situations or works slowly in general. In some of these cases we can help, but in o…
Dataflow Analysis for Scala
One of the things IntelliJ IDEA is most famous for is its huge variety of helpful inspections and warnings. They make the lives of programmers significantly easier, frequently showing them errors in logic or style that they wouldn’t have noticed otherwise. Those inspections come in various shapes…
BSP Support for Bazel
The Build Server Protocol (BSP), a protocol initially developed by the Scala Center and JetBrains, enables the easy integration of IDEs and build tools. To give users even more options in the BSP ecosystem, we decided to add support for Bazel. While there is already a Bazel plugin for Intel…
IntelliJ Scala Plugin 2021.2 EAP: Package Search Integration
Package Search is a service developed by JetBrains that supports searching for libraries from multiple repositories such as Maven Central, Google Maven, and others. Since its introduction at the end of 2019, the Package Search plugin has made searching for and managing dependencies for Maven and …