lupuuss / Mokkery

The mocking library for Kotlin Multiplatform, easy to use, boilerplate-free and compiler plugin driven.
https://mokkery.dev
Apache License 2.0
170 stars 8 forks source link

no such method: ContextIndependentParameterRenderer #24

Closed LambergaR closed 1 month ago

LambergaR commented 2 months ago

mokkery: 2.1.1 ksp: 2.0.20-Beta2-1.0.23 kotlin: 2.0.20-Beta2

When attempting migration to the latest kotlin/ksp versions we started noticing the following issue when running ./gradlew :shared:compileTestKotlinIosArm64

e: java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.diagnostics.rendering.ContextIndependentParameterRenderer org.jetbrains.kotlin.fir.analysis.diagnostics.FirDiagnosticRenderers.getRENDER_TYPE()'
        at dev.mokkery.plugin.diagnostics.MokkeryDiagnosticRendererFactory.<init>(MokkeryDiagnosticRendererFactory.kt:16)
        at dev.mokkery.plugin.MokkeryCompilerPluginRegistrar.registerExtensions(MokkeryCompilerPluginRegistrar.kt:21)

full log: mokkery-error.log

lupuuss commented 2 months ago

Hi. I am aware of the issue. It is fixed here. I've planned to release it with stable 2.0.20. Is 2.0.20-Beta2 support urgent for you?

LambergaR commented 2 months ago

no, not at all, more than willing to wait for 2.0.20 to get a proper release :)

lupuuss commented 2 months ago

Duplicate of #9