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

java.lang.Throwable: Read access is allowed from inside read-action (or EDT) only (see com.intellij.openapi.application.Application.runReadAction()) #36

Open
lprakashv opened this issue Apr 12, 2023 · 0 comments

Comments

@lprakashv
Copy link

Bug description

Please include steps to reproduce (like go to.../click on... etc.) + expected and actual behaviour.

For non-trivial issues, we would also appreciate if you included the following details (if not filled in automatically):

Running environment

  • Graph Buddy plugin version - 1.0.1
  • IDE - IntelliJ IDEA 2023.1
  • Operating system - Mac OS X 13.3.1

IDEA - Stack trace

java.lang.Throwable: Read access is allowed from inside read-action (or EDT) only (see com.intellij.openapi.application.Application.runReadAction())
Current thread: Thread[DefaultDispatcher-worker-4,5,main] 1538258006 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 609358316
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1004)
at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.ensureIsUpToDate(WorkspaceFileIndexDataImpl.kt:127)
at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.getFileInfo(WorkspaceFileIndexDataImpl.kt:70)
at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.getFileInfo(WorkspaceFileIndexImpl.kt:220)
at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.findFileSetWithCustomData(WorkspaceFileIndexImpl.kt:205)
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getContentRootForFile(ProjectFileIndexImpl.java:219)
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getContentRootForFile(ProjectFileIndexImpl.java:213)
at com.virtuslab.semanticgraphs.intellijplugin.GraphBuddyStartupActivity.excludeSemanticGraphsDirectory$$anonfun$1(GraphBuddyStartupActivity.scala:21)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at scala.Option.foreach(Option.scala:437)
at com.virtuslab.semanticgraphs.intellijplugin.GraphBuddyStartupActivity.excludeSemanticGraphsDirectory(GraphBuddyStartupActivity.scala:28)
at com.virtuslab.semanticgraphs.intellijplugin.GraphBuddyStartupActivity.runActivity$$anonfun$2(GraphBuddyStartupActivity.scala:34)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at scala.Option.foreach(Option.scala:437)
at com.virtuslab.semanticgraphs.intellijplugin.GraphBuddyStartupActivity.runActivity(GraphBuddyStartupActivity.scala:47)
at com.intellij.ide.startup.impl.StartupManagerImplKt.runBackgroundPostStartupActivities(StartupManagerImpl.kt:472)
at com.intellij.ide.startup.impl.StartupManagerImplKt.access$runBackgroundPostStartupActivities(StartupManagerImpl.kt:1)
at com.intellij.ide.startup.impl.StartupManagerImplKt$scheduleBackgroundPostStartupActivities$1.invokeSuspend(StartupManagerImpl.kt:458)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

IDEA - additional info

N/A

Screenshots

If applicable, add screenshots (or screen recordings, see Peek on Linux)
to help explain your problem.

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