sylvanaar / IDLua

Lua For IntelliJ IDEA
Apache License 2.0
58 stars 19 forks source link

IndexNotReadyException in PhpStorm 2020.1 #18

Open HypeMC opened 4 years ago

HypeMC commented 4 years ago

I'm getting the following exception after installing the plugin in PhpStorm 2020.1. It appears as soon as PhpStorm opens.

com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
    at com.intellij.openapi.project.IndexNotReadyException.create(IndexNotReadyException.java:81)
    at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:715)
    at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:665)
    at com.intellij.psi.stubs.StubIndexImpl.getContainingIds(StubIndexImpl.java:540)
    at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:396)
    at com.intellij.psi.stubs.StubIndex.processElements(StubIndex.java:51)
    at com.intellij.psi.stubs.StubIndex.get(StubIndex.java:41)
    at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:22)
    at com.sylvanaar.idea.Lua.lang.psi.stubs.index.LuaGlobalDeclarationIndex.get(LuaGlobalDeclarationIndex.java:47)
    at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver._resolve(LuaResolver.java:62)
    at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver.resolve(LuaResolver.java:24)
    at com.sylvanaar.idea.Lua.lang.psi.resolve.LuaResolver.resolve(LuaResolver.java:18)
    at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolve$1(ResolveCache.java:152)
    at com.intellij.openapi.util.Computable.get(Computable.java:17)
    at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$loggingResolver$3(ResolveCache.java:225)
    at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:113)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:72)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:202)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:152)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:167)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:160)
    at com.sylvanaar.idea.Lua.lang.psi.impl.symbols.LuaReferenceElementImpl.resolve(LuaReferenceElementImpl.java:128)
    at com.sylvanaar.idea.Lua.lang.psi.impl.symbols.LuaReferenceElementImpl.getLuaType(LuaReferenceElementImpl.java:60)
    at com.sylvanaar.idea.Lua.lang.psi.impl.expressions.LuaFunctionCallExpressionImpl.getLuaType(LuaFunctionCallExpressionImpl.java:90)
    at com.sylvanaar.idea.Lua.lang.psi.util.LuaAssignmentUtil.transferTypes(LuaAssignmentUtil.java:90)
    at com.sylvanaar.idea.Lua.lang.psi.impl.statements.LuaLocalDefinitionStatementImpl.inferTypes(LuaLocalDefinitionStatementImpl.java:151)
    at com.sylvanaar.idea.Lua.lang.psi.LuaPsiManager$InferenceQueue$1.run(LuaPsiManager.java:291)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:869)
    at com.sylvanaar.idea.Lua.lang.psi.LuaPsiManager$InferenceQueue.consume(LuaPsiManager.java:276)
    at com.sylvanaar.idea.Lua.lang.psi.LuaPsiManager$InferenceQueue.consume(LuaPsiManager.java:255)
    at com.intellij.util.concurrency.QueueProcessor.lambda$null$0(QueueProcessor.java:80)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
    at com.intellij.util.concurrency.QueueProcessor.lambda$wrappingProcessor$1(QueueProcessor.java:80)
    at com.intellij.util.concurrency.QueueProcessor.lambda$null$3(QueueProcessor.java:213)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:232)
    at com.intellij.util.concurrency.QueueProcessor.lambda$startProcessing$4(QueueProcessor.java:213)
    at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
    at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:255)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    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.lang.Thread.run(Thread.java:834)
java.lang.Throwable
    at com.intellij.openapi.project.DumbServiceImpl.queueAsynchronousTask(DumbServiceImpl.java:324)
    at com.intellij.openapi.project.DumbServiceImpl.queueTask(DumbServiceImpl.java:300)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.synchronizeRoots(ProjectRootManagerComponent.java:315)
    at com.intellij.openapi.roots.impl.ProjectRootManagerComponent.fireRootsChangedEvent(ProjectRootManagerComponent.java:214)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.fireRootsChanged(ProjectRootManagerImpl.java:426)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.access$200(ProjectRootManagerImpl.java:38)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.java:97)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.makeRootsChange(ProjectRootManagerImpl.java:369)
    at com.jetbrains.php.config.library.PhpAdditionalLibraryManager.lambda$null$5(PhpAdditionalLibraryManager.java:191)
    at com.intellij.openapi.application.WriteAction.run(WriteAction.java:102)
    at com.jetbrains.php.config.library.PhpAdditionalLibraryManager.lambda$fireLibraryChanged$6(PhpAdditionalLibraryManager.java:191)
    at com.intellij.openapi.project.DumbServiceImpl.unsafeRunWhenSmart(DumbServiceImpl.java:283)
    at com.intellij.openapi.project.DumbServiceImpl.lambda$runWhenSmart$0(DumbServiceImpl.java:271)
    at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runWhenProjectIsInitialized$9(StartupManagerImpl.java:479)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
    at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
    at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)