]> Git Repo - pico-vscode.git/commitdiff
Fix pico project generator not detecting path and exit with null on win
authorpaulober <[email protected]>
Sun, 16 Jul 2023 11:47:54 +0000 (13:47 +0200)
committerpaulober <[email protected]>
Sun, 16 Jul 2023 11:47:59 +0000 (13:47 +0200)
scripts/pico_project.py
src/commands/newProject.mts

index d7a2b8c8bf55c428d15a1a0f25b4fb93129338d5..e305b61ba7e244060e3fc2dde646d8c827268cae 100644 (file)
@@ -863,7 +863,7 @@ def CheckPrerequisites():
     isWindows = (platform.system() == 'Windows')
 
     # Do we have a compiler?
-    return shutil.which(COMPILER_NAME)
+    return shutil.which(COMPILER_NAME, 1, os.environ["Path" if isWindows else "PATH"])
 
 
 def CheckSDKPath(gui):
@@ -1555,3 +1555,4 @@ else :
         }
 
     DoEverything(None, params)
+    sys.exit(0)
index fe8a26b408475e2045da889df79bcda21c6255dd..db72ddf9991335f1c24ba9f539dfd98bd1d09ba5 100644 (file)
@@ -387,7 +387,7 @@ export default class NewProjectCommand extends Command {
       env: customEnv,
       cwd: getScriptsRoot(),
       windowsHide: true,
-      timeout: 5000,
+      timeout: 15000,
     });
     if (generatorExitCode === 0) {
       void window.showInformationMessage(
This page took 0.031272 seconds and 4 git commands to generate.