summaryrefslogtreecommitdiff
path: root/extension/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-11 12:33:02 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-11 12:33:02 -0700
commit655b4394507a351a76d32cbb018b448c9f7ebda4 (patch)
treefbd8e0279de6bd5fcd8d5bd509d122177e1873bd /extension/src
parent857303c78860806fb28205389cb6304cfd374111 (diff)
downloadsncontinue-655b4394507a351a76d32cbb018b448c9f7ebda4.tar.gz
sncontinue-655b4394507a351a76d32cbb018b448c9f7ebda4.tar.bz2
sncontinue-655b4394507a351a76d32cbb018b448c9f7ebda4.zip
patch
Diffstat (limited to 'extension/src')
-rw-r--r--extension/src/activation/environmentSetup.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index f5d825c9..8b384e1d 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -224,6 +224,9 @@ async function setupPythonEnv() {
// First, try to run the command to install python3-venv
let [stdout, stderr] = await runCommand(`${pythonCmd} --version`);
if (stderr) {
+ await vscode.window.showErrorMessage(
+ "Python3 is not installed. Please install from https://www.python.org/downloads, reload VS Code, and try again."
+ );
throw new Error(stderr);
}
const version = stdout.split(" ")[1].split(".")[1];