diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-05 23:49:40 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-05 23:49:40 -0700 |
commit | cf3d02c198e3e076da477ff7d1dc27182d2f8aa3 (patch) | |
tree | 82b854a83973247ee6446aa7c3760626afd0c57a /extension/src/activation/environmentSetup.ts | |
parent | 62756b491d6b4ed06db59bf3b096ce2ed92ddbaf (diff) | |
parent | 6d6a9b00b3ef0607177f525be2eb760f38dc4c59 (diff) | |
download | sncontinue-cf3d02c198e3e076da477ff7d1dc27182d2f8aa3.tar.gz sncontinue-cf3d02c198e3e076da477ff7d1dc27182d2f8aa3.tar.bz2 sncontinue-cf3d02c198e3e076da477ff7d1dc27182d2f8aa3.zip |
Merge branch 'main' of https://github.com/continuedev/continue
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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 |