https://kotlinlang.org logo
d

Dmitry Kandalov

01/31/2018, 10:52 PM
Hello. I have a problem using
org.jetbrains.kotlin.scriptDefinitionContributor
extension point in a plugin. The problem seems to be caused by conflicting
kotlin.reflect.KClass
loaded by UrlClassLoader for
com.intellij
and PluginClassLoader for kotlin plugin. In particular, my plugin loads ScriptDefinitionContributor with
KClass
from
com.intellij
which later on is incompatible with
KClass
from kotlin plugin. Looks like there is already a workaround for similar issues in
com.intellij.ide.plugins.cl.PluginClassLoader#mustBeLoadedByPlatform
but it doesn't include
KClass
🤔