Still getting the issue where running GoLand with the Cody plugin breaks project indexes in the IDE on a daily basis. Symptom is that code fragments are underlined in red even though they’re valid, code navigation like jump to definition is broken. Have to run the commands to repair the IDE to fix. Sometimes it’s bad enough that I have to disable Cody in order for the repair to complete.
When I get fed up and disable Cody, I don’t these errors as often. If I enable Cody, they start up again.
Running the 7.9.0-nightly plugin in GoLand 2024.3.1
Build #GO-243.22562.186, built on December 11, 2024
Runtime version: 21.0.5+8-b631.28 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.2
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 16000M
Cores: 10
Metal Rendering is ON
Registry:
ide.completion.variant.limit=500
suggest.all.run.configurations.from.context=FALSE
ide.experimental.ui=true
i18n.locale=
terminal.new.ui=true
Non-Bundled Plugins:
org.asciidoctor.intellij.asciidoc (0.43.6)
com.sourcegraph.jetbrains (7.9.0-nightly)
com.intellij.tailwindcss (243.22562.117)
Originally reported in Cody seems to break Jetbrains indexes
Removed and re-installed the nightly build plugin. Removed all 3rd-party plugins. Disabled a lot of the default JB plugins. Since this seems to be a problem with JB’s indexes, disabled the shared project indexes, too.
Thank you @mdhender for the reply and feedback.
Curious if this solves the issue and we can bisect where the problem lies.
Still having issues with broken indexes and the plugin opening multiple issues.
See bug: java.lang.IllegalArgumentException: Invalid range specified: (1047, 1037); · Issue #2967 · sourcegraph/jetbrains · GitHub and bug: java.lang.IllegalArgumentException: Invalid range specified: (1046, 1037); · Issue #2966 · sourcegraph/jetbrains · GitHub. The index changes from 1046 to 1047 and that seems to be the only difference.
There are two issues in the notification dialog.
Additionally, I’ve never seen the text that I’ve typed in appear on the form in Github.
Shot showing that two tabs were opened, one for each notification in that dialog after I clicked the Report All button.
If you’re wondering what I mean by broken indexes, I’ll have a line that suddenly loses the type. JB displays it in red and I get an action box when I hover over it:
If I go to the type definition, it is there and it is valid
Rename the type
Wait a moment, undo that, and save the file. Go back to the first location and the type is back.
This doesn’t seem to happen if I disable Cody.
Hey @mdhender thank you for the detailed report.
I will link this thread to the corresponding GitHub issues.
EDIT: I saw you already linked it. I appreciate your effort.
As fun as it is opening the issues, I’m going to stop unless it looks like it actually is a new issue. (In other words, I’ve figured out how to use that dialog in JB .)
1 Like
I uninstalled all the JB editors, reinstalled just GoLand, removed as many plugins as I could and this is still happening. I’m convinced that it’s not caused by Cody. I’ve opened a bug report with JB.
https://youtrack.jetbrains.com/issue/GO-18031/GoLand-randomly-loses-type-definitions