Azn9 / JetBrains-Discord-Integration

Discord rich presence integration for all JetBrains IDEs
Apache License 2.0
156 stars 10 forks source link

[Bug]: com.intellij.diagnostic.PluginException: Cannot create extension (class=dev.azn9.plugins.discord.postLoad.NotificationPostStartupActivity) [Plugin: dev.azn9.plugins.discord] #203

Closed JDI-Bot closed 1 month ago

JDI-Bot commented 2 months ago

IDE version

IntelliJ IDEA 2024.2.3 (IU-242.23339.11)

OS

Linux

Java version

17.0.11

Plugin version

2.1.3.242

Error message

com.intellij.diagnostic.PluginException: Cannot create extension (class=dev.azn9.plugins.discord.postLoad.NotificationPostStartupActivity) [Plugin: dev.azn9.plugins.discord]

Additional info

/

Stack trace

com.intellij.diagnostic.PluginException: Cannot create extension (class=dev.azn9.plugins.discord.postLoad.NotificationPostStartupActivity) [Plugin: dev.azn9.plugins.discord]
    at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:980)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.doCreateInstance(XmlExtensionAdapter.kt:73)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.kt:33)
    at com.intellij.openapi.extensions.ExtensionPointNameKt.createOrError(ExtensionPointName.kt:336)
    at com.intellij.openapi.extensions.ExtensionPointNameKt.access$createOrError(ExtensionPointName.kt:1)
    at com.intellij.openapi.extensions.LazyExtensionImpl.getInstance(ExtensionPointName.kt:311)
    at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.kt:245)
    at com.intellij.ide.startup.impl.StartupManagerImpl.access$runPostStartupActivities(StartupManagerImpl.kt:69)
    at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invokeSuspend(StartupManagerImpl.kt:193)
    at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
    at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.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.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3.invokeSuspend(StartupManagerImpl.kt:192)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:277)
    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
    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: com.intellij.diagnostic.PluginException: Cannot load class dev.azn9.plugins.discord.postLoad.NotificationPostStartupActivity (
  error: dev/azn9/plugins/discord/postLoad/NotificationPostStartupActivity has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0,
  classLoader=PluginClassLoader(plugin=PluginDescriptor(name=Discord Integration V2, id=dev.azn9.plugins.discord, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/IntelliJIdea2024.2/JetBrains-Discord-Integration, version=2.1.3.242, package=null, isBundled=false), packagePrefix=null, state=active, parents=PluginDescriptor(name=Git, id=Git4Idea, moduleName=intellij.vcs.git/terminal, descriptorPath=intellij.vcs.git.terminal.xml, path=/opt/intellij-idea-ultimate-edition/plugins/vcs-git, version=242.23339.11, package=git4idea.terminal, isBundled=true), PluginDescriptor(name=Git, id=Git4Idea, moduleName=intellij.vcs.git/newUiOnboarding, descriptorPath=intellij.vcs.git.newUiOnboarding.xml, path=/opt/intellij-idea-ultimate-edition/plugins/vcs-git, version=242.23339.11, package=git4idea.newUiOnboarding, isBundled=true), PluginDescriptor(name=Git, id=Git4Idea, moduleName=intellij.vcs.git.coverage, descriptorPath=intellij.vcs.git.coverage.xml, path=/opt/intellij-idea-ultimate-edition/plugins/vcs-git, version=242.23339.11, package=com.intellij.vcs.git.coverage, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.vcs.impl, descriptorPath=intellij.platform.vcs.impl.xml, path=/opt/intellij-idea-ultimate-edition/lib, version=242.23339.11, 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=/opt/intellij-idea-ultimate-edition/lib, version=242.23339.11, 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=/opt/intellij-idea-ultimate-edition/lib, version=242.23339.11, package=null, isBundled=true), PluginDescriptor(name=IDEA CORE, id=com.intellij, moduleName=intellij.platform.collaborationTools, descriptorPath=intellij.platform.collaborationTools.xml, path=/opt/intellij-idea-ultimate-edition/lib, version=242.23339.11, package=null, isBundled=true), PluginDescriptor(name=Git, id=Git4Idea, descriptorPath=plugin.xml, path=/opt/intellij-idea-ultimate-edition/plugins/vcs-git, version=242.23339.11, package=git4idea, isBundled=true), )
)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.kt:335)
    at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.kt:179)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1464)
    at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass$default(ComponentManagerImpl.kt:1460)
    at com.intellij.serviceContainer.ComponentManagerImpl.loadClass(ComponentManagerImpl.kt:887)
    at com.intellij.openapi.extensions.impl.InterfaceExtensionImplementationClassResolver.resolveImplementationClass(InterfaceExtensionImplementationClassResolver.kt:21)
    at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.doCreateInstance(XmlExtensionAdapter.kt:51)
    ... 22 more
Caused by: java.lang.UnsupportedClassVersionError: dev/azn9/plugins/discord/postLoad/NotificationPostStartupActivity has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
    at java.base/java.lang.ClassLoader.defineClass2(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1108)
    at com.intellij.util.lang.UrlClassLoader.consumeClassData(UrlClassLoader.java:276)
    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:330)
    ... 28 more

Issue hash: 71ad224f2e5723fef0cd9f1e9b4c1161