Oliver.O
10/29/2026, 6:11 PMOliver.O
10/29/2026, 6:21 PMTanja Stojiljkovic
10/30/2026, 8:37 AMOliver.O
10/30/2026, 2:17 PMdev and ij versions in Metro, but this seems to be an overkill in the TestBalloon context.)Youssef Shoaib [MOD]
10/30/2026, 3:52 PMKotlinVersion, you might wanna add a dependency on kotlin-tooling-core, which gives you KotlinToolingVersion
I'm not super clear on what the problem is though. Is it that versions like 2.5.0-ij263-3 trip up your code? If so, then KotlinToolingVersion should definitely do the trick.
You'll may run into some issues on Android Studio because the version it reports is something like 2.4.255. Metro has a setup for this, and I can help port it over if you want! But definitely see first if it's causing issues or notOliver.O
10/30/2026, 4:16 PMij versions trip up the plugin because it does not expect to be activated inside the IDE (TestBalloon does not need FIR at this point). But I guess I need to respect users which turn on non-bundled plugins and make TestBalloon behave gracefully. So I need to detect the correct TestBalloon compiler plugin version for a Kotlin version embedded in the IDE.
There are two problems
• There is no defined order between -dev versions and other non-stable versions.
• There is no defined order between -ij versions and other non-stable versions.
So unless you do the Metro dance, how do you know that a plugin built with 2.5.0-alpha3 is compatible with (i.e. not using a later build than) 2.5.0-ij263-45?
KotlinToolingVersion does not help here. It always assumes that a -dev version is lower than an -alpha version, being incorrect on all -dev builds following an -alpha version.Youssef Shoaib [MOD]
10/30/2026, 4:25 PMAnalysisFlags.ideMode to detect when you're running in IDE and simply early exit: https://kotlinlang.slack.com/archives/C7L3JB43G/p1790219284283659?thread_ts=1790219284.283659&cid=C7L3JB43G
Or you can early exit if you detect an ij versionOliver.O
10/30/2026, 4:27 PMOliver.O
10/30/2026, 4:30 PMYoussef Shoaib [MOD]
10/30/2026, 4:37 PMOliver.O
10/30/2026, 4:45 PMYoussef Shoaib [MOD]
10/30/2026, 4:50 PMOliver.O
10/30/2026, 4:52 PM