Skip to content

Commit b3f47a5

Browse files
committed
Fix recursion creation of 'sketch' creation (microsoft#683)
1 parent 6c31579 commit b3f47a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/arduino/arduino.ts

+3
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ export class ArduinoApp {
149149

150150
args.push("--pref", `build.path=${outputPath}`);
151151
arduinoChannel.info(`Please see the build logs in Output path: ${outputPath}`);
152+
153+
fs.unlinkSync(path.join(outputPath, "build.options.json"));
154+
util.rmdirRecursivelySync(path.join(outputPath, "sketch"));
152155
} else {
153156
const msg = "Output path is not specified. Unable to reuse previously compiled files. Upload could be slow. See README.";
154157
arduinoChannel.warning(msg);

0 commit comments

Comments
 (0)