diff options
author | Ty Dunn <ty@tydunn.com> | 2023-07-05 23:20:01 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-07-05 23:20:01 -0700 |
commit | c0177d013e79593e6444069feec08bc2dff9c157 (patch) | |
tree | 1d6f470c7ce8f7284187f7d60be9b07c47b2464a /extension | |
parent | 35f5beabe55c59149ad0a6e4eb242fbc5352bf2e (diff) | |
download | sncontinue-c0177d013e79593e6444069feec08bc2dff9c157.tar.gz sncontinue-c0177d013e79593e6444069feec08bc2dff9c157.tar.bz2 sncontinue-c0177d013e79593e6444069feec08bc2dff9c157.zip |
running scripts is disabled error message
Diffstat (limited to 'extension')
-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 |