Codium-ai / codiumai-jetbrains-release

60 stars 8 forks source link

[Exception][WebStorm 2023.1.4] com.intellij.psi.PsiInvalidElementAccessException: Element class com.intellij.psi.impl... #100

Closed maiorovartem closed 1 year ago

maiorovartem commented 1 year ago

User Description

User did not enter any detailed information.

Stack Trace

com.intellij.psi.PsiInvalidElementAccessException: Element class com.intellij.psi.impl.source.tree.CompositeElement of type JS:TYPESCRIPT_FUNCTION (class com.intellij.lang.javascript.types.TypeScriptFunctionElementType)
    at com.intellij.psi.PsiInvalidElementAccessException.createByNode(PsiInvalidElementAccessException.java:80)
    at com.intellij.psi.impl.source.SubstrateRef$2.getContainingFile(SubstrateRef.java:98)
    at com.intellij.extapi.psi.StubBasedPsiElementBase.getContainingFile(StubBasedPsiElementBase.java:239)
    at com.intellij.lang.javascript.documentation.JSDocumentationUtils.findDocComment(JSDocumentationUtils.java:851)
    at com.intellij.lang.javascript.documentation.JSDocumentationUtils.findDocComment(JSDocumentationUtils.java:798)
    at com.intellij.lang.javascript.psi.util.JSStubBasedPsiTreeUtil.findDocComment(JSStubBasedPsiTreeUtil.java:350)
    at com.intellij.lang.javascript.psi.impl.JSStubElementImpl.getIcon(JSStubElementImpl.java:197)
    at com.intellij.lang.javascript.psi.impl.JSFunctionImpl.getFunctionIcon(JSFunctionImpl.java:222)
    at com.intellij.lang.javascript.psi.ecma6.impl.TypeScriptFunctionImpl.getIcon(TypeScriptFunctionImpl.java:110)
    at ai.codium.ui.structureview.CodiumStructureViewChildElement$getPresentation$1.getIcon(CodiumStructureViewChildElement.kt:40)
    at com.intellij.ide.projectView.PresentationData.updateFrom(PresentationData.java:164)
    at com.intellij.ide.util.treeView.smartTree.TreeElementWrapper.update(TreeElementWrapper.java:27)
    at com.intellij.ide.util.treeView.PresentableNodeDescriptor.getUpdatedPresentation(PresentableNodeDescriptor.java:90)
    at com.intellij.ide.util.treeView.PresentableNodeDescriptor.update(PresentableNodeDescriptor.java:33)
    at com.intellij.ui.tree.StructureTreeModel$Node.update(StructureTreeModel.java:485)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:345)
    at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.getNode(AsyncTreeModel.java:568)
    at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:464)
    at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:430)
    at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:304)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1100)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:72)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:63)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:129)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:110)
    at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$1(ProgressManager.java:70)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
    at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:70)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:107)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:72)
    at com.intellij.util.concurrency.Invoker.invokeSafely(Invoker.java:187)
    at com.intellij.util.concurrency.Invoker.lambda$offerSafely$0(Invoker.java:165)
    at com.intellij.util.concurrency.Invoker$Background.lambda$offer$0(Invoker.java:431)
    at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:248)
    at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:28)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:221)
    at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:227)
    at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:210)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
    at java.base/java.lang.Thread.run(Thread.java:833)

Other Information

=== About ===
Build version: WebStorm 2023.1.4 Build: #WS-231.9225.18 July 13, 2023
Theme: Darcula
JRE: 17.0.7+10-b829.16, JetBrains s.r.o.
JVM: 17.0.7+10-b829.16, OpenJDK 64-Bit Server VM, JetBrains s.r.o.
Operating System: Mac OS X 13.4.1 (aarch64)

=== Plugins ===
Custom plugins: [Diagrams.net Integration (0.2.4), .ignore (4.5.1), CodiumAI - Meaningful tests powered by TestGPT-1 and GPT-3.5&4 (0.5.23), One Dark theme (5.8.0), Swagger (1.2.0)]
Disabled plugins:[Mercurial (231.9225.18), Cucumber.js (231.9225.18), Qodana (231.9225.18), Space (231.9225.18), Subversion (231.9225.18)]

┆Issue is synchronized with this Trello card by Unito

ArtsiomCh commented 1 year ago

Thanks for reporting Please update to latest version, that issue is fixed.