Open marek-parfianowicz opened 4 years ago
Original report: https://bitbucket.org/openclover/clover/issues/109
Hi @marek-parfianowicz,
is there any update on this? The plugin is still broken with IntelliJ IDEA 2021.3. On launch you get three exception stack traces (pasted below). I currently see no way to actually use OpenClover with any modern IntelliJ version.
Thanks and best regards,
Felix
Stacktraces:
Should be called at least in the state COMPONENTS_LOADED, the current state is: CONFIGURATION_STORE_INITIALIZED Current violators count: 1
java.lang.Throwable
at com.intellij.diagnostic.LoadingState.logStateError(LoadingState.java:52)
at com.intellij.diagnostic.LoadingState.checkOccurred(LoadingState.java:48)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.
com.intellij.diagnostic.PluginException: Cannot load class com.atlassian.clover.idea.util.vfs.VfsUtil (
error: Cannot inherit from final class,
classLoader=PluginClassLoader(plugin=PluginDescriptor(name=OpenClover for IDEA, id=org.openclover.idea, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IdeaIC2021.3\plugins\clover-idea-4.4.1.jar, version=idea-4.4.1, package=null, isBundled=false), packagePrefix=null, instanceId=32, state=active)
)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:407)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:256)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:232)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at com.atlassian.clover.idea.actions.excludes.ExclusionUtil.getPattern(ExclusionUtil.java:62)
at com.atlassian.clover.idea.projectview.PresentationUtil.overlayPackagePresentation(PresentationUtil.java:46)
at com.atlassian.clover.idea.projectview.PsiDirectoryNodeWrapper.update(PsiDirectoryNodeWrapper.java:23)
at com.intellij.ide.util.treeView.PresentableNodeDescriptor.getUpdatedPresentation(PresentableNodeDescriptor.java:78)
at com.intellij.ide.util.treeView.PresentableNodeDescriptor.update(PresentableNodeDescriptor.java:30)
at com.intellij.ui.tree.StructureTreeModel$Node.update(StructureTreeModel.java:455)
at com.intellij.ui.tree.StructureTreeModel$Node.
Error executing task com.atlassian.clover.idea.ProjectPlugin$1@4e0b7766
java.lang.UnsupportedOperationException: Do not use getComponentInstanceOfType()
at com.intellij.serviceContainer.ComponentManagerImpl.getComponentInstanceOfType(ComponentManagerImpl.kt:1245)
at com.atlassian.clover.idea.SelectInCloverTarget.getInstance(SelectInCloverTarget.java:16)
at com.atlassian.clover.idea.coverageview.CoverageViewPanel.initListeners(CoverageViewPanel.java:131)
at com.atlassian.clover.idea.coverageview.CoverageViewPanel.
Unfortunately, I have no updates on this :(
On Mon, Mar 28, 2022 at 9:08 PM fxr256 @.***> wrote:
Hi @marek-parfianowicz https://github.com/marek-parfianowicz,
is there any update on this? The plugin is still broken with IntelliJ IDEA 2021.3. On launch you get three exception stack traces (pasted below). I currently see no way to actually use OpenClover with any modern IntelliJ version.
Thanks and best regards,
Felix
Stacktraces:
Should be called at least in the state COMPONENTS_LOADED, the current state is: CONFIGURATION_STORE_INITIALIZED Current violators count: 1
java.lang.Throwable at com.intellij.diagnostic.LoadingState.logStateError(LoadingState.java:52) at com.intellij.diagnostic.LoadingState.checkOccurred(LoadingState.java:48) at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.(ActionManagerImpl.java:138) at com.jetbrains.rdserver.ui.actionPopupMenu.BackendActionManager.(BackendActionManager.kt:16) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:47) at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:876) at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47) at com.intellij.serviceContainer.ServiceComponentAdapter.access$createAndInitialize(ServiceComponentAdapter.kt:12) at com.intellij.serviceContainer.ServiceComponentAdapter$doCreateInstance$1.compute(ServiceComponentAdapter.kt:41) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646) at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:237) at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:40) at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60) at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:595) at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:569) at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37) at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22) at com.intellij.openapi.actionSystem.ActionManager.getInstance(ActionManager.java:30) at com.atlassian.clover.idea.CloverPlugin.initComponent(CloverPlugin.java:153) at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:44) at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67) at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60) at com.intellij.serviceContainer.ComponentManagerImpl.createComponents(ComponentManagerImpl.kt:401) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$loadComponents$5(ApplicationImpl.java:370) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175) at com.intellij.openapi.application.impl.ApplicationImpl.loadComponents(ApplicationImpl.java:370) at com.intellij.idea.ApplicationLoader$startApp$loadComponentInEdtFuture$1.run(ApplicationLoader.kt:141) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214) at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:348) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:131) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47) at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:187) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:407) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
com.intellij.diagnostic.PluginException: Cannot load class com.atlassian.clover.idea.util.vfs.VfsUtil ( error: Cannot inherit from final class, classLoader=PluginClassLoader(plugin=PluginDescriptor(name=OpenClover for IDEA, id=org.openclover.idea, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IdeaIC2021.3\plugins\clover-idea-4.4.1.jar, version=idea-4.4.1, package=null, isBundled=false), packagePrefix=null, instanceId=32, state=active) ) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:407) at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:256) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:232) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at com.atlassian.clover.idea.actions.excludes.ExclusionUtil.getPattern(ExclusionUtil.java:62) at com.atlassian.clover.idea.projectview.PresentationUtil.overlayPackagePresentation(PresentationUtil.java:46) at com.atlassian.clover.idea.projectview.PsiDirectoryNodeWrapper.update(PsiDirectoryNodeWrapper.java:23) at com.intellij.ide.util.treeView.PresentableNodeDescriptor.getUpdatedPresentation(PresentableNodeDescriptor.java:78) at com.intellij.ide.util.treeView.PresentableNodeDescriptor.update(PresentableNodeDescriptor.java:30) at com.intellij.ui.tree.StructureTreeModel$Node.update(StructureTreeModel.java:455) at com.intellij.ui.tree.StructureTreeModel$Node.(StructureTreeModel.java:436) at com.intellij.ui.tree.StructureTreeModel$Node.(StructureTreeModel.java:429) at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:390) at com.intellij.ui.tree.StructureTreeModel.validateChildren(StructureTreeModel.java:299) at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:293) at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:313) at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.getNode(AsyncTreeModel.java:545) at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:440) at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:406) at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:316) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1084) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:75) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:115) at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:57) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175) at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:57) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:112) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:75) at com.intellij.util.concurrency.Invoker.invokeSafely(Invoker.java:205) at com.intellij.util.concurrency.Invoker.lambda$offerSafely$0(Invoker.java:183) at com.intellij.util.concurrency.Invoker$Background.lambda$offer$0(Invoker.java:486) at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:246) at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:32) at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:225) at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213) at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:214) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.VerifyError: Cannot inherit from final class at java.base/java.lang.ClassLoader.defineClass2(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1109) at com.intellij.util.lang.UrlClassLoader.consumeClassData(UrlClassLoader.java:290) at com.intellij.util.lang.ZipResourceFile.findClass(ZipResourceFile.java:116) at com.intellij.util.lang.JarLoader.findClass(JarLoader.java:55) at com.intellij.util.lang.ClassPath.findClassInLoader(ClassPath.java:217) at com.intellij.util.lang.ClassPath.findClass(ClassPath.java:176) at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:399) ... 49 more
Error executing task @.***
java.lang.UnsupportedOperationException: Do not use getComponentInstanceOfType() at com.intellij.serviceContainer.ComponentManagerImpl.getComponentInstanceOfType(ComponentManagerImpl.kt:1245) at com.atlassian.clover.idea.SelectInCloverTarget.getInstance(SelectInCloverTarget.java:16) at com.atlassian.clover.idea.coverageview.CoverageViewPanel.initListeners(CoverageViewPanel.java:131) at com.atlassian.clover.idea.coverageview.CoverageViewPanel.(CoverageViewPanel.java:103) at com.atlassian.clover.idea.CloverToolWindow.getCoveragePane(CloverToolWindow.java:184) at com.atlassian.clover.idea.CloverToolWindow.initComponents(CloverToolWindow.java:113) at com.atlassian.clover.idea.CloverToolWindow.(CloverToolWindow.java:68) at com.atlassian.clover.idea.CloverToolWindow.getInstance(CloverToolWindow.java:58) at com.atlassian.clover.idea.ProjectPlugin.projectPostStartup(ProjectPlugin.java:113) at com.atlassian.clover.idea.ProjectPlugin$1.run(ProjectPlugin.java:75) at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:395) at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:387) at com.intellij.openapi.project.TrackedEdtActivityService$TrackedEdtActivity.run(TrackedEdtActivityService.java:66) at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214) at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:348) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:131) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47) at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:187) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
— Reply to this email directly, view it on GitHub https://github.com/openclover/clover/issues/109#issuecomment-1081031726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFH6KQOONVA7IZLAAKDLQGLVCH7Q3ANCNFSM4J355VKQ . You are receiving this because you were mentioned.Message ID: @.***>
A follow up of #68 Support IDEA 2017 and 2018.
Make the OpenClover for IDEA plugin compatible with IntelliJ IDEA 2019.