mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-27 05:06:42 +00:00
Fix sketch upload
This commit is contained in:
parent
63c471e005
commit
19d13df886
@ -76,10 +76,11 @@ export class CoreServiceImpl implements CoreService {
|
|||||||
|
|
||||||
console.log('upload', options);
|
console.log('upload', options);
|
||||||
const { uri } = options;
|
const { uri } = options;
|
||||||
const sketchpath = await this.fileSystem.getFsPath(options.uri);
|
const sketchFilePath = await this.fileSystem.getFsPath(options.uri);
|
||||||
if (!sketchpath) {
|
if (!sketchFilePath) {
|
||||||
throw new Error(`Cannot resolve filesystem path for URI: ${uri}.`);
|
throw new Error(`Cannot resolve filesystem path for URI: ${uri}.`);
|
||||||
}
|
}
|
||||||
|
const sketchpath = path.dirname(sketchFilePath);
|
||||||
|
|
||||||
const currentBoard = await this.boardsService.getSelectBoard();
|
const currentBoard = await this.boardsService.getSelectBoard();
|
||||||
if (!currentBoard) {
|
if (!currentBoard) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user