[kotlin] disable plugin's config files depending on kotlin for plugins which do not support Kotlin K2 mode

KTIJ-30545

GitOrigin-RevId: fa91d5de307f8225660af1e8bab019edac99c45b
This commit is contained in:
Ilya Kirillov
2024-07-12 11:53:11 +02:00
committed by intellij-monorepo-bot
parent d614bdce0f
commit 1f1f1bb460

View File

@@ -327,6 +327,13 @@ class IdeaPluginDescriptorImpl(
continue
}
if (isKotlinPlugin(dependency.pluginId) && isIncompatibleWithKotlinPlugin(descriptor)) {
LOG.warn("Plugin ${descriptor} depends on Kotlin plugin via `${configFile}` " +
"but the plugin is not compatible with the Kotlin plugin in the ${if (isKotlinPluginK1Mode()) "K1" else "K2"} mode. " +
"So, the `${configFile}` was not loaded")
continue
}
var resolveError: Exception? = null
val raw: RawPluginDescriptor? = try {
pathResolver.resolvePath(readContext = context, dataLoader = dataLoader, relativePath = configFile, readInto = null)