trying to enable K2 for my company's projects and ...
# compiler
d
trying to enable K2 for my company's projects and am running into a wall with errors such as:
Copy code
error: [kapt] An exception occurred: org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Error while resolving org.jetbrains.kotlin.fir.declarations.impl.FirPropertyImpl
from RAW_FIR to TYPES
current declaration phase SEALED_CLASS_INHERITORS
origin: Source
session: class org.jetbrains.kotlin.analysis.low.level.api.fir.sessions.LLFirSourcesSession
module data: class org.jetbrains.kotlin.analysis.low.level.api.fir.projectStructure.LLFirModuleData
KaModule: class org.jetbrains.kotlin.analysis.project.structure.impl.KaSourceModuleImpl
platform: JVM (1.8)
Curious if anyone has insights?
d
According to stacktrace you are using the old version of K2 KAPT, which was replaced with new one in 2.1.0 IIRC Which Kotlin version do you use? cc @udalov