stack 2
Closed this issue · 0 comments
java.lang.Throwable: Read access is allowed from inside read-action (or EDT) only (see com.intellij.openapi.application.Application.runReadAction())
Current thread: Thread[ApplicationImpl pooled thread 59,4,main] 1068159223 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1535303042
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1004)
at com.intellij.psi.impl.source.tree.TreeElement.assertReadAccessAllowed(TreeElement.java:424)
at com.intellij.psi.impl.source.tree.CompositeElement.textToCharArray(CompositeElement.java:224)
at com.intellij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:212)
at com.intellij.extapi.psi.ASTDelegatePsiElement.getText(ASTDelegatePsiElement.java:144)
at com.github.simiacryptus.aicoder.util.psi.PsiClassContext$init$1.visit(PsiClassContext.kt:26)
at com.github.simiacryptus.aicoder.util.psi.PsiVisitorBase$build$1.visitElement(PsiVisitorBase.kt:13)
at org.jetbrains.kotlin.psi.KtElementImplStub.accept(KtElementImplStub.java:52)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:185)
at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:765)
at com.github.simiacryptus.aicoder.util.psi.PsiClassContext$init$1.visit(PsiClassContext.kt:90)
at com.github.simiacryptus.aicoder.util.psi.PsiVisitorBase$build$1.visitElement(PsiVisitorBase.kt:13)
at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:51)
at org.jetbrains.kotlin.psi.KtFile.accept(KtFile.kt:244)
at com.github.simiacryptus.aicoder.util.psi.PsiVisitorBase.build(PsiVisitorBase.kt:17)
at com.github.simiacryptus.aicoder.util.psi.PsiClassContext.init(PsiClassContext.kt:112)
at com.github.simiacryptus.aicoder.util.psi.PsiClassContext$Companion.getContext(PsiClassContext.kt:142)
at com.github.simiacryptus.aicoder.util.psi.PsiClassContext.getContext(PsiClassContext.kt)
at com.github.simiacryptus.aicoder.util.psi.PsiClassContext$getContext.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:166)
at com.github.simiacryptus.aicoder.actions.code.InsertImplementationAction.processSelection(InsertImplementationAction.groovy:88)
at com.github.simiacryptus.aicoder.actions.code.InsertImplementationAction.processSelection(InsertImplementationAction.groovy)
at com.github.simiacryptus.aicoder.actions.SelectionAction$processSelection$1.invoke(SelectionAction.kt:192)
at com.github.simiacryptus.aicoder.actions.SelectionAction$processSelection$1.invoke(SelectionAction.kt:191)
at com.github.simiacryptus.aicoder.util.UITools$BgTask.run(UITools.kt:862)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:429)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:480)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)