Skip to content

Commit

Permalink
update error check
Browse files Browse the repository at this point in the history
  • Loading branch information
Almenon committed Nov 19, 2024
1 parent acd547e commit 088e5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PreviewManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class PreviewManager {
private warnIfOutdatedPythonVersion(pythonPath: string){
PythonShell.getVersion(`"${pythonPath}"`).then((out)=>{
let version = out.stdout ? out.stdout : out.stderr
if(version?.includes("Python 3.4") || version?.includes("Python 2")){
if(version?.includes("Python 2") || version?.includes("Python 3.4") || version?.includes("Python 3.5") || version?.includes("Python 3.6")){
vscode.window.showErrorMessage(`AREPL no longer supports ${version}.
Please upgrade or set AREPL.pythonPath to a diffent python.
AREPL needs python 3.7 or greater`)
Expand Down

0 comments on commit 088e5e6

Please sign in to comment.