From c0177d013e79593e6444069feec08bc2dff9c157 Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Wed, 5 Jul 2023 23:20:01 -0700 Subject: running scripts is disabled error message --- extension/src/activation/environmentSetup.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 71b774d9..d6c9241b 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -195,6 +195,11 @@ async function setupPythonEnv() { if (checkEnvExists()) { break; } else if (stderr) { + if (stderr.includes("Running Scripts is Disabled on this System")) { + vscode.window.showErrorMessage( + "A Python virtual enviroment cannot be activated because running scripts is disabled for this user. Please enable signed scripts to run with this command in PowerShell: `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`, reload VS Code, and then try again." + ); + } throw new Error(stderr); } else { // Remove the env and try again -- cgit v1.2.3-70-g09d2 From 6d6a9b00b3ef0607177f525be2eb760f38dc4c59 Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Wed, 5 Jul 2023 23:24:10 -0700 Subject: OpenAI api key message --- continuedev/src/continuedev/core/sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/continuedev/src/continuedev/core/sdk.py b/continuedev/src/continuedev/core/sdk.py index fe975b99..49513013 100644 --- a/continuedev/src/continuedev/core/sdk.py +++ b/continuedev/src/continuedev/core/sdk.py @@ -29,7 +29,7 @@ class Models: def __load_openai_model(self, model: str) -> OpenAI: async def load_openai_model(): api_key = await self.sdk.get_user_secret( - 'OPENAI_API_KEY', 'Enter your OpenAI API key, OR press enter to try for free') + 'OPENAI_API_KEY', 'Enter your OpenAI API key or press enter to try for free') if api_key == "": return ProxyServer(self.sdk.ide.unique_id, model) return OpenAI(api_key=api_key, default_model=model) -- cgit v1.2.3-70-g09d2