Skip to content

Read access warning thrown during Junit Test case save #30

@TheAmg

Description

@TheAmg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions