sourcegraph / jetbrains

Apache License 2.0
69 stars 23 forks source link

Cody showing nothing and always loading #2470

Open rosca-cristian opened 1 week ago

rosca-cristian commented 1 week ago

IDE Information

Webstorm 2024.2.3

Bug Description

I tried installing and uninstalling, enabling and disabling and logging out and logging in, but nothing happens; it's still stuck on this screen.

image

Additional context

No response

L4rue commented 1 week ago

Same to you. I have to rollback to 7.0.6 to fix

fredferrao commented 1 week ago

Same here on InteliJJ Ultimate, version 7.0.13 just doesn't work, I’ve already tried reinstalling the plugin, invalidating the cache, restarting Cody several times, but it doesn’t work.

I found it strange right after the update when IntelliJ informed me that Full Line Code Complete no longer had a conflict and could be used.

Had to manually downgrade to 7.0.6.

ccasselman commented 1 week ago

Same. It seems every release is untested and unverified.

jafin commented 1 week ago

possible duplicate of #2447

Nopik commented 5 days ago

Same. It seems every release is untested and unverified.

Indeed. It is astonishing that a totally broken upgrade which makes plugin to not work at all stays not addressed for so long.

kalanchan commented 4 days ago

sorry for the inconvenience everyone, we're working on releasing another stable version as soon as we can.

dominiccooney commented 4 days ago

It would be great to get an idea.log (Help, Show Log in ...) when this happens. Even better if you can invoke the Open Cody Settings action and set it to the following and restart.

{
  "cody.debug.verbose": true
}
Nopik commented 4 days ago

Here it is. I was on older Cody, so I added the verbose setting there. Upgraded plugin. Deleted all idea.log files. Restarted IDE. Cody panel was empty, not even 3 color dot spinner. I clicked 'restart cody', so 3 dots appeared. I played with other settings I've seen - the 'restart' disappeared, but I think I disabled the autocomplete. Here is the log afterwards.

idea.log.zip

Nopik commented 4 days ago

As you can see in the log, lots of exceptions like this:

2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent - Uncaught exception: SyntaxError: "undefined" is not valid JSON
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at JSON.parse (<anonymous>)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at LocalStorageDB.get (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:132840:28)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at _AgentGlobalState.get (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:132796:26)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at LocalStorage.get (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:96677:29)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at LocalStorage.getClientState (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:96493:29)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at /Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:96500:34
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at Object.<anonymous> (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:27465:34)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at Generator.next (<anonymous>)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at /Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:27504:71
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at new Promise (<anonymous>)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at __awaiter3 (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:27486:14)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at /Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:27464:40
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at AsyncSerialScheduler.<anonymous> (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:26819:17)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at Generator.next (<anonymous>)
2024-10-22 11:14:33,720 [  56279]   WARN - #com.sourcegraph.cody.agent.CodyAgent -     at fulfilled (/Users/nopik/Library/Application Support/JetBrains/IntelliJIdea2024.2/plugins/Sourcegraph/agent/index.js:26784:28)
2
Nopik commented 4 days ago

@dominiccooney @kalanchan ^

jdorfman commented 22 hours ago

Hey all! 7.0.18 is already waiting for JetBrains verification in Marketplace, so it should be out around Monday-Tue. If you can't wait, you can try it on our nightly build.

cc: @jafin @fredferrao @Nopik @ccasselman

Nopik commented 22 hours ago

Thanks, 7.0.18-nightly works for me.

ccasselman commented 21 hours ago

How do we install from the nightly build - It doesn't work for the 7.0.18 or the 7.0.18-nightly zips? @jdorfman

Nopik commented 21 hours ago

@ccasselman download zip from https://plugins.jetbrains.com/plugin/9682-sourcegraph/versions/nightly and then in your IDE choose 'Install Plugin from Disk' and point it to the zip

image