Codium-ai / codiumai-jetbrains-release

59 stars 8 forks source link

[0.9.7][GOLAND 2024.2.3] java.lang.Throwable: psiElement is not instance of requiredClass.psiElement=IMPORT_SPEC, ps... #339

Closed zidnaalhaq closed 1 month ago

zidnaalhaq commented 1 month ago

User Description

User did not enter any detailed information.

Stack Trace

java.lang.Throwable: psiElement is not instance of requiredClass.
psiElement=IMPORT_SPEC, psiElement.class=class com.goide.psi.impl.GoImportSpecImpl, requiredClass=interface com.goide.psi.GoMethodDeclaration, operation=Looking for hawkeye.provider in go.method, stubIdList=[7]@0.
ref: 20240717
com.intellij.psi.stubs.UpToDateStubIndexMismatch: PSI and index do not match.
Please report the problem to JetBrains with the files attached
INDEXED VERSION IS THE CURRENT ONE file=GO_FILE, file.class=class com.goide.psi.GoFile, file.lang=Language: go, modStamp=1
 tree consistent
 stub debugInfo=created in calcStubTree; with backReference
 viewProvider=com.intellij.psi.SingleRootFileViewProvider{vFile=file:///Users/ZD8298/Zidna/repo/privy-pass/reckoning-se/privypass-reckoning-se/internal/provider/hawkeye/hawkeye_enterprise.go, vFileId=301573, content=VirtualFileContent{size=1693}, eventSystemEnabled=true}
 viewProvider stamp: 626074; file stamp: 626074; file modCount: 1727930407841; file length: 1693
 doc saved: true; doc stamp: 626074; doc size: 1693; committed: true
indexing info: indexing timestamp = 1727930407841, binary = false, byte size = 1693, char size = 1693
ref: 50cf572587cf
latestIndexedStub=StubTree{myDebugInfo='created from index; with backReference', myRoot=GoFileStub}279623069
   same size=false
   debugInfo=created from index; with backReference
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
    at com.intellij.psi.stubs.StubProcessingHelperBase.inconsistencyDetected(StubProcessingHelperBase.java:171)
    at com.intellij.psi.stubs.StubProcessingHelperBase.checkType(StubProcessingHelperBase.java:103)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:72)
    at com.intellij.psi.stubs.StubIndexEx.lambda$processElements$5(StubIndexEx.java:152)
    at com.intellij.psi.stubs.StubIndexEx.processElements(StubIndexEx.java:202)
    at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:107)
    at com.goide.stubs.index.GoMethodIndex.find(GoMethodIndex.java:52)
    at com.goide.psi.impl.GoPsiImplUtil.calcMethods(GoPsiImplUtil.java:1755)
    at com.goide.psi.impl.GoPsiImplUtil.lambda$getMethods$34(GoPsiImplUtil.java:1607)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:111)
    at com.intellij.util.indexing.FileBasedIndexEx.ignoreDumbMode(FileBasedIndexEx.java:645)
    at com.intellij.util.indexing.DumbModeAccessType.ignoreDumbMode(DumbModeAccessType.java:53)
    at com.goide.psi.impl.GoPsiImplUtil.lambda$getMethods$35(GoPsiImplUtil.java:1607)
    at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:173)
    at com.intellij.psi.impl.PsiCachedValueImp

<TRIMMED STACKTRACE>

platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:34)
    at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPasses(TextEditorBackgroundHighlighter.java:75)
    at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPassesForEditor(TextEditorBackgroundHighlighter.java:98)
    at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPassesForEditor(TextEditorBackgroundHighlighter.java:30)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$submitInBackground$32(DaemonCodeAnalyzerImpl.java:1340)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:264)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:221)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:857)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:66)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$submitInBackground$33(DaemonCodeAnalyzerImpl.java:1319)
    at io.opentelemetry.context.Context.lambda$wrap$1(Context.java:212)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.submitInBackground(DaemonCodeAnalyzerImpl.java:1318)
    at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$queuePassesCreation$27(DaemonCodeAnalyzerImpl.java:1291)
    at io.opentelemetry.context.Context.lambda$wrap$1(Context.java:212)
    at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:259)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1491)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2073)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2035)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

Other Information

=== About ===
Build version: GoLand 2024.2.3 Build: #GO-242.23339.24 September 26, 2024
Theme: Trash Panda Theme
JRE: 21.0.4+13-b509.17, JetBrains s.r.o.
JVM: 21.0.4+13-b509.17, OpenJDK 64-Bit Server VM, JetBrains s.r.o.
Operating System: Mac OS X 15.0 (aarch64)

=== Plugins ===
Custom plugins: [Catppuccin Theme (3.3.3), Vuesion Theme (1.9.2), Darcula Darker Theme (1.2.0), One Dark Theme (5.12.0), Cyberpunk Theme (1.1.3), Nord (0.13.0), Gradianto (5.5), Trash Panda Theme (2.2.1), Indent Rainbow (2.2.0), WakaTime (15.0.3), Dark Purple Theme (1.3), Dracula Theme (1.16.0), Atom Material Icons (97.0.0), Rainbow Brackets (2024.2.6-241), Handlebars/Mustache (242.21829.3), Lotus Theme (1.12), Nightfall Theme (2.0.2), .env files support (2024.2.1), Material Theme UI (9.5.0), GitToolBox (600.0.1+242), Codiumate - Code, test and review with confidence - by CodiumAI (0.9.7)]
Disabled plugins:[Cody: AI Coding Assistant with Autocomplete & Chat (7.0.4), EnvFile (3.4.2), Python Community Edition (242.22855.74)]
ArtsiomCh commented 1 month ago

Thanks for reporting! Seems like JetBrains internal issue:

UpToDateStubIndexMismatch: PSI and index do not match. Please report the problem to JetBrains with the files attached