Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read access is allowed from inside read-action called from AbstractAsciiDocCodeBlock.isValidHost #1576

Closed
sentry-io bot opened this issue Mar 23, 2024 · 1 comment
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 23, 2024

Sentry Issue: ASCIIDOC-INTELLIJ-PLUGIN-6PN

com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details
Current thread: Thread[AWT-EventQueue-0,6,main] 1782929927 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
    at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:149)
    at com.intellij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:107)
    at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1012)
    at com.intellij.psi.impl.source.tree.TreeElement.assertReadAccessAllowed(TreeElement.java:421)
    at com.intellij.psi.impl.source.tree.CompositeElement.getChildrenAsPsiElements(CompositeElement.java:385)
    at com.intellij.psi.impl.source.tree.CompositePsiElement.getChildren(CompositePsiElement.java:45)
    at org.asciidoc.intellij.psi.AbstractAsciiDocCodeBlock.isValidHost(AbstractAsciiDocCodeBlock.java:110)
    at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.getInjectedPsiFiles(InjectedLanguageManagerImpl.java:504)
    at com.intellij.psi.impl.smartPointers.InjectedSelfElementInfo.getInjectedFileIn(InjectedSelfElementInfo.java:130)
    at com.intellij.psi.impl.smartPointers.InjectedSelfElementInfo.restoreFile(InjectedSelfElementInfo.java:162)
    at com.intellij.psi.impl.smartPointers.SmartPsiElementPointerImpl.getContainingFile(SmartPsiElementPointerImpl.java:106)
    at com.intellij.usageView.UsageInfo.getFile(UsageInfo.java:371)
    at com.intellij.usages.UsageInfo2UsageAdapter.getPsiFile(UsageInfo2UsageAdapter.java:404)
    at com.intellij.usages.UsageInfo2UsageAdapter.isReadOnly(UsageInfo2UsageAdapter.java:198)
    at com.intellij.usages.impl.UsageNode.isDataReadOnly(UsageNode.java:53)
    at com.intellij.usages.impl.Node.isReadOnly(Node.java:82)
...
(89 additional frame(s) were not displayed)
@ahus1 ahus1 changed the title RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see https://jb.... Read access is allowed from inside read-action called from AbstractAsciiDocCodeBlock.isValidHost Mar 23, 2024
@ahus1
Copy link
Contributor

ahus1 commented Mar 23, 2024

Added a workaround for the next release. Unclear how this is triggered via the UI, possibly during language injection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant