Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: CompositeException (2 nested): #1466

Closed
clmerriman opened this issue May 7, 2024 · 0 comments
Closed

bug: CompositeException (2 nested): #1466

clmerriman opened this issue May 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@clmerriman
Copy link

clmerriman commented May 7, 2024

Cody Version

5.5.9

IDE Information

PhpStorm 2023.3.6
Build #PS-233.15026.12, built on March 21, 2024
Licensed to FTP Today / Chris Merriman
Subscription is active until October 1, 2024.
Runtime version: 17.0.10+1-b1087.23 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 4.18.0-513.24.1.el8_9.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry:
documentation.show.toolbar=true
run.processes.with.pty=TRUE
ide.experimental.ui=true
Non-Bundled Plugins:
com.sourcegraph.jetbrains (5.5.9)
Current Desktop: GNOME

Describe the bug

Appears to happen in background during autocomplete

Expected behavior

No bug alert

Additional context

Stacktrace:

CompositeException (2 nested):
------------------------------
[1]: com.intellij.codeInsight.intention.impl.preview.IntentionPreviewUnsupportedOperationException: It's unexpected to invoke this method on an intention preview calculating.
 at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewEditor.notImplemented(IntentionPreviewEditor.kt:15)
 at com.intellij.openapi.editor.impl.ImaginaryEditor.getInlayModel(ImaginaryEditor.java:268)
 at com.sourcegraph.cody.autocomplete.render.InlayModelUtil.getAllInlaysForEditor(InlayModelUtil.kt:25)
 at com.sourcegraph.cody.autocomplete.CodyAutocompleteManager.disposeInlays(CodyAutocompleteManager.kt:111)
 at com.sourcegraph.cody.autocomplete.CodyAutocompleteManager.clearAutocompleteSuggestions(CodyAutocompleteManager.kt:84)
 at com.sourcegraph.cody.listeners.CodyDocumentListener.documentChangedNonBulk(CodyDocumentListener.kt:38)
 at com.intellij.openapi.editor.event.BulkAwareDocumentListener.documentChanged(BulkAwareDocumentListener.java:21)
 at jdk.internal.reflect.GeneratedMethodAccessor361.invoke(Unknown Source)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
 at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:119)
 at com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:84)
 at jdk.proxy2/jdk.proxy2.$Proxy65.documentChanged(Unknown Source)
 at com.intellij.openapi.editor.impl.DocumentImpl.lambda$changedUpdate$1(DocumentImpl.java:913)
 at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$2(CoreProgressManager.java:228)
 at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:634)
 at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$3(CoreProgressManager.java:236)
 at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:53)
 at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:236)
 at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:227)
 at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:910)
 at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:814)
 at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:654)
 at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:591)
 at com.intellij.psi.impl.PsiToDocumentSynchronizer.doCommitTransaction(PsiToDocumentSynchronizer.java:212)
 at com.intellij.psi.impl.PsiToDocumentSynchronizer.lambda$commitTransaction$1(PsiToDocumentSynchronizer.java:188)
 at com.intellij.psi.impl.PsiToDocumentSynchronizer.lambda$doSync$0(PsiToDocumentSynchronizer.java:106)
 at com.intellij.psi.impl.PsiToDocumentSynchronizer.performAtomically(PsiToDocumentSynchronizer.java:124)
 at com.intellij.psi.impl.PsiToDocumentSynchronizer.doSync(PsiToDocumentSynchronizer.java:106)
 at com.intellij.psi.impl.PsiToDocumentSynchronizer.commitTransaction(PsiToDocumentSynchronizer.java:188)
 at com.intellij.pom.core.impl.PomModelImpl.commitTransaction(PomModelImpl.java:195)
 at com.intellij.pom.core.impl.PomModelImpl.lambda$runTransaction$1(PomModelImpl.java:151)
 at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:535)
 at com.intellij.pom.core.impl.PomModelImpl.lambda$runTransaction$2(PomModelImpl.java:103)
 at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$2(CoreProgressManager.java:228)
 at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:685)
 at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:641)
 at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$3(CoreProgressManager.java:236)
 at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:57)
 at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:236)
 at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:227)
 at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:92)
 at com.intellij.psi.impl.source.tree.ChangeUtil.prepareAndRunChangeAction(ChangeUtil.java:141)
 at com.intellij.psi.impl.source.tree.CompositeElement.addChild(CompositeElement.java:586)
 at com.intellij.psi.impl.source.tree.CompositeElement.addChildren(CompositeElement.java:680)
 at com.intellij.psi.impl.source.codeStyle.CodeEditUtil.addChildren(CodeEditUtil.java:53)
 at com.intellij.extapi.psi.ASTDelegatePsiElement.addInternal(ASTDelegatePsiElement.java:286)
 at com.intellij.extapi.psi.ASTDelegatePsiElement.addInnerBefore(ASTDelegatePsiElement.java:259)
 at com.intellij.extapi.psi.ASTDelegatePsiElement.addBefore(ASTDelegatePsiElement.java:253)
 at com.jetbrains.php.refactoring.PhpAliasImporter.insertUseStatementWithKeyword(PhpAliasImporter.java:62)
 at com.jetbrains.php.lang.intentions.PhpImportClassIntention.lambda$apply$1(PhpImportClassIntention.java:192)
 at com.intellij.codeInsight.intention.preview.IntentionPreviewUtils.write(IntentionPreviewUtils.java:92)
 at com.jetbrains.php.lang.intentions.PhpImportClassIntention.apply(PhpImportClassIntention.java:191)
 at com.jetbrains.php.lang.inspections.PhpFullyQualifiedNameUsageInspection$PhpImportQualifierQuickFix.applyFix(PhpFullyQualifiedNameUsageInspection.java:169)
 at com.jetbrains.php.lang.inspections.PhpFullyQualifiedNameUsageInspection$PhpImportQualifierQuickFix.applyFix(PhpFullyQualifiedNameUsageInspection.java:140)
 at com.intellij.codeInspection.LocalQuickFix.generatePreview(LocalQuickFix.java:81)
 at com.intellij.codeInspection.ex.QuickFixWrapper.generatePreview(QuickFixWrapper.java:191)
 at com.intellij.codeInsight.intention.impl.IntentionActionWithTextCaching$MyIntentionAction.generatePreview(IntentionActionWithTextCaching.java:254)
 at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable$invokePreview$1$1$1.invoke(IntentionPreviewComputable.kt:122)
 at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable$invokePreview$1$1$1.invoke(IntentionPreviewCo...
@clmerriman clmerriman added the bug Something isn't working label May 7, 2024
@dominiccooney dominiccooney self-assigned this May 13, 2024
dominiccooney added a commit that referenced this issue May 13, 2024
…ch don't support inlay models. (#1490)

ImaginaryEditor does not support InlayModel and throws an
UnsupportedOperationException; IntentionPreviewEditor throws an
IntentionPreviewUnsupportedOperationException:
UnsupportedOperationException, etc.

Fixes #1488, #1486, #1485, #1480, #1466, #1462, #1435, #1363

## Test plan

```
./gradlew test --tests InlayModelUtilTest
```

Ran the IDE and clicked between editors, requesting autocompletes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants