Introducing the Kotlin/JS Inspection Pack: IR Migration Help, Quick-Fixes, and More
We’re introducing a new plugin for your Kotlin/JS applications – the Kotlin/JS Inspection Pack. It adds valuable inspections and quick-fixes that help you build and maintain your Kotlin/JS projects.
The plugin is especially helpful if you want to migrate your projects to the new Kotlin/JS IR compiler that’s been promoted to Beta in the latest 1.5.30 release. There are some major differences between the legacy compiler and the new one, so switching your Kotlin/JS project to the new backend may require some changes in your code. Fortunately, the Kotlin/JS Inspection Pack has a number of quick-fixes that should simplify the process. Try the Kotlin/JS IR backend.
How to get the plugin
The plugin is compatible with versions 2020.3 and later of both IntelliJ IDEA and Android Studio.
Inspections and quick-fixes in the Kotlin/JS Inspection Pack
While the Kotlin/JS Inspection Pack can help you fix common migration issues, we recommend checking out our Kotlin/JS IR migration guide to get the broader picture. Now let’s have a look at the tips that the Kotlin/JS Inspection Pack can provide.
Turn JS and React-related classes and interfaces into external interfaces
The plugin highlights such classes and interfaces and offers to turn them into external interfaces:
Make properties of external interfaces mutable
When working with external interfaces, pay attention to immutable properties. You can assign values to them only after the object is created with
As a workaround, make such properties mutable
var properties, following the plugin’s suggestions:
Make boolean variables nullable in external interfaces
To prevent another ClassCastException error, the Kotlin/JS Inspection Pack underlines boolean properties in external interfaces and advises making them nullable (
The current scope of the plugin is only the beginning. We’re planning to add more inspections to make Kotlin/JS development easier for you. Stay tuned!
If you have any feedback, encounter any issues, or want to suggest new inspections for the plugin, please don’t hesitate to report them in our issue tracker. Thank you!
Subscribe to Blog updates
Become a Kotlin Google Summer of Code Contributor: Make an Impact!
The Kotlin Foundation has been accepted as a mentor organization for Google Summer of Code 2024! GSoC is a global online program focused on bringing new contributors into open-source software development. Contributors work on a 12-week programming project under the guidance of Kotlin Foundation mentors from Google, Gradle, and JetBrains.
Advent of Code in Kotlin: Celebrating Our Participants and Their Solutions
A big thank you goes out to everyone who joined us for Advent of Code in Kotlin this year! From December 1 through 12, we shared daily livestreams of puzzle solutions. If you missed any of the action, you can watch the recordings on our YouTube playlist.
Kotlin/Wasm in Alpha, a KMP Project Migration Tutorial by Philipp Lackner, and Other Kotlin News
The first Kotlin Digest of 2024 is out! Catch up on the Kotlin ecosystem highlights in December and January!
Results of Google Summer of Code With Kotlin
2023 marked Kotlin's first-ever participation in Google Summer of Code (GSoC), a global online program focused on bringing new contributors into open-source development. Contributors worked on 12-week programming projects with the Kotlin Foundation under the guidance of mentors from JetBrains, Google, and Gradle, and gained experience on real-world projects. We would like to share the results achieved during GSoC 2023.