Plugin crashes when searching for usage with PHPStorm 2020.3
mlutonsky opened this issue · 0 comments
mlutonsky commented
Just after invoking "Find usage" action (i.e. usage of method) exception always occurs:
Details: Current thread: Thread[ApplicationImpl pooled thread 299,4,Idea Thread Group] 9598186
; dispatch thread: false; isDispatchThread(): false
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 1412154864
java.lang.Throwable: Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:177)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1033)
at com.intellij.psi.impl.source.PsiFileImpl.assertReadAccessAllowed(PsiFileImpl.java:185)
at com.intellij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:617)
at com.intellij.psi.impl.source.PsiFileImpl.getGreenStubTree(PsiFileImpl.java:951)
at com.intellij.psi.impl.source.SpineRef.getGreenStub(SpineRef.java:39)
at com.intellij.extapi.psi.StubBasedPsiElementBase.getGreenStub(StubBasedPsiElementBase.java:361)
at com.jetbrains.php.lang.psi.elements.impl.PhpNamedElementImpl.getName(PhpNamedElementImpl.java:69)
at cz.juzna.intellij.nette.reference.ComponentReferenceSearch.processQuery(ComponentReferenceSearch.java:24)
at cz.juzna.intellij.nette.reference.ComponentReferenceSearch.processQuery(ComponentReferenceSearch.java:16)
at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:77)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:28)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:99)
at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:116)
at com.intellij.util.MergeQuery.processResults(MergeQuery.java:22)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:99)
at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:116)
at com.intellij.util.UniqueResultsQuery.processResults(UniqueResultsQuery.java:39)
at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:99)
at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:91)
at com.jetbrains.php.lang.findUsages.PhpFindUsagesHandler.processElementUsages(PhpFindUsagesHandler.java:91)
at com.intellij.find.findUsages.FindUsagesManager.lambda$createUsageSearcher$10(FindUsagesManager.java:394)
at com.intellij.find.findUsages.FindUsagesManager$1.run(FindUsagesManager.java:317)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:472)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
PhpStorm 2020.3
Build #PS-203.5981.175, built on December 2, 2020
plugin version v0.4.4