From 57d912a5d4ddc66e7827f9e0d15910351b155c41 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Tue, 7 Nov 2023 16:38:43 +0100 Subject: [PATCH] [JVM_IR] Don't use plugin extensions when compiling code fragment When compiling code fragment, we forbid to use `irLinker` as IR provider. Because of that, if there are some plugin extensions, we will not be able to find deserializer for a given module and will fail. #KT-63695 Fixed --- .../src/org/jetbrains/kotlin/backend/jvm/JvmIrCodegenFactory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/backend.jvm/entrypoint/src/org/jetbrains/kotlin/backend/jvm/JvmIrCodegenFactory.kt b/compiler/ir/backend.jvm/entrypoint/src/org/jetbrains/kotlin/backend/jvm/JvmIrCodegenFactory.kt index 80709b9f383..6992ea7fe5a 100644 --- a/compiler/ir/backend.jvm/entrypoint/src/org/jetbrains/kotlin/backend/jvm/JvmIrCodegenFactory.kt +++ b/compiler/ir/backend.jvm/entrypoint/src/org/jetbrains/kotlin/backend/jvm/JvmIrCodegenFactory.kt @@ -213,7 +213,7 @@ open class JvmIrCodegenFactory( irLinker, messageLogger ) - if (pluginExtensions.isNotEmpty()) { + if (pluginExtensions.isNotEmpty() && !ideCodegenSettings.shouldStubAndNotLinkUnboundSymbols) { for (extension in pluginExtensions) { if (psi2irContext.configuration.generateBodies || @OptIn(FirIncompatiblePluginAPI::class) extension.shouldAlsoBeAppliedInKaptStubGenerationMode