Fixed arduino-cli ctag compile issue

This commit is contained in:
Christian Weichel 2019-05-08 20:46:53 +02:00
parent 583202eb17
commit 6722eb7089
4 changed files with 2 additions and 3 deletions

View File

@ -76,11 +76,10 @@ export class CoreServiceImpl implements CoreService {
console.log('upload', options);
const { uri } = options;
const sketchFilePath = await this.fileSystem.getFsPath(options.uri);
if (!sketchFilePath) {
const sketchpath = await this.fileSystem.getFsPath(options.uri);
if (!sketchpath) {
throw new Error(`Cannot resolve filesystem path for URI: ${uri}.`);
}
const sketchpath = path.dirname(sketchFilePath);
const currentBoard = await this.boardsService.getSelectBoard();
if (!currentBoard) {