https://kotlinlang.org logo
Title
d

Dan O'Brien

07/05/2020, 3:55 PM
👋 I’m trying to understand what this error message is meaning:
ERROR - pplication.impl.LaterInvocator - loader constraint violation: when resolving method 'com.intellij.ui.layout.CellBuilder com.intellij.ui.layout.Row.intTextField(kotlin.reflect.KMutableProperty0, java.lang.Integer, kotlin.ranges.IntRange)' the class loader com.intellij.ide.plugins.cl.PluginClassLoader @6ad38805 of the current class, com/github/intheclouddan/intellijpluginld/LaunchDarklyConfigurable$createPanel$$inlined$panel$lambda$4, and the class loader com.intellij.util.lang.UrlClassLoader @215be6bb for the method's defining class, com/intellij/ui/layout/Cell, have different Class objects for the type kotlin/ranges/IntRange used in the signature (com.github.intheclouddan.intellijpluginld.LaunchDarklyConfigurable$createPanel$$inlined$panel$lambda$4 is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @6ad38805, parent loader 'bootstrap'; com.intellij.ui.layout.Cell is in unnamed module of loader com.intellij.util.lang.UrlClassLoader @215be6bb, parent loader 'platform')
I’m trying to use an intellij
intTextField
and just assign a var as
refreshRate: Int
n

noctarius

07/05/2020, 9:25 PM
Probably an inconsistent classloader hierarchy where two classloaders load the same class, resulting in different identities
d

Dan O'Brien

07/06/2020, 12:51 AM
is there an easy way to fix that on my end? I’m not super familiar with Java to begin with. But loving Kotlin so far. It’s the only reason I’m able to work on the intellij plugin lol
a

araqnid

07/06/2020, 9:18 AM
It looks like the plugin is supply a kotlin-stdlib jar that is clashing with the intellij platform one. Can you exclude it from the plugin build/distributable? (not really familiar with writing these plugins, sorry)
d

Dan O'Brien

07/06/2020, 12:12 PM
thanks! Based on this I’ll ask in the intellij slack. Just thought it might be more of a generic thing