What problem are you trying to solve?
When running OpenRewrite on a project using Kotlin 2.x (K2 compiler), parsing fails with:
org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments:
Unexpected FirClassLikeSymbol null for class ConeClassLikeLookupTagImpl
Current rewrite-kotlin uses kotlin-compiler-embeddable:1.9.25, which cannot parse Kotlin 2.x source code compiled with the K2 compiler.
Describe the solution you'd like
Have you considered any alternatives or workarounds?
Excluding Kotlin files via exclusion("**/*.kt"), but this prevents recipes from being applied to Kotlin sources.
Additional context
What problem are you trying to solve?
When running OpenRewrite on a project using Kotlin 2.x (K2 compiler), parsing fails with:
Current rewrite-kotlin uses kotlin-compiler-embeddable:1.9.25, which cannot parse Kotlin 2.x source code compiled with the K2 compiler.
Describe the solution you'd like
Have you considered any alternatives or workarounds?
Excluding Kotlin files via exclusion("**/*.kt"), but this prevents recipes from being applied to Kotlin sources.
Additional context
Are you interested in contributing this feature to OpenRewrite?