Skip to content

java.lang.NullPointerException: Can't find stub index extension for key 'nl.hannahsten.texifyidea.environments' #4301

@eyamrog

Description

@eyamrog

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

PyCharm 2025.2.4 (build PY-252.27397.106)

Operating System

Windows 11.0 (amd64)

TeXiFy IDEA version

0.11.4

Description

Stacktrace

java.lang.NullPointerException: Can't find stub index extension for key 'nl.hannahsten.texifyidea.environments'
	at com.intellij.psi.stubs.StubIndexKeyDescriptorCache.findExtension(StubIndexKeyDescriptorCache.kt:51)
	at com.intellij.psi.stubs.StubIndexKeyDescriptorCache.getKeyPsiMatcher$lambda$2(StubIndexKeyDescriptorCache.kt:42)
	at com.intellij.psi.stubs.StubIndexKeyDescriptorCache.getKeyPsiMatcher$lambda$3(StubIndexKeyDescriptorCache.kt:41)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at com.intellij.psi.stubs.StubIndexKeyDescriptorCache.getKeyPsiMatcher(StubIndexKeyDescriptorCache.kt:41)
	at com.intellij.psi.stubs.StubIndexEx.processElements(StubIndexEx.java:154)
	at com.intellij.psi.stubs.StubIndex.processElements(StubIndex.java:55)
	at nl.hannahsten.texifyidea.index.StringStubIndexWrapper.forEachByName(StubIndexWrapper.kt:210)
	at nl.hannahsten.texifyidea.index.StringStubIndexWrapper.forEachByName$default(StubIndexWrapper.kt:165)
	at nl.hannahsten.texifyidea.util.labels.LatexLabelUtil.processCustomEnv(LatexLabelUtil.kt:169)
	at nl.hannahsten.texifyidea.util.labels.LatexLabelUtil.processCustomizedInFileset(LatexLabelUtil.kt:207)
	at nl.hannahsten.texifyidea.util.labels.LatexLabelUtil.forEachLabelParamInFilesetByName(LatexLabelUtil.kt:246)
	at nl.hannahsten.texifyidea.util.labels.LatexLabelUtil.forEachLabelParamByName(LatexLabelUtil.kt:262)
	at nl.hannahsten.texifyidea.util.labels.LatexLabelUtil.getLabelParamsByName(LatexLabelUtil.kt:280)
	at nl.hannahsten.texifyidea.util.labels.LatexLabelUtil.getLabelParamsByName$default(LatexLabelUtil.kt:278)
	at nl.hannahsten.texifyidea.reference.LatexLabelParameterReference$Companion.isLabelDefined(LatexLabelParameterReference.kt:84)
	at nl.hannahsten.texifyidea.inspections.latex.probablebugs.LatexUnresolvedReferenceInspection.inspectElement(LatexUnresolvedReferenceInspection.kt:57)
	at nl.hannahsten.texifyidea.inspections.AbstractTexifyContextAwareInspection$InspectionTraverser.elementStart(AbstractTexifyContextAwareInspection.kt:241)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:126)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.enterElementWithIntro(LatexWithContextStateTraverser.kt:90)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseCommandRecur(LatexWithContextStateTraverser.kt:97)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:141)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseChildren(LatexWithContextStateTraverser.kt:114)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:172)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseChildren(LatexWithContextStateTraverser.kt:114)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:172)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.enterElementWithIntro(LatexWithContextStateTraverser.kt:90)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseEnvironmentRecur(LatexWithContextStateTraverser.kt:106)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:148)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseChildren(LatexWithContextStateTraverser.kt:114)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:172)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseChildren(LatexWithContextStateTraverser.kt:114)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:172)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseChildren(LatexWithContextStateTraverser.kt:114)
	at nl.hannahsten.texifyidea.psi.LatexWithContextStateTraverser.traverseRecur(LatexWithContextStateTraverser.kt:172)
	at nl.hannahsten.texifyidea.inspections.AbstractTexifyContextAwareInspection$InspectionTraverser.doInspect(AbstractTexifyContextAwareInspection.kt:246)
	at nl.hannahsten.texifyidea.inspections.AbstractTexifyContextAwareInspection.checkFile(AbstractTexifyContextAwareInspection.kt:161)
	at com.intellij.codeInspection.LocalInspectionTool$PsiFileElementVisitor.visitFile(LocalInspectionTool.java:170)
	at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:59)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner$InspectionProblemHolder.visitElement(InspectionRunner.java:609)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processContext$19(InspectionRunner.java:414)
	at com.intellij.codeInsight.daemon.impl.InspectionVisitorOptimizer.acceptElements(InspectionVisitorOptimizer.java:217)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.processContext(InspectionRunner.java:412)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$7(InspectionRunner.java:180)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:826)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1221)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$16(InspectionRunner.java:393)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:158)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:150)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$executeInImpatientReadAction$17(InspectionRunner.java:384)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:129)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:118)
	at co

Metadata

Metadata

Assignees

No one assigned

    Labels

    crash-reportReports of crashes that popped up in IDEA.untriagedIssue type still needs to be triaged or verified.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions