From 4b44113f2c48eac43e96e4a30faded8efa6673ed Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Tue, 25 Aug 2020 16:03:49 +0200 Subject: [PATCH] GH-311: Fixed FS path to URI conversion issue. Instead of passing the FS path (`string`) to the `LoadSketch` method, we have to convert it into a proper URI string. Closes arduino/arduino-pro-ide#311 Signed-off-by: Akos Kitta --- arduino-ide-extension/src/node/sketches-service-impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arduino-ide-extension/src/node/sketches-service-impl.ts b/arduino-ide-extension/src/node/sketches-service-impl.ts index f79e8480..643f96ed 100644 --- a/arduino-ide-extension/src/node/sketches-service-impl.ts +++ b/arduino-ide-extension/src/node/sketches-service-impl.ts @@ -324,7 +324,7 @@ void loop() { for (let i = 0; i < files.length; i++) { if (files[i] === basename + '.ino') { try { - await this.loadSketch(fsPath); + await this.loadSketch(FileUri.create(fsPath).toString()); return true; } catch { } }