From b50a55c6ed2c70717395d30b3d3b18b7cda67bb5 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 2 Mar 2024 09:25:44 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20improve=20troubleshooting=20?= =?UTF-8?q?docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/troubleshooting.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index a733ec327..bc3196aaa 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -39,6 +39,14 @@ If you're seeing a `fetch failed` error and your network requires custom certifi You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates. +## Upgrade VS Code Version + +Continue is built against Node.js version 19.0.0 and may not be compatible with older versions of Node. If the extension completely fails to load (e.g. pressing ctrl/cmd+L causes a warning that the command does not exist, and the sidebar does not load), you may want to try upgrading VS Code to the latest version. + +## Android Studio - JCEF Not Supported + +Certain versions of Android Studio, unlike other JetBrains IDEs, do not by default support the Java Chromium Embedded Framework, which is required for Continue's web-based sidebar. If you see an error saying that JCEF failed to initialize, you may be able to solve the problem by [changing your boot runtime](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178). + ## Download a Newer Version If you are using an older version of the Continue extension, particularly one which depends on the separate Python server, we would recommend downloading the latest version of the extension, as we are constantly making bug fixes and are likely to have solved any major issues. From 8bc6280c10120df98d658dd0822b90dcf2cafe4c Mon Sep 17 00:00:00 2001 From: yuiseki Date: Sun, 3 Mar 2024 02:41:50 +0900 Subject: [PATCH 2/2] tweak: Update docs and messages about ollama (#914) * Update docs and messages about ollama * remove `ollama serve` * remove `ollama serve` --- docs/docs/walkthroughs/codellama.md | 4 ++-- docs/docs/walkthroughs/tab-autocomplete.md | 4 ++-- extensions/vscode/src/loadConfig.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docs/walkthroughs/codellama.md b/docs/docs/walkthroughs/codellama.md index 961788cc6..89177abf9 100644 --- a/docs/docs/walkthroughs/codellama.md +++ b/docs/docs/walkthroughs/codellama.md @@ -32,7 +32,7 @@ If you haven't already installed Continue, you can do that [here](https://market ## Ollama 1. Download Ollama [here](https://ollama.ai/) (it should walk you through the rest of these steps) -2. Open a terminal and run `ollama run codellama` +2. Open a terminal and run `ollama pull codellama` 3. Change your Continue config file like this: ```json title="~/.continue/config.json" @@ -41,7 +41,7 @@ If you haven't already installed Continue, you can do that [here](https://market { "title": "Code Llama", "provider": "ollama", - "model": "codellama-7b" + "model": "codellama:7b" } ] } diff --git a/docs/docs/walkthroughs/tab-autocomplete.md b/docs/docs/walkthroughs/tab-autocomplete.md index aa1a024ab..3fca6d906 100644 --- a/docs/docs/walkthroughs/tab-autocomplete.md +++ b/docs/docs/walkthroughs/tab-autocomplete.md @@ -7,7 +7,7 @@ Continue now provides support for tab autocomplete in [the VS Code extension](ht We recommend setting up tab-autocomplete with a local Ollama instance. To do this, first download the latest version of Ollama from [here](https://ollama.ai). Then, run the following command to download our recommended model: ```bash -ollama run starcoder:3b +ollama pull starcoder:3b ``` Once it has been downloaded, you should begin to see completions in VS Code. @@ -78,7 +78,7 @@ Follow these steps to ensure that everything is set up correctly: 1. Make sure you have the pre-release version of the extension installed. 2. Make sure you have the "Enable Tab Autocomplete" setting checked (can toggle by clicking the "Continue" button in the status bar). 3. Make sure you have downloaded Ollama. -4. Run `ollama run starcoder:3b` to verify that the model is downloaded. +4. Run `ollama pull starcoder:3b` to verify that the model is downloaded. 5. Make sure that any other completion providers are disabled (e.g. Copilot), as they may interfere. 6. Make sure that you aren't also using another Ollama model for chat. This will cause Ollama to constantly load and unload the models from memory, resulting in slow responses (or none at all) for both. 7. Check the output of the logs to find any potential errors (cmd/ctrl+shift+p -> "Toggle Developer Tools" -> "Console" tab). diff --git a/extensions/vscode/src/loadConfig.ts b/extensions/vscode/src/loadConfig.ts index 4f2ddc502..267c8a8be 100644 --- a/extensions/vscode/src/loadConfig.ts +++ b/extensions/vscode/src/loadConfig.ts @@ -159,7 +159,7 @@ function setupLlm(llm: ILLM): ILLM { if (resp.status === 404 && !resp.url.includes("/v1")) { if (text.includes("try pulling it first")) { const model = JSON.parse(text).error.split(" ")[1].slice(1, -1); - text = `The model "${model}" was not found. To download it, run \`ollama run ${model}\`.`; + text = `The model "${model}" was not found. To download it, run \`ollama pull ${model}\`.`; } else if (text.includes("/api/chat")) { text = "The /api/chat endpoint was not found. This may mean that you are using an older version of Ollama that does not support /api/chat. Upgrading to the latest version will solve the issue."; @@ -239,7 +239,7 @@ export class TabAutocompleteModel { if (!TabAutocompleteModel.shownDeepseekWarning) { vscode.window .showWarningMessage( - `Your local Ollama instance doesn't yet have DeepSeek Coder. To download this model, run \`ollama run deepseek-coder:1.3b-base\` (recommended). If you'd like to use a custom model for tab autocomplete, learn more in the docs`, + `Your local Ollama instance doesn't yet have DeepSeek Coder. To download this model, run \`ollama pull deepseek-coder:1.3b-base\` (recommended). If you'd like to use a custom model for tab autocomplete, learn more in the docs`, "Documentation", "Copy Command" ) @@ -252,7 +252,7 @@ export class TabAutocompleteModel { ); } else if (value === "Copy Command") { vscode.env.clipboard.writeText( - "ollama run deepseek-coder:1.3b-base" + "ollama pull deepseek-coder:1.3b-base" ); } });