Indexing process should not rely on non-indexed file data
See original GitHub issueEnvironment
name | version |
---|---|
IDEA version | [Ultimate 2121.1] |
Luanalysis version | [1.3.0] |
OS | [OSX 10.15.7] |
What are the steps to reproduce this issue?
It happens after using plugin for 10-15 minutes.
What happens?
Exception reported - Indexing process should not rely on non-indexed file data
What were you expecting to happen?
…
Any logs, error output, etc?
java.lang.Throwable: Indexing process should not rely on non-indexed file data. Indexing file = /Users/Workspace/project-name/src/lua/external_libs/share/lua/5.1/socket.lua, file id = 1260496, queried file id = 1255909 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:161) at com.intellij.indexing.composite.CompositeInvertedIndexBase.getIndexedFileData(CompositeInvertedIndexBase.java:134) at com.intellij.psi.stubs.StubProcessingHelper.retrieveStubIdList(StubProcessingHelper.java:39) at com.intellij.psi.stubs.StubIndexImpl.lambda$processElements$4(StubIndexImpl.java:323) at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:322) at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:92) at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:80) at com.tang.intellij.lua.stubs.index.LuaClassMemberIndex.get(LuaClassMemberIndex.kt:38) at com.tang.intellij.lua.stubs.index.LuaClassMemberIndex$Companion.processNamespaceMember(LuaClassMemberIndex.kt:242) at com.tang.intellij.lua.psi.LuaPsiResolveUtilKt.multiResolve(LuaPsiResolveUtil.kt:117) at com.tang.intellij.lua.ty.ExpressionsKt$infer$5$1.invoke(Expressions.kt:380) at com.tang.intellij.lua.ty.ExpressionsKt$infer$5$1.invoke(Expressions.kt:379) at com.tang.intellij.lua.search.RecursionGuardsKt.withSearchGuard(RecursionGuards.kt:36) at com.tang.intellij.lua.ty.ExpressionsKt.infer$lambda-10(Expressions.kt:379) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:43) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68) at com.tang.intellij.lua.ext.UtilsKt.recursionGuard(utils.kt:23) at com.tang.intellij.lua.ext.UtilsKt.recursionGuard$default(utils.kt:22) at com.tang.intellij.lua.ty.ExpressionsKt.infer(Expressions.kt:365) at com.tang.intellij.lua.ty.ExpressionsKt.inferExprInner(Expressions.kt:111) at com.tang.intellij.lua.ty.ExpressionsKt.access$inferExprInner(Expressions.kt:1) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:59) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:50) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.ExpressionsKt.inferExpr(Expressions.kt:50) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:36) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:173) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.psi.LuaTypeGuessable.guessType(LuaTypeGuessable.java:31) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt$guessTypeAt$1.invoke(LuaPsiImplUtil.kt:267) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt$guessTypeAt$1.invoke(LuaPsiImplUtil.kt:266) at com.tang.intellij.lua.search.SearchContext.withIndex(SearchContext.kt:118) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt.guessTypeAt(LuaPsiImplUtil.kt:266) at com.tang.intellij.lua.psi.impl.LuaExprListImpl.guessTypeAt(LuaExprListImpl.java:46) at com.tang.intellij.lua.ty.DeclarationsKt$infer$1.invoke(Declarations.kt:144) at com.tang.intellij.lua.ty.DeclarationsKt$infer$1.invoke(Declarations.kt:143) at com.tang.intellij.lua.search.SearchContext.withIndex(SearchContext.kt:118) at com.tang.intellij.lua.ty.DeclarationsKt.infer(Declarations.kt:143) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:38) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:165) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.psi.LuaTypeGuessable.guessType(LuaTypeGuessable.java:31) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:55) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:50) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.ExpressionsKt.inferExpr(Expressions.kt:50) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:36) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:165) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.psi.LuaTypeGuessable.guessType(LuaTypeGuessable.java:31) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt.guessParentType(LuaPsiImplUtil.kt:275) at com.tang.intellij.lua.psi.impl.LuaIndexExprImpl.guessParentType(LuaIndexExprImpl.java:135) at com.tang.intellij.lua.ty.ExpressionsKt.infer$lambda-14(Expressions.kt:480) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:43) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68) at com.tang.intellij.lua.ext.UtilsKt.recursionGuard(utils.kt:23) at com.tang.intellij.lua.ext.UtilsKt.recursionGuard$default(utils.kt:22) at com.tang.intellij.lua.ty.ExpressionsKt.infer(Expressions.kt:470) at com.tang.intellij.lua.ty.ExpressionsKt.inferExprInner(Expressions.kt:113) at com.tang.intellij.lua.ty.ExpressionsKt.access$inferExprInner(Expressions.kt:1) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:59) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:50) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.ExpressionsKt.inferExpr(Expressions.kt:50) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:36) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:173) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.ty.DeclarationsKt.infer(Declarations.kt:30) at com.tang.intellij.lua.ty.ExpressionsKt$infer$ty$1.invoke(Expressions.kt:334) at com.tang.intellij.lua.ty.ExpressionsKt$infer$ty$1.invoke(Expressions.kt:333) at com.tang.intellij.lua.search.SearchContext.withIndex(SearchContext.kt:118) at com.tang.intellij.lua.search.SearchContext.withIndex$default(SearchContext.kt:113) at com.tang.intellij.lua.ty.ExpressionsKt.infer(Expressions.kt:333) at com.tang.intellij.lua.ty.ExpressionsKt.inferExprInner(Expressions.kt:103) at com.tang.intellij.lua.ty.ExpressionsKt.access$inferExprInner(Expressions.kt:1) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:59) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:50) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.ExpressionsKt.inferExpr(Expressions.kt:50) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:36) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:165) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.psi.LuaTypeGuessable.guessType(LuaTypeGuessable.java:31) at com.tang.intellij.lua.psi.PsiExtensionKt.guessType(PsiExtension.kt:241) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt.guessReturnType(LuaPsiImplUtil.kt:668) at com.tang.intellij.lua.ty.DeclarationsKt$inferReturnTyInner$1$1.visitReturnStat(Declarations.kt:67) at com.tang.intellij.lua.psi.impl.LuaReturnStatImpl.accept(LuaReturnStatImpl.java:33) at com.tang.intellij.lua.psi.impl.LuaReturnStatImpl.accept(LuaReturnStatImpl.java:38) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.tang.intellij.lua.psi.LuaRecursiveVisitor.visitElement(LuaRecursiveVisitor.kt:23) at com.tang.intellij.lua.psi.LuaVisitor.visitPsiElement(LuaVisitor.java:298) at com.tang.intellij.lua.psi.LuaVisitor.visitDeclarationScope(LuaVisitor.java:270) at com.tang.intellij.lua.psi.LuaVisitor.visitBlock(LuaVisitor.java:42) at com.tang.intellij.lua.psi.impl.LuaBlockImpl.accept(LuaBlockImpl.java:21) at com.tang.intellij.lua.psi.impl.LuaBlockImpl.accept(LuaBlockImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.tang.intellij.lua.psi.LuaRecursiveVisitor.visitElement(LuaRecursiveVisitor.kt:23) at com.tang.intellij.lua.psi.LuaVisitor.visitPsiElement(LuaVisitor.java:298) at com.tang.intellij.lua.psi.LuaVisitor.visitIndentRange(LuaVisitor.java:282) at com.tang.intellij.lua.psi.LuaVisitor.visitFuncBody(LuaVisitor.java:114) at com.tang.intellij.lua.psi.impl.LuaFuncBodyImpl.accept(LuaFuncBodyImpl.java:32) at com.tang.intellij.lua.psi.impl.LuaFuncBodyImpl.accept(LuaFuncBodyImpl.java:37) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.tang.intellij.lua.ty.DeclarationsKt$inferReturnTyInner$1.invoke(Declarations.kt:61) at com.tang.intellij.lua.ty.DeclarationsKt$inferReturnTyInner$1.invoke(Declarations.kt:58) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.DeclarationsKt.inferReturnTyInner(Declarations.kt:58) at com.tang.intellij.lua.ty.DeclarationsKt.inferReturnTy(Declarations.kt:47) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt.guessReturnType(LuaPsiImplUtil.kt:377) at com.tang.intellij.lua.psi.impl.LuaClosureExprImpl.guessReturnType(LuaClosureExprImpl.java:57) at com.tang.intellij.lua.ty.TyPsiFunction$mainSignature$2$1$returnTy$returnTy$1.invoke(TyFunction.kt:422) at com.tang.intellij.lua.ty.TyPsiFunction$mainSignature$2$1$returnTy$returnTy$1.invoke(TyFunction.kt:422) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.TyPsiFunction$mainSignature$2$1.getReturnTy(TyFunction.kt:422) at com.tang.intellij.lua.ty.FunSignatureBase.substitute(TyFunction.kt:239) at com.tang.intellij.lua.ty.TySubstitutor.substitute(TySubstitutor.kt:289) at com.tang.intellij.lua.ty.TyFunction.substitute(TyFunction.kt:384) at com.tang.intellij.lua.ty.TyAliasSubstitutor$Companion.substitute(TySubstitutor.kt:334) at com.tang.intellij.lua.psi.PsiExtensionKt.shouldBe(PsiExtension.kt:149) at com.tang.intellij.lua.ty.DeclarationsKt.resolveParamType(Declarations.kt:359) at com.tang.intellij.lua.ty.DeclarationsKt.infer(Declarations.kt:105) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:37) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:165) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.psi.LuaTypeGuessable.guessType(LuaTypeGuessable.java:31) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:55) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:50) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.ExpressionsKt.inferExpr(Expressions.kt:50) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:36) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:165) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.psi.LuaTypeGuessable.guessType(LuaTypeGuessable.java:31) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt.guessParentType(LuaPsiImplUtil.kt:275) at com.tang.intellij.lua.psi.impl.LuaIndexExprImpl.guessParentType(LuaIndexExprImpl.java:135) at com.tang.intellij.lua.ty.ExpressionsKt.infer$lambda-14(Expressions.kt:480) at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111) at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:43) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68) at com.tang.intellij.lua.ext.UtilsKt.recursionGuard(utils.kt:23) at com.tang.intellij.lua.ext.UtilsKt.recursionGuard$default(utils.kt:22) at com.tang.intellij.lua.ty.ExpressionsKt.infer(Expressions.kt:470) at com.tang.intellij.lua.ty.ExpressionsKt.inferExprInner(Expressions.kt:113) at com.tang.intellij.lua.ty.ExpressionsKt.access$inferExprInner(Expressions.kt:1) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:59) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:50) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.ExpressionsKt.inferExpr(Expressions.kt:50) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:36) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:173) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:60) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.ty.DeclarationsKt.infer(Declarations.kt:30) at com.tang.intellij.lua.ty.ExpressionsKt$infer$ty$1.invoke(Expressions.kt:334) at com.tang.intellij.lua.ty.ExpressionsKt$infer$ty$1.invoke(Expressions.kt:333) at com.tang.intellij.lua.search.SearchContext.withIndex(SearchContext.kt:118) at com.tang.intellij.lua.search.SearchContext.withIndex$default(SearchContext.kt:113) at com.tang.intellij.lua.ty.ExpressionsKt.infer(Expressions.kt:333) at com.tang.intellij.lua.ty.ExpressionsKt.inferExprInner(Expressions.kt:103) at com.tang.intellij.lua.ty.ExpressionsKt.access$inferExprInner(Expressions.kt:1) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:59) at com.tang.intellij.lua.ty.ExpressionsKt$inferExpr$ty$1.invoke(Expressions.kt:50) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.ExpressionsKt.inferExpr(Expressions.kt:50) at com.tang.intellij.lua.ty.DeclarationsKt.inferInner(Declarations.kt:36) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:27) at com.tang.intellij.lua.ty.LuaTypeInfer$inferType$1.invoke(LuaTypeInfer.kt:26) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.LuaTypeInfer.inferType(LuaTypeInfer.kt:26) at com.tang.intellij.lua.ext.ILuaTypeInfer$Companion.infer(ILuaTypeInfer.kt:32) at com.tang.intellij.lua.search.SearchContext.inferAndCache(SearchContext.kt:165) at com.tang.intellij.lua.search.SearchContext.access$inferAndCache(SearchContext.kt:33) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion$infer$2.invoke(SearchContext.kt:55) at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:68) at com.tang.intellij.lua.search.SearchContext$Companion.infer(SearchContext.kt:55) at com.tang.intellij.lua.psi.LuaTypeGuessable.guessType(LuaTypeGuessable.java:31) at com.tang.intellij.lua.psi.PsiExtensionKt.guessType(PsiExtension.kt:241) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt.guessReturnType(LuaPsiImplUtil.kt:668) at com.tang.intellij.lua.ty.DeclarationsKt$inferReturnTyInner$1$1.visitReturnStat(Declarations.kt:67) at com.tang.intellij.lua.psi.impl.LuaReturnStatImpl.accept(LuaReturnStatImpl.java:33) at com.tang.intellij.lua.psi.impl.LuaReturnStatImpl.accept(LuaReturnStatImpl.java:38) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.tang.intellij.lua.psi.LuaRecursiveVisitor.visitElement(LuaRecursiveVisitor.kt:23) at com.tang.intellij.lua.psi.LuaVisitor.visitPsiElement(LuaVisitor.java:298) at com.tang.intellij.lua.psi.LuaVisitor.visitDeclarationScope(LuaVisitor.java:270) at com.tang.intellij.lua.psi.LuaVisitor.visitBlock(LuaVisitor.java:42) at com.tang.intellij.lua.psi.impl.LuaBlockImpl.accept(LuaBlockImpl.java:21) at com.tang.intellij.lua.psi.impl.LuaBlockImpl.accept(LuaBlockImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.tang.intellij.lua.psi.LuaRecursiveVisitor.visitElement(LuaRecursiveVisitor.kt:23) at com.tang.intellij.lua.psi.LuaVisitor.visitPsiElement(LuaVisitor.java:298) at com.tang.intellij.lua.psi.LuaVisitor.visitIndentRange(LuaVisitor.java:282) at com.tang.intellij.lua.psi.LuaVisitor.visitFuncBody(LuaVisitor.java:114) at com.tang.intellij.lua.psi.impl.LuaFuncBodyImpl.accept(LuaFuncBodyImpl.java:32) at com.tang.intellij.lua.psi.impl.LuaFuncBodyImpl.accept(LuaFuncBodyImpl.java:37) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.tang.intellij.lua.ty.DeclarationsKt$inferReturnTyInner$1.invoke(Declarations.kt:61) at com.tang.intellij.lua.ty.DeclarationsKt$inferReturnTyInner$1.invoke(Declarations.kt:58) at com.tang.intellij.lua.search.RecursionGuardsKt.withRecursionGuard(RecursionGuards.kt:52) at com.tang.intellij.lua.ty.DeclarationsKt.inferReturnTyInner(Declarations.kt:58) at com.tang.intellij.lua.ty.DeclarationsKt.inferReturnTy(Declarations.kt:47) at com.tang.intellij.lua.psi.LuaPsiImplUtilKt.guessReturnType(LuaPsiImplUtil.kt:377) at com.tang.intellij.lua.psi.impl.LuaClosureExprImpl.guessReturnType(LuaClosureExprImpl.java:57) at com.tang.intellij.lua.ty.TyPsiFunction$mainSignature$2$1$returnTy$returnTy$1.invoke(TyFunction.kt:422) at com.tang.intellij.lua.ty.TyPsiFunction$mainSignature$2$1$returnTy$returnTy$1.invoke(TyFunction.kt:422) at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129) at com.tang.intellij.lua.ty.TyPsiFunction$mainSignature$2$1.getReturnTy(TyFunction.kt:422) at com.tang.intellij.lua.ty.FunSignature$Companion.serialize(TyFunction.kt:290) at com.tang.intellij.lua.ty.TyFunctionSerializer.serializeTy(TyFunction.kt:471) at com.tang.intellij.lua.ty.TyFunctionSerializer.serializeTy(TyFunction.kt:463) at com.tang.intellij.lua.ty.TySerializer.serialize(TySerializer.kt:31) at com.tang.intellij.lua.ty.Ty$Companion.serialize(Ty.kt:694) at com.tang.intellij.lua.stubs.StubStreamExtKt.writeTyNullable(StubStreamExt.kt:90) at com.tang.intellij.lua.stubs.LuaTableFieldType.serialize(LuaTableFieldStub.kt:93) at com.tang.intellij.lua.stubs.LuaTableFieldType.serialize(LuaTableFieldStub.kt:34) at com.intellij.psi.stubs.StubTreeSerializerBase.serializeStub(StubTreeSerializerBase.java:251) at com.intellij.psi.stubs.StubTreeSerializerBase.serializeStubList(StubTreeSerializerBase.java:239) at com.intellij.psi.stubs.StubTreeSerializerBase.serializeRoot(StubTreeSerializerBase.java:166) at com.intellij.psi.stubs.StubTreeSerializerBase.serialize(StubTreeSerializerBase.java:78) at com.intellij.psi.stubs.SerializationManagerImpl.serialize(SerializationManagerImpl.java:176) at com.intellij.psi.stubs.SerializedStubTree.serializeStub(SerializedStubTree.java:56) at com.intellij.psi.stubs.StubUpdatingIndex$1.computeValue(StubUpdatingIndex.java:179) at com.intellij.psi.stubs.StubUpdatingIndex$1.computeValue(StubUpdatingIndex.java:142) at com.intellij.psi.stubs.StubUpdatingIndex$1.computeValue(StubUpdatingIndex.java:109) at com.intellij.util.indexing.SingleEntryIndexer.map(SingleEntryIndexer.java:30) at com.intellij.util.indexing.SingleEntryIndexer.map(SingleEntryIndexer.java:19) at com.intellij.util.indexing.impl.MapReduceIndex.mapByIndexer(MapReduceIndex.java:315) at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:305) at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.mapInput(VfsAwareMapReduceIndex.java:168) at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.mapInput(VfsAwareMapReduceIndex.java:39) at com.intellij.util.indexing.impl.MapReduceIndex.mapInputAndPrepareUpdate(MapReduceIndex.java:255) at com.intellij.psi.stubs.StubUpdatingIndexStorage.mapInputAndPrepareUpdate(StubUpdatingIndexStorage.java:60) at com.intellij.psi.stubs.StubUpdatingIndexStorage.mapInputAndPrepareUpdate(StubUpdatingIndexStorage.java:19) at com.intellij.indexing.composite.CompositeInvertedIndexBase.updateBaseIndex(CompositeInvertedIndexBase.java:232) at com.intellij.indexing.composite.CompositeInvertedIndexBase.mapInputAndPrepareUpdate(CompositeInvertedIndexBase.java:55) at com.intellij.indexing.composite.CompositeInvertedIndexBase.mapInputAndPrepareUpdate(CompositeInvertedIndexBase.java:26) at com.intellij.util.indexing.FileBasedIndexImpl.updateSingleIndex(FileBasedIndexImpl.java:1492) at com.intellij.util.indexing.FileBasedIndexImpl.lambda$doIndexFileContent$23(FileBasedIndexImpl.java:1374) at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:577) at com.intellij.util.indexing.FileBasedIndexImpl.doIndexFileContent(FileBasedIndexImpl.java:1344) at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1298) at com.intellij.util.indexing.FileBasedIndexImpl.processRefreshedFile(FileBasedIndexImpl.java:1263) at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1583) at com.intellij.util.indexing.FileBasedIndexImpl$VirtualFileUpdateTask.doProcess(FileBasedIndexImpl.java:1580) at com.intellij.util.indexing.UpdateTask.process(UpdateTask.java:63) at com.intellij.util.indexing.UpdateTask.processAll(UpdateTask.java:32) at com.intellij.util.indexing.FileBasedIndexImpl.forceUpdate(FileBasedIndexImpl.java:1602) at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:750) at com.intellij.psi.stubs.StubIndexImpl.processAllKeys(StubIndexImpl.java:426) at com.intellij.psi.stubs.StubIndex.processAllKeys(StubIndex.java:66) at com.intellij.psi.stubs.StubIndexImpl.getAllKeys(StubIndexImpl.java:414) at com.intellij.lang.javascript.psi.stubs.JSLazyIndexedPackagesIndex.getPackagesToIndex(JSLazyIndexedPackagesIndex.java:75) at com.intellij.javascript.nodejs.library.NodeModulesIndexingRulesProvider$updateRequest$1$1.call(NodeModulesIndexingRulesProvider.kt:69) at com.intellij.javascript.nodejs.library.NodeModulesIndexingRulesProvider$updateRequest$1$1.call(NodeModulesIndexingRulesProvider.kt:20) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:521) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$3(NonBlockingReadActionImpl.java:468) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1096) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:79) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:157) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:119) at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:57) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:688) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:634) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:64) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165) at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:57) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:116) at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:79) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:486) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:408) 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:829)
Any other comments?
…
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
I’ve been able to reproduce this, just jotting down my own stack trace:
This still seems very odd. Unfortunately, the Jetbrains Ultimate JS plugin is not open source so I’ve no idea why it’s trying to access the index when it’s not ready but yet “Dumb Mode” is not enabled. It’s very peculiar.
I have an idea about how I can work around it, but it’s a pain. Every single stub serialize method is going to need to explictly mark the context as “dumb”, because Jetbrains aren’t doing so.
Done. I’ve also deleted the comment revision history. The previous path should be properly scrubbed now.