We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c471e commit 19d13dfCopy full SHA for 19d13df
arduino-ide-extension/src/node/core-service-impl.ts
@@ -76,10 +76,11 @@ export class CoreServiceImpl implements CoreService {
76
77
console.log('upload', options);
78
const { uri } = options;
79
- const sketchpath = await this.fileSystem.getFsPath(options.uri);
80
- if (!sketchpath) {
+ const sketchFilePath = await this.fileSystem.getFsPath(options.uri);
+ if (!sketchFilePath) {
81
throw new Error(`Cannot resolve filesystem path for URI: ${uri}.`);
82
}
83
+ const sketchpath = path.dirname(sketchFilePath);
84
85
const currentBoard = await this.boardsService.getSelectBoard();
86
if (!currentBoard) {
0 commit comments