Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit ace3b76

Browse files
authored
support absolute path for build output
1 parent f87ceb7 commit ace3b76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arduino/arduino.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class ArduinoApp {
124124
args.push("--verbose");
125125
}
126126
if (dc.output) {
127-
const outputPath = path.join(vscode.workspace.rootPath, dc.output);
127+
const outputPath = path.resolve(vscode.workspace.rootPath, dc.output);
128128
args.push("--pref", `build.path=${outputPath}`);
129129
} else {
130130
const msg = "Output path is not specified. Unable to reuse previously compiled files. Upload could be slow. See README.";
@@ -166,7 +166,7 @@ export class ArduinoApp {
166166
args.push("--verbose");
167167
}
168168
if (output || dc.output) {
169-
const outputPath = path.join(vscode.workspace.rootPath, output || dc.output);
169+
const outputPath = path.resolve(vscode.workspace.rootPath, output || dc.output);
170170
args.push("--pref", `build.path=${outputPath}`);
171171
} else {
172172
const msg = "Output path is not specified. Unable to reuse previously compiled files. Verify could be slow. See README.";

0 commit comments

Comments
 (0)