Continue "freezes" the IDE when attempting to use a chat model
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
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows 10
- Continue: v0.0.64
- IDE: IntelliJ
- Model: codellama
- config.json:
{
"models": [
{
"title": "Codegemma",
"model": "codegemma-latest",
"contextLength": 32000,
"provider": "ollama",
"apiKey": ""
},
{
"model": "codellama",
"title": "Codellama",
"apiBase": "http://192.168.1.200:11434",
"provider": "ollama"
},
{
"model": "AUTODETECT",
"title": "Ollama",
"apiBase": "http://192.168.1.200:11434",
"provider": "ollama"
}
],
"customCommands": [
{
"name": "test",
"prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
"description": "Write unit tests for highlighted code"
}
],
"tabAutocompleteModel": {
"title": "Starcoder2 3b",
"provider": "ollama",
"model": "starcoder2:3b"
},
"contextProviders": [
{
"name": "diff",
"params": {}
},
{
"name": "folder",
"params": {}
},
{
"name": "codebase",
"params": {}
}
],
"slashCommands": [
{
"name": "edit",
"description": "Edit selected code"
},
{
"name": "comment",
"description": "Write comments for the selected code"
},
{
"name": "share",
"description": "Export the current chat session to markdown"
},
{
"name": "commit",
"description": "Generate a git commit message"
}
],
"embeddingsProvider": {
"provider": "free-trial"
},
"reranker": {
"name": "free-trial"
}
}
Description
When attempting to use the chat in Continue, the plugin goes into a state where it does nothing. It continues to display the pretty color animation showing that it is attempting to do its chat, but the entire IDE is frozen. In fact, even after clicking on the Cancel button, IntelliJ IDE does not process the muse input. The only way to get out of its frozen state is to go to the Windows task manager and stop the IntelliJ process.
To reproduce
Note: I am attempting to use Ollama on a remote machine, because I have more than one instance of IntelliJ running on different machines running different operating systems. My config.json reflects this.
- Go to the server running ollama.
- Start running the codellama model: ollama run codellama
- Go to my Windows client that is running IntelliJ
- Click on the "Continue" icon on the right side of the IDE
- Select the Codellama model
- Enter a test prompt: Write an html page that displays a login
- Hit the "Enter"
- Attempt to click on anything else in the IDE. Note that the entire IDE becomes unresponsive -- even when clicking on the Close button in the window!
Log output
[2024-09-15T16:45:03] [info] Starting Continue core...
[2024-09-15T16:45:03] Setup
[2024-09-15T16:45:03] Core started
[2024-09-15T16:45:03] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[info] Starting Continue core...
[2024-09-15T16:45:33] [info] Starting Continue core...
[2024-09-15T16:45:33] Setup
[2024-09-15T16:45:33] Core started
[2024-09-15T16:45:33] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[info] Starting Continue core...
[2024-09-15T16:45:35] [info] Starting Continue core...
[2024-09-15T16:45:35] Setup
[2024-09-15T16:45:35] Core started
[2024-09-15T16:45:35] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[info] Starting Continue core...
[2024-09-15T16:45:38] [info] Starting Continue core...
[2024-09-15T16:45:38] Setup
[2024-09-15T16:45:38] Core started
[2024-09-15T16:45:38] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[info] Starting Continue core...
[2024-09-15T16:45:43] [info] Starting Continue core...
[2024-09-15T16:45:43] Setup
[2024-09-15T16:45:43] Core started
[2024-09-15T16:45:43] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[info] Starting Continue core...
[2024-09-15T16:45:52] [info] Starting Continue core...
[2024-09-15T16:45:52] Setup
[2024-09-15T16:45:52] Core started
[2024-09-15T16:45:52] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[info] Starting Continue core...
[2024-09-15T16:46:09] [info] Starting Continue core...
[2024-09-15T16:46:09] Setup
[2024-09-15T16:46:09] Core started
[2024-09-15T16:46:09] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[info] Starting Continue core...
[2024-09-15T16:47:03] [info] Starting Continue core...
[2024-09-15T16:47:03] Setup
[2024-09-15T16:47:03] Core started
[2024-09-15T16:47:03] Invalid Continue server url TypeError [ERR_INVALID_URL]: Invalid URL
[2024-09-15T16:47:03] Error loading remote config: Error: ENOENT: no such file or directory, open 'C:\Users\Robert Brown III\.continue\.configs\None\config.json'
[2024-09-15T16:47:03] Build error. Please check your ~/.continue/config.ts file: Error: Command failed: C:\Users\Robert\ Brown\ III\AppData\Roaming\JetBrains\IntelliJIdea2024.1\plugins\continue-intellij-extension\core\win32-x64/esbuild.exe C:\Users\Robert\ Brown\ III\.continue\config.ts --bundle --outfile=C:\Users\Robert\ Brown\ III\.continue\out\config.js --platform=node --format=cjs --sourcemap --external:fetch --external:fs --external:path --external:os --external:child_process
'C:\Users\Robert\' is not recognized as an internal or external command,
operable program or batch file.
[2024-09-15T16:47:03] Error loading remotely set config.js: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
Affects VSCode as well .
Worse, uses 100% CPU on multiple cores, busy looping away on laptops that can't really afford this much pointless, endless, overheating and battery drain. Useless for me as a result.
~~Probably~~ Possibly Related: sometimes when our (external) Ollama endpoint doesn't respond:
- IntelliJ: The Continue plugin locks up the whole IntelliJ IDE.
- VSCode: The IDE spins the Continue logo, but otherwise works fine.
UPDATE: Seems there are other causes of IDE freezes, but for us one seems to be:
- An external service (like Ollama) not responding.
- IntelliJ plugin having a particularly hard time with that, versus VSCode.
I have similar problem. The cpu load in this cases is very high, even without local model (even 600-700%) Had to disable it
I have similar problem. The cpu load in this cases is very high, even without local model (even 600-700%) Had to disable it
That is very interesting.
My Ollama instance is running as a docker container on another machine. It is unlikely that it is Ollama that is causing the high CPU usage on the machine running Continue.
No: the Continue plugin is causing my machine to use up the CPU -- which in turn is causing IntelliJ to freeze.
Is anyone looking at this problem? Or is it being ignored?
@factor3 - Looks like PR #3134 attempted to address this; looks like it got merged. Not sure which release it's in though. And it may not be the only thing causing IntelliJ freezes.
Hi, thanks for this great extension, I am running LM studio on another machine over network. still vscode sometimes freeze when loading completions. I don't see cpu surges but ram is almost full (I have 8gb).
I am finding that when the Continue extension is enabled, I can lose the ability to copy/paste. When I copy something to the clipboard, it will not copy. When I disable the Continue extension, I can copy the text again.
The extension also "freezes" the IDE. The Source Control extension will enter a state where it indicates it is busy with the busy indicator but never exit this state. The Continue extension is also in this state.
To fix this, I disable the Continue extension. I only have this problem when the Continue extension is enabled.
I have configured it to use Ollama, and there are no active calls to the Ollama server now.
I restart extensions when I disable the Continue extension to fix the issue.
I am using VSCode. This issue has persisted across many versions of Continue and VSCode releases.
When I lose the ability to copy and paste, I notice that Source Control is in a busy state, and Continue fails to work correctly.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!