GhcModi component accessed outside of read context
Opened this issue · 0 comments
carymrobbins commented
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:162)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1087)
at com.intellij.psi.impl.file.impl.FileManagerImpl.evaluateValidity(FileManagerImpl.java:592)
at com.intellij.psi.impl.file.impl.FileManagerImpl.evaluateValidity(FileManagerImpl.java:588)
at com.intellij.psi.impl.source.PsiFileImpl.isValid(PsiFileImpl.java:162)
at com.intellij.openapi.module.ModuleUtilCore.findModuleForPsiElement(ModuleUtilCore.java:79)
at com.haskforce.highlighting.annotation.external.GhcModi.get(GhcModi.java:48)
at com.haskforce.codeInsight.GhcModiModuleSymbolsProvider$.create(ModuleSymbolsProviderFactory.scala:28)
at com.haskforce.codeInsight.ModuleSymbolsProviderFactory$.get(ModuleSymbolsProviderFactory.scala:9)
at com.haskforce.codeInsight.HaskellCompletionCacheLoader.updateModuleSymbols(HaskellCompletionCacheLoader.scala:91)
at com.haskforce.codeInsight.HaskellCompletionCacheLoader.$anonfun$updateCache$1(HaskellCompletionCacheLoader.scala:77)
at com.haskforce.utils.SAMUtils$$anon$4.run(SAMUtils.scala:14)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)