Scala Plugin
Scala Plugin for IntelliJ IDEA and Android Studio
IntelliJ Scala Plugin 2024.3.20 Is Out!
We’ve just published a maintenance update to IntelliJ Scala Plugin 2024.3. This minor release includes several bug fixes and improvements to existing features introduced in the main release.
Lambda breakpoints in the debugger
We’ve made improvements to how lambda expressions are handled in the debugger. Previously, setting a breakpoint on a line with a lambda (e.g. in a method parameter list) would cause the entire line to be highlighted. Starting with this release, only the lambda body is highlighted, reflecting the actual point where the breakpoint is attached.
Named tuples completion
Named tuples are a new experimental feature introduced in Scala 3.5 that will become a standard feature in Scala 3.7. You can read more about our support for named tuples in the release notes for the 2024.3 release of the IntelliJ Scala Plugin.
In this minor release, we’ve added another enhancement to make working with named tuples even more efficient. Suppose you have a named tuple already defined in your code, for example:
type X = (a: Int, b: String)
If you declare a value of this type, then IntelliJ IDEA will now suggest a completion that lists all the tuple’s fields’ names:
val blub: X = (a = ???, b = ???)
Fixes to Optimize imports
We fixed a bug that was causing the Optimize imports action to identify the imported derived
extension method as unused and remove it. This fix ensures that your code stays functional while optimizing imports.
The AI-powered Rename refactoring no longer suggests existing names
If you’ve used AI Assistant, you’re likely familiar with its ability to assist in solving one of the most challenging problems in programming: giving meaningful names to your classes, methods, and fields. Until recently, though, when you wanted to rename a field, AI would occasionally suggest names that were already in use in your code, leading to potential conflicts. Since the current release, this is not going to happen anymore.
As always, your feedback is very welcome. Please report any issues you find to YouTrack. If you have any questions, feel free to ask us on Discord.
Happy developing!
The IntelliJ Scala Plugin team