idea @files choose not work
Before submitting your bug report
- [x] I believe this is a bug. I'll try to join the Continue Discord for questions
- [x] 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:win 10
- Continue version: 1.0.15
- IDE version: 2024.3.5
- Model:
- config:
OR link to assistant in Continue hub:
Description
When I try to use @Files and choose file to add to chat something going wrong with IDEA notification error "Error handling message of type showToast: java.lang.UnsupportedOperationException: JsonObject " Nothing in logs and nothing in dev tools console
To reproduce
No response
Log output
nothing in idea logs
Facing same issue, nothing in logs just jetbrains notification, some files cannot be added to context while some files can. @codebase works fine. RHEL 9.4, continue 1.0.16, PyCharm 2025.1
same issue here
same issue here
Android Studio IDE:
Android Studio Meerkat Feature Drop | 2024.3.2 Build #AI-243.25659.59.2432.13423653, built on April 29, 2025 Linux Mint 21.3 kernel liquorix 6.11.*
I'm encountering the same issue when attempting to select a file; "@Files" displays the following:
Error handling message of type showToast: java.lang.UnsupportedOperationException: JsonObject
UPDATE to 1.0.16 same issue to files with name "screen", for example: PermissionScreen.kt, LoginScreen.kt, etc.
please help us... URGENT!!!
@mosinnik @jesustejerina @Wanda-Wang @unrealbato @drrros @denlogv Trying to fix it, but I could not find any way to reproduce it. is there any way I can reproduce the same error ?
+1 to @Iamshankhadeep , I tried to reproduce this on both IntelliJ and WebStorm without success.
Some context on current user reports however:
- Happening on macOS, Windows, and Linux
- Only IDEs reported are PyCharm and Android Studio
- Seems to be not persistent, sometimes it works sometimes it doesn't
- Started on 1.0.15
For folks experiencing the issue, a few things you could try to help us pin down the problem:
- Downgrade to 1.0.15
- Try out IntelliJ or a different IDE
- See if it's only happening on particular filenames like @jesustejerina reported
Additionally, please make sure to include your IDE name.
Once we're able to repro we can get it fixed ASAP 👍
I am having the same issue.
OS: Ubuntu 24.04.2 LTS PyCharm 2025.1.1.1 (Build #PY-251.25410.159, built on May 14, 2025) Continue Plugin Versions affected: 1.0.16, 1.0.15, 1.0.13
Downgrading to 1.0.8 solves the issue. This is the latest unaffected version that is available at https://plugins.jetbrains.com/plugin/22707-continue/versions/stable.
same issue here
I am having the same issue.
OS: Windows 11.0
IntelliJ IDEA 2025.1.1 (Community Edition) Build #IC-251.25410.109, built on May 7, 2025
Continue Plugin Versions affected: 1.0.16, 1.0.15 I did not test other versions
I met the same issue. But the issue was gone after i set contextLength in the models config.
Before:
{
"model": "AUTODETECT",
"title": "Autodetect",
"provider": "ollama"
}
After:
{
"model": "AUTODETECT",
"title": "Autodetect",
"contextLength": 32768,
"provider": "ollama"
}
OS: Windows 11.0 IntelliJ IDEA 2025.1 (Community Edition) Continue Plugin Version: 1.0.16
Here is what I added to get it to work:
- name: codellama:13b
provider: ollama
model: codellama:13b
roles:
- chat
- edit
- apply
defaultCompletionOptions:
contextLength: 32768
Can other folks confirm if downgrading to 1.0.8 solves the issue? That would help us pin down the problematic code.
Can other folks confirm if downgrading to 1.0.8 solves the issue? That would help us pin down the problematic code.
@Patrick-Erichsen I tried 1.0.8 in IntelliJ IDEA 2025.1 (Community Edition), the issue was gone.
Installed 1.0.16, got error Error handling message of type showToast: java.lang.UnsupportedOperationException: JsonObject. Uninstalled 1.0.16, installed 1.0.8 from the zip file and now I can't select any model at all and I can't select my old local model either (user/.continue/config.json file is still there).
What to do? Sequoia 15.5 PHPStorm 2024.3.5
I was facing similar issue, I might be wrong but it seems like bigger files just don't fit into the context window, that's why it works in some cases but not others, it seems like solution of extending ~/.continue/config.yaml proposed above helped:
defaultCompletionOptions:
contextLength: YOUR_MODEL_MAX_WINDOW_LENGTH
same issue。hope for fix
I can confirm that the issue disappears after updateing contextLength in v1.0.21. However, the error could be more explicit about this being a problem of the context window size and not something else.
Since "ollama show" reports the context length of the model, I would expect that the plugin should not require any special configuration parameter to acquire the same info.
Hm that is a good point @tcfurrer , I definitely think that would be possible. We could also do the same thing for the Capabilities
👾 ❯ ollama show llama3.1:8b
Model
architecture llama
parameters 8.0B
context length 131072
embedding length 4096
quantization Q4_K_M
Capabilities
completion
tools
Parameters
stop "<|start_header_id|>"
stop "<|end_header_id|>"
stop "<|eot_id|>"
License
LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
Llama 3.1 Version Release Date: July 23, 2024