java.lang.AssertionError: Stub list is less than AST, last AST element: VAR_SPEC Element(VAR_SPEC) file=GO_FILE, file.class=class com.goide.psi.GoFile, file.lang=Language: go, modStamp=0 tree consistent stub debugInfo=created in getStubTree(), no AST; with backReference document before=DocumentImpl[file:///Users/zolotov/dev/go/test/fixedbugs/issue14006.go] latestIndexedStub=StubTree{myDebugInfo='created from index; with backReference', myRoot=GoFileStub}2112143972 same size=true debugInfo=created from index; with backReference viewProvider=SingleRootFileViewProvider{myVirtualFile=file:///Users/zolotov/dev/go/test/fixedbugs/issue14006.go, content=VirtualFileContent{size=922}} viewProvider stamp: 0; file stamp: 0; file modCount: 1464633367000; file length: 922 doc saved: true; doc stamp: 0; doc size: 922; committed: true in many projects: false indexing info: indexed at 1464633367000 with size 922 ------------

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by zolotov
, 1 year ago
Stub list is less than AST, last AST element: VAR_SPEC Element(VAR_SPEC) file=GO_FILE, file.class=class com.goide.psi.GoFile, file.lang=Language: go, modStamp=0 tree consistent stub debugInfo=created in getStubTree(), no AST; with backReference
via GitHub by ansel1
, 2 years ago
/Cellar/go/1.4.2/libexec/src/encoding/pem/pem.go, content=DocumentContent{size=6858}} viewProvider stamp: 0; file stamp: 0; file modCount: 1424234314000; file length: 6858 doc saved: true; doc stamp: 0; doc size: 6858; committed: true indexing info: indexed at 1424234314000 with size 6858 ------------
via YouTrack by Unknown author, 1 year ago
-SNAPSHOT-sources.jar!/com/haulmont/workflow/core/sys/CubaJbpmSpringHelper.java] latestIndexedStub=com.intellij.psi.stubs.StubTree@77035f75 same size=true debugInfo=created from index; with backReference viewProvider=SingleRootFileViewProvider
via GitHub by ffissore
, 2 years ago
{myVirtualFile=file:///HIDDEN_PATH/FILE.go, content=VirtualFileContent{size=1074}} viewProvider stamp: 0; file stamp: 0; file modCount: 1439904880158; file length: 1074 doc saved: true; doc stamp: 0; doc size: 1074; committed: true in many projects: false indexing info: indexed at 1439904880158 with size 1074 ------------
via YouTrack by Unknown author, 1 year ago
Stub and PSI element type mismatch in Example.class: stub ScTemplateDefinitionStubImpl, AST import statement; Element(import statement) file=ScalaFile:Example.class, modStamp=0 stub debugInfo=created from index; with backReference document before
via GitHub by dlsniper
, 2 years ago
=com.intellij.psi.stubs.StubTree@7a5889c8 same size=true debugInfo=created from index; with backReference viewProvider=SingleRootFileViewProvider{myVirtualFile=file:///usr/local/go/src/net/http/server.go, content=DocumentContent{size=61559}} viewProvider stamp: 0
java.lang.AssertionError: Stub list is less than AST, last AST element: VAR_SPEC Element(VAR_SPEC) file=GO_FILE, file.class=class com.goide.psi.GoFile, file.lang=Language: go, modStamp=0 tree consistent stub debugInfo=created in getStubTree(), no AST; with backReference document before=DocumentImpl[file:///Users/zolotov/dev/go/test/fixedbugs/issue14006.go] latestIndexedStub=StubTree{myDebugInfo='created from index; with backReference', myRoot=GoFileStub}2112143972 same size=true debugInfo=created from index; with backReference viewProvider=SingleRootFileViewProvider{myVirtualFile=file:///Users/zolotov/dev/go/test/fixedbugs/issue14006.go, content=VirtualFileContent{size=922}} viewProvider stamp: 0; file stamp: 0; file modCount: 1464633367000; file length: 922 doc saved: true; doc stamp: 0; doc size: 922; committed: true in many projects: false indexing info: indexed at 1464633367000 with size 922 ------------
at com.intellij.psi.impl.source.PsiFileImpl.reportStubAstMismatch(PsiFileImpl.java:338)
at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:299)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:80)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:158)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:66)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:58)
at com.intellij.util.WalkingState.walkChildren(WalkingState.java:65)
at com.intellij.util.WalkingState.elementStarted(WalkingState.java:52)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitNode(RecursiveTreeElementWalkingVisitor.java:85)
at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:313)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:80)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:158)
at com.intellij.psi.impl.source.PsiFileImpl.calcStubAstBindings(PsiFileImpl.java:287)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:196)
at com.intellij.psi.impl.source.PsiFileImpl.calcTreeElement(PsiFileImpl.java:799)
at com.intellij.psi.impl.source.PsiFileImpl.getNode(PsiFileImpl.java:1004)
at com.intellij.psi.impl.source.PsiFileImpl.getNode(PsiFileImpl.java:67)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processTreeUp(LowLevelSearchUtil.java:77)
at com.intellij.psi.impl.search.LowLevelSearchUtil.access$000(LowLevelSearchUtil.java:42)
at com.intellij.psi.impl.search.LowLevelSearchUtil$1.execute(LowLevelSearchUtil.java:199)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processTextOccurrences(LowLevelSearchUtil.java:242)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:195)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$3.processInReadAction(PsiSearchHelperImpl.java:230)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$3.processInReadAction(PsiSearchHelperImpl.java:226)
at com.intellij.openapi.application.ReadActionProcessor$1.compute(ReadActionProcessor.java:31)
at com.intellij.openapi.application.ReadActionProcessor$1.compute(ReadActionProcessor.java:28)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:962)
at com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:28)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$6.compute(PsiSearchHelperImpl.java:385)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$6.compute(PsiSearchHelperImpl.java:367)
at com.intellij.openapi.application.ex.ApplicationUtil$1.run(ApplicationUtil.java:37)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1178)
at com.intellij.openapi.application.ex.ApplicationUtil.tryRunReadAction(ApplicationUtil.java:34)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.processVirtualFile(PsiSearchHelperImpl.java:367)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.access$100(PsiSearchHelperImpl.java:68)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$4.process(PsiSearchHelperImpl.java:314)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$4.process(PsiSearchHelperImpl.java:309)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:128)
at com.intellij.concurrency.ApplierCompleter.tryToExecAllList(ApplierCompleter.java:217)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:146)
at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44)
at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:91)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:112)
at jsr166e.CountedCompleter.exec(CountedCompleter.java:684)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.