summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-06-27 14:58:22 -0700
committerGitHub <noreply@github.com>2023-06-27 14:58:22 -0700
commit973a464084c076540567da182938e14e45dd1a7c (patch)
treef691560c47ecaebc177ec31912dc57cd986f90fd /extension/src/activation/environmentSetup.ts
parentfd0b1b3e8ec6d1acc8409e39537507cd003e19f4 (diff)
parent92adae141afb5af680e7924627851b71264f779e (diff)
downloadsncontinue-973a464084c076540567da182938e14e45dd1a7c.tar.gz
sncontinue-973a464084c076540567da182938e14e45dd1a7c.tar.bz2
sncontinue-973a464084c076540567da182938e14e45dd1a7c.zip
Merge pull request #156 from continuedev/download-python
require python3 already downloaded
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r--extension/src/activation/environmentSetup.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index ec0e228d..e4f8d6ed 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -63,8 +63,10 @@ async function getPythonPipCommands() {
pythonCmd = "python";
} else {
// Python doesn't exist at all
- console.log("Python3 not found, downloading...");
- await downloadPython3();
+ vscode.window.showErrorMessage(
+ "Continue requires Python3. Please install from https://www.python.org/downloads, reload VS Code, and try again."
+ );
+ throw new Error("Python3 is not installed.");
}
}
let pipCmd = pythonCmd.endsWith("3") ? "pip3" : "pip";