unloggedio / intellij-java-plugin

IntelliJ plugin with java language support
https://unlogged.io
Apache License 2.0
12 stars 1 forks source link

Read access warning thrown during Junit Test case save #30

Open TheAmg opened 2 months ago

TheAmg commented 2 months ago

Describe the bug

The following read access warning is thrown on Saving a Junit test case. The number dialog boxes and instances seen for this exception also is high (20+ dialogues)

Exception trace (partial)

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[#1201,ApplicationImpl pooled thread 25,4,main] 275129058 (EventQueue.isDispatchThread()=false) SystemEventQueueThread: Thread[#44,AWT-EventQueue-0,6,main] 414201863 at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:177) at com.intellij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:129) at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:915) at com.intellij.psi.impl.source.PsiFileImpl.assertReadAccessAllowed(PsiFileImpl.java:185) at com.intellij.psi.impl.source.PsiFileImpl.getStubTreeOrFileElement(PsiFileImpl.java:694) at com.intellij.psi.impl.source.PsiFileImpl.getGreenStubTree(PsiFileImpl.java:631) at com.i

Reproduction steps

To be Identified ...

Expected behavior

For this exception to not occur.

Additional context

No response