You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not try to parse the original `NotFound` error message, but look for
a sketch somewhere in the requested path.
Signed-off-by: Akos Kitta <[email protected]>
Copy file name to clipboardExpand all lines: arduino-ide-extension/src/node/sketches-service-impl.ts
+53-47
Original file line number
Diff line number
Diff line change
@@ -734,62 +734,68 @@ function isNotFoundError(err: unknown): err is ServiceError {
734
734
735
735
/**
736
736
* Tries to detect whether the error was caused by an invalid main sketch file name.
737
-
* IDE2 should handle gracefully when there is an invalid sketch folder name. See the [spec](https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-root-folder) for details.
738
-
* The CLI does not have error codes (https://github.com/arduino/arduino-cli/issues/1762), so IDE2 parses the error message and tries to guess it.
737
+
* IDE2 should handle gracefully when there is an invalid sketch folder name.
738
+
* See the [spec](https://arduino.github.io/arduino-cli/latest/sketch-specification/#sketch-root-folder) for details.
739
+
* The CLI does not have error codes (https://github.com/arduino/arduino-cli/issues/1762),
740
+
* IDE2 cannot parse the error message (https://github.com/arduino/arduino-cli/issues/1968#issuecomment-1306936142)
741
+
* so it checks if a sketch even if it's invalid can be discovered from the requested path.
739
742
* Nothing guarantees that the invalid existing main sketch file still exits by the time client performs the sketch move.
0 commit comments