-
Notifications
You must be signed in to change notification settings - Fork 241
Open
Description
<!--https://github.com/gejun123456/MyBatisCodeHelper-Pro/issues/new paste current content to github issues-->
重现步骤(Repeat steps)
有时使用idea格式化文档功能,插件会出现以下异常
当前使用版本(Current Version)
IntelliJ IDEA 2026.1 EAP • Notes plugin com.ccnode.codegenerator.MyBatisCodeHelperPro 3.5.2+2321
Exception
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); If you access or modify model on EDT consider wrapping your code in WriteIntentReadAction or ReadAction; see https://jb.gg/ij-platform-threading for details
Current thread: Thread[#37,AWT-EventQueue-0,10,main] 901536469 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:270)
at com.intellij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:159)
at com.intellij.psi.impl.file.impl.FileManagerImpl.findFile(FileManagerImpl.java:549)
at com.intellij.psi.impl.PsiManagerImpl.findFile(PsiManagerImpl.java:209)
at com.intellij.openapi.fileEditor.impl.text.TextEditorPsiDataRuleKt.getPsiFile(TextEditorPsiDataRule.kt:198)
at com.intellij.openapi.fileEditor.impl.text.TextEditorPsiDataRuleKt.access$getPsiFile(TextEditorPsiDataRule.kt:1)
at com.intellij.openapi.fileEditor.impl.text.TextEditorPsiDataRule.uiDataSnapshot$lambda$1(TextEditorPsiDataRule.kt:61)
at com.intellij.openapi.actionSystem.impl.MyLazy.getData(PreCachedDataContext.kt:636)
at com.intellij.ide.impl.DataManagerImpl.getDataFromProviderInner(DataManagerImpl.kt:195)
at com.intellij.ide.impl.DataManagerImpl.getDataFromProviderInner(DataManagerImpl.kt:188)
at com.intellij.ide.impl.DataManagerImpl.getDataFromProviderInner(DataManagerImpl.kt:183)
at com.intellij.ide.impl.DataManagerImpl.getDataRule$lambda$0(DataManagerImpl.kt:146)
at com.intellij.ide.impl.DataManagerImpl.getDataFromRuleInner(DataManagerImpl.kt:99)
at com.intellij.ide.impl.DataManagerImpl.getDataFromRules(DataManagerImpl.kt:71)
at com.intellij.openapi.actionSystem.impl.PreCachedDataContext.getDataInner(PreCachedDataContext.kt:259)
at com.intellij.openapi.actionSystem.impl.PreCachedDataContext.getData(PreCachedDataContext.kt:217)
at com.intellij.openapi.actionSystem.DataContext.getData(DataContext.java:67)
at com.ccnode.codegenerator.view.D$1.beforeActionPerformed(SourceFile:57)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:831)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:775)
at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:596)
at com.intellij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:193)
at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:544)
at jdk.proxy2/jdk.proxy2.$Proxy288.beforeActionPerformed(Unknown Source)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.fireBeforeActionPerformed(ActionManagerImpl.kt:1127)
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.performWithActionCallbacks(ActionManagerImpl.kt:1193)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner(IdeKeyEventDispatcher.kt:863)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.access$doPerformActionInner(IdeKeyEventDispatcher.kt:1)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.kt:586)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.kt:542)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.kt:481)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.kt:474)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.kt:335)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.kt:611)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:564)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0$0(IdeEventQueue.kt:381)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:928)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0(IdeEventQueue.kt:380)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$0(IdeEventQueue.kt:1110)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1110)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0(IdeEventQueue.kt:375)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:415)
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels