We've got the exception from one of our users. Please keep in mind that indices can be accessed only from a read action. com.intellij.openapi.application.Application.runReadAction() is here for your convenience.
Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())
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:145)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1073)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:704)
at com.intellij.util.indexing.FileBasedIndexImpl.processExceptions(FileBasedIndexImpl.java:883)
at com.intellij.util.indexing.FileBasedIndexImpl.processValueIterator(FileBasedIndexImpl.java:969)
at com.intellij.util.indexing.FileBasedIndexImpl.processValuesInScope(FileBasedIndexImpl.java:940)
at com.intellij.util.indexing.FileBasedIndexImpl.getContainingFiles(FileBasedIndexImpl.java:802)
at com.jetbrains.php.PhpIndexImpl.filterKeys(PhpIndexImpl.java:831)
at com.jetbrains.php.PhpIndexImpl.getAllClassNames(PhpIndexImpl.java:226)
at com.magicento2.helpers.PsiPhpHelper.getAllClassNamesFqn(PsiPhpHelper.java:1090)
at com.magicento2.helpers.PsiPhpHelper$3.call(PsiPhpHelper.java:1184)
at com.magicento2.helpers.JavaHelper$2.run(JavaHelper.java:132)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
We've got the exception from one of our users. Please keep in mind that indices can be accessed only from a read action.
com.intellij.openapi.application.Application.runReadAction()
is here for your convenience.Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application.runReadAction())