-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
If the PMD tool window hasn't been opened at some point, the annotator blows up with the below exception. It happens because PMDResultCollector is trying to perform UI operations, but the annotator doesn't run on the UI thread.
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Access is allowed from Event Dispatch Thread (EDT) only; 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
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - Current thread: Thread[#2497,DefaultDispatcher-worker-33,4,main] 925563492 (EventQueue.isDispatchThread()=false)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - SystemEventQueueThread: Thread[#52,AWT-EventQueue-0,10,main] 1094255930
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:257)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.util.concurrency.ThreadingAssertions.throwThreadAccessException(ThreadingAssertions.java:248)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.util.concurrency.ThreadingAssertions.assertEventDispatchThread(ThreadingAssertions.java:89)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1186)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:205)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:183)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.ui.EditorTextField.lambda$setText$5(EditorTextField.java:334)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.application.impl.AppImplKt$rethrowCheckedExceptions$2.invoke(appImpl.kt:106)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.doRunWriteIntentReadAction(NestedLocksThreadingSupport.kt:666)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runPreventiveWriteIntentReadAction(NestedLocksThreadingSupport.kt:640)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteIntentReadAction(NestedLocksThreadingSupport.kt:633)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:1166)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.application.WriteIntentReadAction.compute(WriteIntentReadAction.java:55)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.ui.EditorTextField.setText(EditorTextField.java:333)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.plugins.bodhi.pmd.PMDResultPanel.configureExampleField(PMDResultPanel.java:265)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.plugins.bodhi.pmd.PMDResultPanel.buildMainSplit(PMDResultPanel.java:223)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.plugins.bodhi.pmd.PMDResultPanel.<init>(PMDResultPanel.java:122)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.plugins.bodhi.pmd.PMDProjectComponent.getResultPanel(PMDProjectComponent.java:160)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.plugins.bodhi.pmd.core.PMDResultCollector.runPMDAndGetResults(PMDResultCollector.java:94)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.plugins.bodhi.pmd.annotator.PMDExternalAnnotator.doAnnotate(PMDExternalAnnotator.java:72)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.plugins.bodhi.pmd.annotator.PMDExternalAnnotator.doAnnotate(PMDExternalAnnotator.java:34)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.ExternalToolPass.lambda$doAnnotate$1(ExternalToolPass.java:244)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.AnnotationSessionImpl.computeWithSession(AnnotationSessionImpl.java:87)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.AnnotationSessionImpl.computeWithSession(AnnotationSessionImpl.java:79)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:242)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:236)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$3(ExternalToolPass.java:194)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.ExternalToolPass.runChangeAware(ExternalToolPass.java:309)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$5(ExternalToolPass.java:194)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.progress.util.BackgroundTaskUtil.lambda$runUnderDisposeAwareIndicator$15(BackgroundTaskUtil.java:371)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:229)
2025-10-03 11:16:29,069 [7556796] INFO - STDERR - at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:44)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:228)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:681)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:756)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:712)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:680)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:78)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:209)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:366)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:192)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.ui.update.Update.execute$suspendImpl(Update.kt:61)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.ui.update.Update.execute(Update.kt)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.ui.update.MergingUpdateQueue.executeUpdates$suspendImpl(MergingUpdateQueue.kt:398)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.ui.update.MergingUpdateQueue.executeUpdates(MergingUpdateQueue.kt)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.ui.update.MergingUpdateQueue$restart$1.invokeSuspend(MergingUpdateQueue.kt:359)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.ui.update.MergingUpdateQueue$restart$1.invoke(MergingUpdateQueue.kt)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.ui.update.MergingUpdateQueue$restart$1.invoke(MergingUpdateQueue.kt)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.SingleAlarm$scheduleTask$1$1$1$2.invokeSuspend(SingleAlarm.kt:405)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.SingleAlarm$scheduleTask$1$1$1$2.invoke(SingleAlarm.kt)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.SingleAlarm$scheduleTask$1$1$1$2.invoke(SingleAlarm.kt)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:44)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:157)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at com.intellij.util.SingleAlarm$scheduleTask$1$1.invokeSuspend(SingleAlarm.kt:403)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1189)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
2025-10-03 11:16:29,074 [7556801] INFO - STDERR - at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
Metadata
Metadata
Assignees
Labels
No labels