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

2024.3 EAP requires explicit JSON module dependency (Cannot load class opwvhk.intellij.avro_idl.syntax.AvroSchemaParserDefinition) #178

Closed avro-support-error-reporter[bot] closed 2 weeks ago

avro-support-error-reporter[bot] commented 2 months ago

Crash Report

What happened

(The user did not submit additional information)

Context information

Exception

Error while indexing /Users/C72346A/source-code/Work/cdp-crm/project/Build.scala To reindex this file IDEA has to be restarted

com.intellij.diagnostic.PluginException: Cannot load class opwvhk.intellij.avro_idl.syntax.AvroSchemaParserDefinition (
  error: com/intellij/json/JsonParserDefinition,
  classLoader=PluginClassLoader(plugin=PluginDescriptor(name=Avro Schema Support, id=net.sf.opk.avro-schema-support, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/IdeaIC2024.3/plugins/avro-schema-support, version=223.3.2, package=null, isBundled=false), packagePrefix=null, state=active, parents=PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.impl, descriptorPath=intellij.platform.vcs.impl.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.log.impl, descriptorPath=intellij.platform.vcs.log.impl.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.dvcs.impl, descriptorPath=intellij.platform.vcs.dvcs.impl.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.collaborationTools, descriptorPath=intellij.platform.collaborationTools.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), )
)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.kt:330)
    at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.kt:179)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1459)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:941)
    at com.intellij.serviceContainer.LazyExtensionInstance.createInstance(LazyExtensionInstance.java:57)
    at com.intellij.serviceContainer.LazyExtensionInstance.getInstance(LazyExtensionInstance.java:46)
    at com.intellij.serviceContainer.BaseKeyedLazyInstance.getInstance(BaseKeyedLazyInstance.java:38)
    at com.intellij.psi.stubs.SerializationManagerImpl.getExtensions(SerializationManagerImpl.java:315)
    at com.intellij.psi.stubs.SerializationManagerImpl.instantiateElementTypesFromFields(SerializationManagerImpl.java:307)
    at com.intellij.psi.stubs.SerializationManagerImpl.lambda$initSerializers$4(SerializationManagerImpl.java:242)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:270)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:685)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:278)
    at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:278)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:269)
    at com.intellij.psi.stubs.SerializationManagerImpl.initSerializers(SerializationManagerImpl.java:241)
    at com.intellij.psi.stubs.StubUpdatingIndex$2.getSubIndexerVersion(StubUpdatingIndex.java:168)
    at com.intellij.psi.stubs.StubUpdatingIndex$2.getSubIndexerVersion(StubUpdatingIndex.java:155)
    at com.intellij.util.indexing.impl.perFileVersion.PersistentSubIndexerRetriever.getVersion(PersistentSubIndexerRetriever.java:118)
    at com.intellij.util.indexing.impl.perFileVersion.PersistentSubIndexerRetriever.getFileIndexerId(PersistentSubIndexerRetriever.java:105)
    at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.lambda$getFileIndexMetaData$2(VfsAwareMapReduceIndex.java:114)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:736)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:692)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:278)
    at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:98)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:278)
    at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.getFileIndexMetaData(VfsAwareMapReduceIndex.java:114)
    at com.intellij.psi.stubs.StubUpdatingIndexStorage.getFileIndexMetaData(StubUpdatingIndexStorage.java:160)
    at com.intellij.psi.stubs.StubUpdatingIndexStorage.getFileIndexMetaData(StubUpdatingIndexStorage.java:21)
    at com.intellij.indexing.composite.CompositeInvertedIndexBase.getFileIndexMetaData(CompositeInvertedIndexBase.java:183)
    at com.intellij.util.indexing.FileBasedIndexImpl.createSingleIndexValueApplier(FileBasedIndexImpl.java:1627)
    at com.intellij.util.indexing.FileBasedIndexImpl.lambda$doIndexFileContent$24(FileBasedIndexImpl.java:1500)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.lambda$freezeFileTypeTemporarilyWithProvidedValueIn$15(FileTypeManagerImpl.java:733)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.cacheFileTypesInside(FileTypeManagerImpl.java:797)
    at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyWithProvidedValueIn(FileTypeManagerImpl.java:729)
    at com.intellij.util.indexing.FileBasedIndexImpl.doIndexFileContent(FileBasedIndexImpl.java:1453)
    at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1428)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$Indexer$getApplierForFileIndexUpdate$fileIndexingResult$1.invoke(IndexUpdateRunner.kt:350)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$Indexer$getApplierForFileIndexUpdate$fileIndexingResult$1.invoke(IndexUpdateRunner.kt:347)
    at com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:104)
    at com.intellij.openapi.application.rw.InternalReadAction.access$insideReadAction(InternalReadAction.kt:15)
    at com.intellij.openapi.application.rw.InternalReadAction$tryReadCancellable$2.invoke(InternalReadAction.kt:94)
    at com.intellij.openapi.application.rw.InternalReadAction$tryReadCancellable$2.invoke(InternalReadAction.kt:93)
    at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$2$lambda$1$lambda$0(cancellableReadAction.kt:31)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:322)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:953)
    at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$2$lambda$1(cancellableReadAction.kt:29)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:66)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:155)
    at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:27)
    at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:93)
    at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:77)
    at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:64)
    at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:15)
    at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$4.invokeSuspend(InternalReadAction.kt:43)
    at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$4.invoke(InternalReadAction.kt)
    at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$4.invoke(InternalReadAction.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.openapi.application.rw.InternalReadAction.runReadAction(InternalReadAction.kt:39)
    at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeReadAction(PlatformReadWriteActionSupport.kt:38)
    at com.intellij.openapi.application.ReadWriteActionSupport.executeReadAction$default(ReadWriteActionSupport.kt:15)
    at com.intellij.openapi.application.CoroutinesKt.constrainedReadAction(coroutines.kt:59)
    at com.intellij.openapi.application.CoroutinesKt.readAction(coroutines.kt:26)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$Indexer.getApplierForFileIndexUpdate(IndexUpdateRunner.kt:347)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$Indexer.indexOneFile(IndexUpdateRunner.kt:299)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner.indexOneFileHandleExceptions(IndexUpdateRunner.kt:239)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner.access$indexOneFileHandleExceptions(IndexUpdateRunner.kt:53)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$doIndexFiles$1$1.invokeSuspend(IndexUpdateRunner.kt:149)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$doIndexFiles$1$1.invoke(IndexUpdateRunner.kt)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$doIndexFiles$1$1.invoke(IndexUpdateRunner.kt)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$processFileSetInParallel$2$1$1$1$invokeSuspend$$inlined$useWithScope$default$1.invokeSuspend(trace.kt:59)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$processFileSetInParallel$2$1$1$1$invokeSuspend$$inlined$useWithScope$default$1.invoke(trace.kt)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$processFileSetInParallel$2$1$1$1$invokeSuspend$$inlined$useWithScope$default$1.invoke(trace.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.util.indexing.contentQueue.IndexUpdateRunner$processFileSetInParallel$2$1$1$1.invokeSuspend(IndexUpdateRunner.kt:563)
    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)
Caused by: java.lang.NoClassDefFoundError: com/intellij/json/JsonParserDefinition
    at java.base/java.lang.ClassLoader.defineClass2(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1118)
    at com.intellij.util.lang.UrlClassLoader.consumeClassData(UrlClassLoader.java:303)
    at com.intellij.util.lang.ZipResourceFile.findClass(ZipResourceFile.java:115)
    at com.intellij.util.lang.JarLoader.findClass(JarLoader.java:58)
    at com.intellij.util.lang.ClassPath.findClassInLoader(ClassPath.java:240)
    at com.intellij.util.lang.ClassPath.findClass(ClassPath.java:190)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.kt:325)
    ... 85 more
Caused by: java.lang.ClassNotFoundException: com.intellij.json.JsonParserDefinition PluginClassLoader(plugin=PluginDescriptor(name=Avro Schema Support, id=net.sf.opk.avro-schema-support, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/IdeaIC2024.3/plugins/avro-schema-support, version=223.3.2, package=null, isBundled=false), packagePrefix=null, state=active, parents=PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.impl, descriptorPath=intellij.platform.vcs.impl.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.log.impl, descriptorPath=intellij.platform.vcs.log.impl.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.dvcs.impl, descriptorPath=intellij.platform.vcs.dvcs.impl.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.collaborationTools, descriptorPath=intellij.platform.collaborationTools.xml, path=~/Applications/IntelliJ IDEA Community Edition.app/Contents/lib, version=243.12818.47, package=null, isBundled=true), )
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:157)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
    ... 93 more
opwvhk commented 2 months ago

The 2024.3 EAP has a new JSON module. It'll be added in the next release (232.0.0), targeting JetBrains 2023.2 and newer.

For now, I'm leaving this issue open as a reminder.

opwvhk commented 2 weeks ago

There are now two versions in the marketplace that support 2024.3 (232.0.0 and the pending 232.0.1). Closing this now.

Lack of 2024.3 support (also caused by forced until builds) is further tracked in #191.