question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Indexing process should not rely on non-indexed file data

See original GitHub issue

Environment

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:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Benjamin-Dobellcommented, Jul 28, 2021

I’ve been able to reproduce this, just jotting down my own stack trace:

java.lang.Throwable: Indexing process should not rely on non-indexed file data.
Indexing file = /Users/ben/Development/tts/prototype_inertia/lib/ge_tts/TableUtils.ttslua, file id = 339024, queried file id = 844480
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:161)
	at com.intellij.indexing.composite.CompositeInvertedIndexBase.getIndexedFileData(CompositeInvertedIndexBase.java:134)
	at com.intellij.util.indexing.FileBasedIndexEx.lambda$getFileData$3(FileBasedIndexEx.java:166)
	at com.intellij.util.indexing.FileBasedIndexEx.lambda$processExceptions$5(FileBasedIndexEx.java:241)
	at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:234)
	at com.intellij.util.indexing.FileBasedIndexEx.lambda$processExceptions$6(FileBasedIndexEx.java:241)
	at com.intellij.util.indexing.diagnostic.IndexAccessValidator.validate(IndexAccessValidator.java:42)
	at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:241)
	at com.intellij.util.indexing.FileBasedIndexEx.getFileData(FileBasedIndexEx.java:159)
	at com.intellij.util.indexing.FileBasedIndexImpl.getFileData(FileBasedIndexImpl.java:1090)
	at com.intellij.util.indexing.FileBasedIndexEx.getSingleEntryIndexData(FileBasedIndexEx.java:180)
	at com.intellij.psi.stubs.StubTreeLoaderImpl.readFromVFile(StubTreeLoaderImpl.java:98)
	at com.intellij.psi.stubs.StubTreeLoaderImpl.readOrBuild(StubTreeLoaderImpl.java:41)
	at com.intellij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:629)
	at com.intellij.psi.impl.source.PsiFileImpl.getGreenStubTree(PsiFileImpl.java:952)
	at com.intellij.psi.impl.source.PsiFileImpl.getStubbedSpine(PsiFileImpl.java:250)
	at com.intellij.psi.stubs.StubProcessingHelperBase.lambda$getAllSpines$0(StubProcessingHelperBase.java:84)
	at com.intellij.util.containers.ContainerUtil.map(ContainerUtil.java:1894)
	at com.intellij.psi.stubs.StubProcessingHelperBase.getAllSpines(StubProcessingHelperBase.java:84)
	at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:64)
	at com.intellij.psi.stubs.StubIndexImpl.lambda$processElements$2(StubIndexImpl.java:284)
	at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:330)
	at com.intellij.psi.stubs.StubIndex.processElements(StubIndex.java:49)
	at com.intellij.psi.stubs.StubIndex.get(StubIndex.java:39)
	at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:22)
	at com.tang.intellij.lua.stubs.index.LuaClassIndex$Companion.process(LuaClassIndex.kt:60)
	at com.tang.intellij.lua.stubs.index.LuaClassIndex$Companion.find(LuaClassIndex.kt:52)
	at com.tang.intellij.lua.stubs.index.LuaClassIndex$Companion.find(LuaClassIndex.kt:47)
	at com.tang.intellij.lua.psi.search.LuaShortNamesManagerImpl.findClass(LuaShortNamesManagerImpl.kt:40)
	at com.tang.intellij.lua.psi.search.CompositeLuaShortNamesManager.findClass(CompositeLuaShortNamesManager.kt:42)
	at com.tang.intellij.lua.psi.LuaPsiTreeUtil.findClass(LuaPsiTreeUtil.java:180)
	at com.tang.intellij.lua.ty.TyClass.doLazyInit(TyClass.kt:343)
	at com.tang.intellij.lua.ty.TyLazyClass.doLazyInit(TyClass.kt:453)
	at com.tang.intellij.lua.ty.TyClass.lazyInit(TyClass.kt:337)
	at com.tang.intellij.lua.ty.ITyClass.willResolve(TyClass.kt:57)
	at com.tang.intellij.lua.ty.GenericParameterResolutionSubstitutor.substitute(TySubstitutor.kt:369)
	at com.tang.intellij.lua.ty.TyClass.substitute(TyClass.kt:366)
	at com.tang.intellij.lua.ty.TySubstitutor.substitute(TySubstitutor.kt:264)
	at com.tang.intellij.lua.ty.TyGeneric.substitute(TyGeneric.kt:285)
	at com.tang.intellij.lua.ty.GenericParameterResolutionSubstitutor.substitute(TySubstitutor.kt:362)
	at com.tang.intellij.lua.ty.TyClass.substitute(TyClass.kt:366)
	at com.tang.intellij.lua.ty.GenericAnalyzer.visitClass(TySubstitutor.kt:113)
	at com.tang.intellij.lua.ty.TyClass.accept(TyClass.kt:331)
	at com.tang.intellij.lua.ty.GenericAnalyzer$analyze$1.invoke(TySubstitutor.kt:72)
	at com.tang.intellij.lua.ty.GenericAnalyzer$analyze$1.invoke(TySubstitutor.kt:72)
	at com.tang.intellij.lua.ty.GenericAnalyzer.warp(TySubstitutor.kt:236)
	at com.tang.intellij.lua.ty.GenericAnalyzer.analyze(TySubstitutor.kt:72)
	at com.tang.intellij.lua.ty.ExpressionsKt$createSubstitutor$4$1.invoke(Expressions.kt:283)
	at com.tang.intellij.lua.ty.ExpressionsKt$createSubstitutor$4$1.invoke(Expressions.kt:282)
	at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129)
	at com.tang.intellij.lua.search.SearchContext.withListEntry(SearchContext.kt:137)
	at com.tang.intellij.lua.ty.ExpressionsKt$createSubstitutor$4.invoke(Expressions.kt:282)
	at com.tang.intellij.lua.ty.ExpressionsKt$createSubstitutor$4.invoke(Expressions.kt:278)
	at com.tang.intellij.lua.ty.TyFunctionKt.processParameters(TyFunction.kt:80)
	at com.tang.intellij.lua.ty.ExpressionsKt.createSubstitutor(Expressions.kt:278)
	at com.tang.intellij.lua.ty.TyKt.matchSignature(Ty.kt:317)
	at com.tang.intellij.lua.ty.TyKt.matchSignature$default(Ty.kt:282)
	at com.tang.intellij.lua.ty.ExpressionsKt.infer(Expressions.kt:346)
	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.ty.DeclarationsKt$resolveParamType$2.invoke(Declarations.kt:317)
	at com.tang.intellij.lua.ty.DeclarationsKt$resolveParamType$2.invoke(Declarations.kt:316)
	at com.tang.intellij.lua.search.SearchContext.withMultipleResults(SearchContext.kt:129)
	at com.tang.intellij.lua.ty.DeclarationsKt.resolveParamType(Declarations.kt:316)
	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: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.stubs.LuaIndexExprType$createStub$idTy$1$1.invoke(LuaIndexExprStub.kt:92)
	at com.tang.intellij.lua.stubs.LuaIndexExprType$createStub$idTy$1$1.invoke(LuaIndexExprStub.kt:91)
	at com.tang.intellij.lua.search.SearchContext$Companion$withDumb$1.invoke(SearchContext.kt:93)
	at com.tang.intellij.lua.search.SearchContext$Companion$withDumb$1.invoke(SearchContext.kt:90)
	at com.tang.intellij.lua.search.SearchContext$Companion.with(SearchContext.kt:68)
	at com.tang.intellij.lua.search.SearchContext$Companion.withDumb(SearchContext.kt:90)
	at com.tang.intellij.lua.search.SearchContext$Companion.withDumb(SearchContext.kt:86)
	at com.tang.intellij.lua.stubs.LuaIndexExprType.createStub(LuaIndexExprStub.kt:91)
	at com.tang.intellij.lua.stubs.LuaIndexExprType.createStub(LuaIndexExprStub.kt:37)
	at com.intellij.psi.stubs.DefaultStubBuilder$StubBuildingWalkingVisitor.createStub(DefaultStubBuilder.java:85)
	at com.intellij.psi.stubs.DefaultStubBuilder$StubBuildingWalkingVisitor.visitNode(DefaultStubBuilder.java:60)
	at com.intellij.psi.stubs.DefaultStubBuilder$StubBuildingWalkingVisitor.buildStubTree(DefaultStubBuilder.java:55)
	at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTreeFor(DefaultStubBuilder.java:33)
	at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTree(DefaultStubBuilder.java:22)
	at com.intellij.psi.stubs.StubTreeBuilder.lambda$buildStubTree$1(StubTreeBuilder.java:143)
	at com.intellij.psi.stubs.StubTreeBuilder.handleStubBuilderException(StubTreeBuilder.java:98)
	at com.intellij.psi.stubs.StubTreeBuilder.buildStubTree(StubTreeBuilder.java:143)
	at com.intellij.psi.stubs.StubUpdatingIndex$1.computeValue(StubUpdatingIndex.java:165)
	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)

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.

1reaction
Benjamin-Dobellcommented, Jul 27, 2021

I have updated the file path in the issue description. Do you mind updating it in your comment also?

Done. I’ve also deleted the comment revision history. The previous path should be properly scrubbed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Indexing process should not rely on non-indexed file data.
I encountered this problem in developing plug-ins. The error is At...
Read more >
Indexing process should not rely on non-indexed file data.
What are the steps to reproduce this issue?(重现步骤?) Work on a large Lua project; Edit Lua file; Save the file; Wait for EmmyLua...
Read more >
Why is IntelliJ IDEA hanging on "Indexing"? - Stack Overflow
Try Invalidating the cache and restarting IntelliJ. In the File menu, select Invalidate Caches / Restart... and then click the Invalidate ...
Read more >
https://groups.google.com/a/illuminatedcloud.com/g...
Throwable: Indexing process should not rely on non-indexed file data. Indexing file = C:/apps/dx/apiLogChanges/force-app/main/default/classes/VPSAdyen.cls, ...
Read more >
Indexed vs. Unindexed Search - Lookeen
Indexed search is great for searches where the data is relatively the same ... An unindexed search would have to look at each...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found