yzhengfei / ai-coding

0 stars 0 forks source link

[Auto Generated]Plugin error occurred: Read access is allowed from inside read-action only (see Application.runReadAction()); see https://j... #62

Closed jetbrains-ai-coding-bot closed 1 month ago

jetbrains-ai-coding-bot commented 3 months ago

:warning:[Auto Generated Report]-=2C3CE382261B05708BF83A1C371D1366=-

Description

Read access is allowed from inside read-action only (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details Current thread: Thread[AWT-EventQueue-0,6,main] 1869589604 (EventQueue.isDispatchThread()=true) SystemEventQueueThread: (same)

Environments

Plugin version: 2024.1.12

IntelliJ IDEA 2024.1 (Ultimate Edition) Build #IU-241.14494.240, built on March 28, 2024 Runtime version: 17.0.10+8-b1207.12 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Operating system: Windows 11.0 Last action id: null

Stack Trace

com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details
Current thread: Thread[AWT-EventQueue-0,6,main] 1869589604 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
    at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:180)
    at com.intellij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:131)
    at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:908)
    at com.intellij.openapi.editor.impl.CaretImpl.hasSelection(CaretImpl.java:1022)
    at com.intellij.openapi.editor.SelectionModel.hasSelection(SelectionModel.java:133)
    at com.intellij.openapi.editor.SelectionModel.hasSelection(SelectionModel.java:122)
    at yinzhengfei.ai.coding.IlLllIlILI.update(EditorMergeAction.java:56)
    at com.intellij.openapi.actionSystem.ex.ActionUtil$performDumbAwareUpdate$runnable$1.invoke(ActionUtil.kt:162)
    at com.intellij.openapi.actionSystem.ex.ActionUtil$performDumbAwareUpdate$runnable$1.invoke(ActionUtil.kt:155)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.kt:180)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater$updateAction$success$1$1$1.invoke(ActionUpdater.kt:564)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater$updateAction$success$1$1$1.invoke(ActionUpdater.kt:563)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater$callAction$3.invoke(ActionUpdater.kt:171)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater$computeOnEdt$2.invoke(ActionUpdater.kt:197)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater$computeOnEdt$deferred$1$1.invoke(ActionUpdater.kt:492)
    at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:320)
    at com.intellij.openapi.progress.CoroutinesKt.access$blockingContextInner(coroutines.kt:1)
    at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invokeSuspend(coroutines.kt:197)
    at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
    at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
    at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:196)
    at com.intellij.openapi.actionSystem.impl.ActionUpdater$computeOnEdt$deferred$1.invokeSuspend(ActionUpdater.kt:491)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at com.intellij.openapi.actionSystem.impl.AltEdtDispatcher.dispatch$lambda$0(Utils.kt:1132)
    at com.intellij.openapi.actionSystem.impl.AltEdtDispatcher.runOwnQueueBlockingAndSwitchBackToEDT(Utils.kt:1155)
    at com.intellij.openapi.actionSystem.impl.Utils$expandActionGroupSuspend$2.invokeSuspend(Utils.kt:288)
    at com.intellij.openapi.actionSystem.impl.Utils$expandActionGroupSuspend$2.invoke(Utils.kt)
    at com.intellij.openapi.actionSystem.impl.Utils$expandActionGroupSuspend$2.invoke(Utils.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroupSuspend(Utils.kt:271)
    at com.intellij.openapi.actionSystem.impl.Utils$expandActionGroupAsync$1.invokeSuspend(Utils.kt:258)
    at com.intellij.openapi.actionSystem.impl.Utils$expandActionGroupAsync$1.invoke(Utils.kt)
    at com.intellij.openapi.actionSystem.impl.Utils$expandActionGroupAsync$1.invoke(Utils.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
    at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
    at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.async(Builders.common.kt:91)
    at kotlinx.coroutines.BuildersKt.async(Unknown Source)
    at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroupAsync(Utils.kt:256)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsImpl(ActionToolbarImpl.java:1002)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$1.updateActionsImpl(ActionToolbarImpl.java:205)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyUpdateRunnable.run(ToolbarUpdater.java:178)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.updateActions(ToolbarUpdater.java:81)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsWithoutLoadingIcon(ActionToolbarImpl.java:985)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsImmediately(ActionToolbarImpl.java:979)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsImmediately(ActionToolbarImpl.java:958)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsOnAdd(ActionToolbarImpl.java:346)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.addNotify(ActionToolbarImpl.java:341)
    at java.desktop/java.awt.Container.lambda$addImpl$0(Container.java:1150)
    at java.desktop/sun.awt.SunToolkit.lambda$performWithTreeLock$1(SunToolkit.java:2145)
    at java.desktop/sun.awt.SunToolkit.performOnMainThreadIfNeeded(SunToolkit.java:2170)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2143)
    at java.desktop/java.awt.Container.addImpl(Container.java:1104)
    at java.desktop/java.awt.Container.add(Container.java:440)
    at com.intellij.openapi.editor.impl.EditorImpl.setHeaderComponent(EditorImpl.java:2095)
    at yinzhengfei.ai.coding.lliliILIli$1.onEditorAdded(CollapsibleEditorFragment.java:135)
    at com.intellij.ui.EditorTextField.initEditor(EditorTextField.java:530)
    at com.intellij.ui.EditorTextField.getEditor(EditorTextField.java:962)
    at com.intellij.ui.EditorTextField.getPreferredSize(EditorTextField.java:864)
    at yinzhengfei.ai.coding.lILILLiIil.getPreferredSize(EditorFragment.java:150)
    at java.desktop/java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:724)
    at java.desktop/java.awt.Container.lambda$preferredSize$4(Container.java:1826)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.preferredSize(Container.java:1824)
    at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
    at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1723)
    at com.intellij.ui.components.JBPanel.getPreferredSize(JBPanel.java:120)
    at yinzhengfei.ai.coding.lliliILIli.getPreferredSize(CollapsibleEditorFragment.java:211)
    at java.desktop/javax.swing.text.ComponentView$Invalidator.cacheChildSizes(ComponentView.java:430)
    at java.desktop/javax.swing.text.ComponentView$Invalidator.doLayout(ComponentView.java:409)
    at java.desktop/java.awt.Container.validateTree(Container.java:1725)
    at java.desktop/java.awt.Container.lambda$validate$3(Container.java:1659)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.validate(Container.java:1648)
    at java.desktop/javax.swing.text.ComponentView$Invalidator.validateIfNecessary(ComponentView.java:422)
    at java.desktop/javax.swing.text.ComponentView$Invalidator.getPreferredSize(ComponentView.java:469)
    at java.desktop/javax.swing.text.ComponentView.getPreferredSpan(ComponentView.java:142)
    at java.desktop/javax.swing.text.View.getBreakWeight(View.java:975)
    at java.desktop/javax.swing.text.FlowView$LogicalView.getMinimumSpan(FlowView.java:791)
    at com.intellij.util.ui.ExtendableHTMLViewFactory$WordWrapExtension$invoke$1.calculateMinorAxisRequirements(ExtendableHTMLViewFactory.kt:383)
    at java.desktop/javax.swing.text.BoxView.checkRequests(BoxView.java:936)
    at java.desktop/javax.swing.text.BoxView.getMinimumSpan(BoxView.java:569)
    at java.desktop/javax.swing.text.html.ParagraphView.getMinimumSpan(ParagraphView.java:275)
    at java.desktop/javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:904)
    at java.desktop/javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:146)
    at java.desktop/javax.swing.text.BoxView.checkRequests(BoxView.java:936)
    at java.desktop/javax.swing.text.BoxView.getMinimumSpan(BoxView.java:569)
    at java.desktop/javax.swing.text.html.BlockView.getMinimumSpan(BlockView.java:378)
    at java.desktop/javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:904)
    at java.desktop/javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:146)
    at java.desktop/javax.swing.text.BoxView.checkRequests(BoxView.java:936)
    at java.desktop/javax.swing.text.BoxView.getMinimumSpan(BoxView.java:569)
    at java.desktop/javax.swing.text.html.BlockView.getMinimumSpan(BlockView.java:378)
    at java.desktop/javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:904)
    at java.desktop/javax.swing.text.html.BlockView.calculateMinorAxisRequirements(BlockView.java:146)
    at java.desktop/javax.swing.text.BoxView.checkRequests(BoxView.java:936)
    at java.desktop/javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:344)
    at java.desktop/javax.swing.text.BoxView.layout(BoxView.java:709)
    at java.desktop/javax.swing.text.BoxView.setSize(BoxView.java:398)
    at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1826)
    at java.desktop/javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:946)
    at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1721)
    at java.desktop/javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1401)
    at yinzhengfei.ai.coding.LLlIlLLiiI.getPreferredSize(MarkdownHtmlPanel.java:132)
    at yinzhengfei.ai.coding.IiILLiliiL$LiIiIiIiLl.preferredLayoutSize(MarkdownTextAreaWithPreview.java:177)
    at java.desktop/java.awt.Container.lambda$preferredSize$4(Container.java:1826)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.preferredSize(Container.java:1824)
    at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
    at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1723)
    at com.intellij.ui.components.panels.Wrapper.getPreferredSize(Wrapper.java:115)
    at java.desktop/java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:724)
    at java.desktop/java.awt.Container.lambda$preferredSize$4(Container.java:1826)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.preferredSize(Container.java:1824)
    at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
    at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1723)
    at com.intellij.ui.components.panels.Wrapper.getPreferredSize(Wrapper.java:115)
    at java.desktop/java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:724)
    at java.desktop/java.awt.Container.lambda$preferredSize$4(Container.java:1826)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.preferredSize(Container.java:1824)
    at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
    at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1723)
    at com.intellij.ui.components.panels.Wrapper.getPreferredSize(Wrapper.java:115)
    at yinzhengfei.ai.coding.liIilLIlLI$IIllillILi.invoke(ListLayout.kt:1117)
    at yinzhengfei.ai.coding.liIilLIlLI.iIIiiILIII(ListLayout.kt:142)
    at yinzhengfei.ai.coding.liIilLIlLI.preferredLayoutSize(ListLayout.kt:117)
    at java.desktop/java.awt.Container.lambda$preferredSize$4(Container.java:1826)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.preferredSize(Container.java:1824)
    at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
    at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1723)
    at com.intellij.ui.components.panels.Wrapper.getPreferredSize(Wrapper.java:115)
    at com.intellij.openapi.roots.ui.componentsList.layout.SizeProperty$1.getSize(SizeProperty.java:28)
    at com.intellij.openapi.roots.ui.componentsList.layout.ComponentOperation$SizeCalculator.applyTo(ComponentOperation.java:28)
    at com.intellij.openapi.roots.ui.componentsList.layout.VerticalStackLayout.withAllVisibleDo(VerticalStackLayout.java:30)
    at com.intellij.openapi.roots.ui.componentsList.layout.VerticalStackLayout.preferredLayoutSize(VerticalStackLayout.java:56)
    at java.desktop/java.awt.Container.lambda$preferredSize$4(Container.java:1826)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.preferredSize(Container.java:1824)
    at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
    at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1723)
    at com.intellij.ui.components.panels.Wrapper.getPreferredSize(Wrapper.java:115)
    at yinzhengfei.ai.coding.LllliiliIL.getPreferredSize(ChatNonOpaquePanel.java:189)
    at yinzhengfei.ai.coding.LllliiliIL.setBounds(ChatNonOpaquePanel.java:229)
    at com.intellij.openapi.editor.impl.EditorImpl$PanelWithFloatingToolbar.doLayout(EditorImpl.java:5672)
    at java.desktop/java.awt.Container.validateTree(Container.java:1725)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.validateTree(Container.java:1734)
    at java.desktop/java.awt.Container.lambda$validate$3(Container.java:1659)
    at java.desktop/sun.awt.SunToolkit.performWithTreeLock(SunToolkit.java:2161)
    at java.desktop/java.awt.Container.validate(Container.java:1648)
    at java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:760)
    at java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:758)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:757)
    at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1908)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:698)
    at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$12(IdeEventQueue.kt:593)
    at com.intellij.openapi.application.impl.RwLockHolder.runWithoutImplicitRead(RwLockHolder.kt:105)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:593)
    at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:77)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:362)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:361)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:843)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:361)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:356)
    at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1021)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
    at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1021)
    at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:356)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:393)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
yzhengfei commented 1 month ago

duplicate #105