hfhbd
07/01/2025, 9:15 AMAnna Kozlova
07/01/2025, 3:31 PMhfhbd
07/01/2025, 3:33 PMAnna Kozlova
07/01/2025, 3:34 PMhfhbd
07/01/2025, 5:51 PMCaused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.diagnostics.DiagnosticFactory2DelegateProvider.<init>(org.jetbrains.kotlin.diagnostics.Severity, org.jetbrains.kotlin.diagnostics.AbstractSourceElementPositioningStrategy, kotlin.reflect.KClass)' [in thread "DefaultDispatcher-worker-23"]
at app.softwork.serviceloader.plugin.kotlin.fir.ServiceLoaderErrors.<clinit>(ServiceLoaderErrors.kt:23)
at app.softwork.serviceloader.plugin.kotlin.fir.ServiceLoaderClassChecker.check(ServiceLoaderClassChecker.kt:53)
at app.softwork.serviceloader.plugin.kotlin.fir.ServiceLoaderClassChecker.check(ServiceLoaderClassChecker.kt:19)
at org.jetbrains.kotlin.fir.analysis.checkers.declaration.DeclarationCheckersDiagnosticComponent.visitRegularClass(DeclarationCheckersDiagnosticComponent.kt:275)
Caused by this commit https://github.com/JetBrains/kotlin/commit/f8d67d46655e2ebc376e1176c2791ae8aa93b4f5 changing the constructor of DiagnosticFactory2DelegateProvider
I guess 2025.2 already uses 2.2.20? I saw this tag: build-2.2.20-ij252-3hfhbd
07/01/2025, 5:52 PMhfhbd
07/01/2025, 5:54 PMkotlin.k2.only.bundled.compiler.plugins.enabled=false
is experimental, but it seeing the FIR errors in IDEA is incredible niceAnna Kozlova
07/01/2025, 6:20 PMdmitriy.novozhilov
07/02/2025, 11:17 AMhfhbd
07/02/2025, 11:20 AMbnorm
07/02/2025, 12:15 PMbnorm
07/02/2025, 12:17 PMhfhbd
07/02/2025, 12:23 PMbnorm
07/02/2025, 12:28 PMKotlinBundledFirCompilerPluginProvider
. Here's an example IntelliJ plugin which is doing something similar to what IntelliJ is doing internally: https://github.com/Mr3zee/kotlin-plugins/blob/main/src/main/kotlin/com/github/mr3zee/kotlinPlugins/KotlinPluginsProvider.kt