You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.GeneratedMethodAccessor302.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.$Proxy103.documentChanged(Unknown Source)
at com.intellij.openapi.editor.impl.DocumentImpl.lambda$changedUpdate$1(DocumentImpl.java:917)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:269)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:684)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:277)
at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:53)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:277)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:268)
at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:914)
at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:818)
at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:658)
at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:595)
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$3(CoreProgressManager.java:269)
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.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:277)
at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:57)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:277)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:268)
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.removeChildrenInner(CompositeElement.java:838)
at com.intellij.psi.impl.source.tree.CompositeElement.removeRange(CompositeElement.java:618)
at com.intellij.psi.impl.source.codeStyle.CodeEditUtil.removeChildren(CodeEditUtil.java:132)
at com.intellij.psi.impl.source.PsiFileImpl.deleteChildRange(PsiFileImpl.java:847)
at com.intellij.extapi.psi.ASTDelegatePsiElement.deleteElementFromParent(ASTDelegatePsiElement.java:322)
at com.intellij.extapi.psi.ASTDelegatePsiElement.delete(ASTDelegatePsiElement.java:307)
at com.goide.refactor.util.GoCommentsHolder.deleteAsChildRange(GoCommentsHolder.java:102)
at com.goide.refactor.util.GoCommentsHolder.replace(GoCommentsHolder.java:85)
at com.goide.intentions.declarations.GoAddDeclarationParensIntention.lambda$invoke$0(GoAddDeclarationParensIntention.java:50)
at com.goide.refactor.util.GoRefactoringUtil.withVerticalScrollingSaved(GoRefactoringUtil.java:321)
at com.goide.intentions.declarations.GoAddDeclarationParensIntention.invoke(GoAddDeclarationParensIntention.java:49)
at com.intellij.codeInsight.intention.BaseElementAtCaretIntentionAction.invoke(BaseElementAtCaretIntentionAction.java:58)
at com.intellij.codeInsight.intention.IntentionAction.generatePreview(IntentionAction.java:114)
at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.generatePreview(IntentionActionWrapper.java:90)
at com.intellij.codeInsight.intention.impl.IntentionActionWithTextCaching$MyIntentionAction.generatePreview(IntentionActionWithTextCaching.java:267)
at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable$invokePreview$1$1$1.invoke(IntentionPreviewComputable.kt:132)
at com.intellij.codeInsight.intention.impl.preview.IntentionPreviewComputable$invokePreview$1$1$1.invoke(IntentionPreviewComputable.kt:131)
at com.intellij.model.SideEffectGuard$Co...
The text was updated successfully, but these errors were encountered:
…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.
Cody Version
5.5.8
IDE Information
GoLand 2024.1.1
Build #GO-241.15989.157, built on April 30, 2024
Licensed to Yevhen Androsov
Subscription is active until June 4, 2024.
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 20
Registry:
debugger.new.tool.window.layout=true
ide.completion.variant.limit=500
suggest.all.run.configurations.from.context=TRUE
ide.images.show.chessboard=true
terminal.new.ui=true
Non-Bundled Plugins:
com.jetbrains.plugins.ini4idea (241.15989.113)
com.intellij.datagen (241.14494.150)
dev.turingcomplete.intellijdevelopertoolsplugins (4.2.0)
MultiHighlight (3.1.0)
com.jetbrains.space (241.15989.9)
Rider UI Theme Pack (0.14.11)
org.intellij.plugins.postcss (241.14494.155)
org.turbanov.run.configuration.as.action (3.0)
org.OverEngineer.InlineProblems (0.5.2)
org.jetbrains.plugins.sass (241.14494.155)
com.intellij.properties (241.14494.150)
String Manipulation (9.13.0)
com.github.nikolaikopernik.codecomplexity (1.5.0)
com.intellij.plugins.github.colorscheme (241.14494.150)
hunspell (241.15989.157)
xyz.danizz.commit-message-wrapper-fixer (1.2)
com.github.camork.fileExpander (2.5)
com.wakatime.intellij.plugin (14.3.13)
XPathView (241.15989.65)
com.intellij.tasks (241.15989.157)
com.intellij.tasks.timeTracking (241.14494.150)
com.intellij.plugin.adernov.powershell (2.6.1)
com.intellij.aqua (241.15989.157)
com.intellij.mermaid (0.0.21+IJ.232)
com.intellij.kubernetes (241.15989.102)
com.intellij.laf.macos (241.14494.150)
com.intellij.grazie.pro (0.3.304)
com.intellij.ml.llm (241.15989.156)
Dart (241.15989.9)
com.github.copilot (1.5.2.5392-nightly)
io.wisetime.plugins.window.branch (2.0.0)
com.virtuslab.git-machete (4.2.1)
com.intellij.queryComplexity (241.14494.150)
app.codepreview.plugin (1.2.1)
NodeJS (241.15989.20)
com.dmarcotte.handlebars (241.14494.150)
me.mbolotov.cypress (1.6.2)
tslint (241.14494.155)
com.intellij.tide (241.15989.157)
intellij.prettierJS (241.15989.111)
Karma (241.15989.111)
com.sourcegraph.jetbrains (5.5.9)
com.intellij.jira (4.8.0)
mobi.hsz.idea.gitignore (4.5.3)
com.github.linwancen.drawgraph (1.13.2024.03.24_09.36)
codiumai.codiumai (0.7.35)
org.jetbrains.plugins.tinygo (0.5.13)
com.github.dinbtechit.vscodetheme (1.10.10)
com.ypwang.plugin.go-linter (1.6.6)
cn.yiiguxing.plugin.translate (3.5.8)
AngularJS (241.15989.57)
dev.nx.console (1.23.0)
Describe the bug
Regular work
Expected behavior
Regular work
Additional context
Stacktrace:
The text was updated successfully, but these errors were encountered: