mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[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:
committed by
intellij-monorepo-bot
parent
d614bdce0f
commit
1f1f1bb460
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user