Skip to content

Commit 0b4fff5

Browse files
committed
Fix an issue "The "path" argument must be of type string. Received undefined" // Resolve #18
1 parent 84ed7a6 commit 0b4fff5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/installer/stages/platformio-core.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ export default class PlatformIOCoreStage extends BaseStage {
171171
}
172172
const result = await this.params.pythonPrompt.prompt();
173173
status = result.status;
174-
if (status === this.params.pythonPrompt.STATUS_CUSTOMEXE) {
174+
if (
175+
status === this.params.pythonPrompt.STATUS_CUSTOMEXE &&
176+
result.pythonExecutable
177+
) {
175178
proc.extendOSEnvironPath('PLATFORMIO_PATH', [
176179
path.dirname(result.pythonExecutable),
177180
]);

src/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function getErrorReportUrl(title, description) {
8383
'https://github.com/platformio/platformio-vscode-ide/issues/205',
8484
],
8585
[
86-
'python3-distutils',
86+
'missed `distutils`',
8787
'https://github.com/platformio/platformio-core-installer/issues/85',
8888
],
8989
[

0 commit comments

Comments
 (0)