-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Before submitting your bug report
- I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- I'm not able to find a related conversation on GitHub discussions that reports the same bug
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: RHEL 8
- Continue version: 1.0.52
- IDE version: 2025.2.4
- Model: Intellij IDEA
- config: Local
Description
There is an obvious bug in the com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings.syncRemoteConfig
The syncRemote call cannot be deactivated and the Gson schema is violated by the plugin. This is not an issue with Intellij, this is an issue with the plugin where it violates the Intellij schema. Not a big deal, if you could turn the sync off. This manifests itself as a plugin freeze everytime the remote sync is attempted. A restart of the IDE is the only workaround. I have tried raising the sync interval to over a year. It still does not work. There is some other process triggering the sync. Perhaps a Config access save?
To be fair - I would abandon this plugin if I was not forced to use it. My experience has been predominantly negative.
Intellij IDEA Error message Below. There is no Continue core.log messages since the plugin simply freezes.
To reproduce
- Install IDEA
- install the Continue.dev plugin
- Wait for it to freeze
Log output
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $
See https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:523)
at com.google.gson.Gson.fromJson(Gson.java:1359)
at com.google.gson.Gson.fromJson(Gson.java:1260)
at com.google.gson.Gson.fromJson(Gson.java:1170)
at com.google.gson.Gson.fromJson(Gson.java:1107)
at com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings.syncRemoteConfig(ContinueExtensionSettingsService.kt:124)
at com.intellij.util.concurrency.Propagation.capturePropagationContext$lambda$9(propagation.kt:549)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:280)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 2 column 1 path $
See https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure
at com.google.gson.stream.JsonReader.unexpectedTokenError(JsonReader.java:1831)
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:509)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:512)
... 16 moreMetadata
Metadata
Assignees
Labels
Type
Projects
Status