:wave: I’m trying to understand what this error me...
# getting-started
d
👋 I’m trying to understand what this error message is meaning:
Copy code
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
Probably an inconsistent classloader hierarchy where two classloaders load the same class, resulting in different identities
d
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
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
thanks! Based on this I’ll ask in the intellij slack. Just thought it might be more of a generic thing