opwvhk / avro-schema-support

Extend IntelliJ, PyCharm and other JetBrains IDEs to more easily work with Avro schemata and protocols in both IDL and JSON format.
https://plugins.jetbrains.com/plugin/15728-avro-schema-support
MIT License
19 stars 2 forks source link

Crash Report: class opwvhk.intellij.avro_idl.AvroIdlSettings cannot be cast to class opwvhk.intellij.avro_idl.AvroIdlSettings (opwvhk.intellij.avro_idl.AvroIdlSettings is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @24449535; opwvhk.intellij.avro_idl.AvroIdlSettings is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @5d546eee) #193

Closed avro-support-error-reporter[bot] closed 1 week ago

avro-support-error-reporter[bot] commented 1 week ago

Crash Report

What happened

(The user did not submit additional information)

Context information

Exception

Unhandled exception in [ComponentManager(ProjectImpl@867764795), com.intellij.codeWithMe.ClientIdContextElementPrecursor@1202453, CoroutineName(com.intellij.ide.startup.impl.StartupManagerImpl), Dispatchers.Default]

java.lang.ClassCastException: class opwvhk.intellij.avro_idl.AvroIdlSettings cannot be cast to class opwvhk.intellij.avro_idl.AvroIdlSettings (opwvhk.intellij.avro_idl.AvroIdlSettings is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @24449535; opwvhk.intellij.avro_idl.AvroIdlSettings is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @5d546eee)
    at opwvhk.intellij.avro_idl.AvroIdlSettings.getInstance(AvroIdlSettings.java:24)
    at opwvhk.intellij.avro_idl.AvroIdlPluginUpdateStartupActivity.execute(AvroIdlPluginUpdateStartupActivity.java:47)
    at com.intellij.ide.startup.impl.StartupManagerImpl$Companion$addActivityEpListener$1$extensionAdded$1.invokeSuspend(StartupManagerImpl.kt:84)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@867764795), com.intellij.codeWithMe.ClientIdContextElementPrecursor@1202453, CoroutineName(com.intellij.ide.startup.impl.StartupManagerImpl), StandaloneCoroutine{Cancelled}@7549bcec, Dispatchers.Default]
opwvhk commented 1 week ago

Though the stack trace is truncated, the exception message states that the class cannot be cast to a class with the same name. This indicates the previous plugin classloader has not unloaded yet.

In other words: this is a duplicate of #63 (unloading the plugin fails).