From b852c7f0bcd224f13cecfb8f2962034f8b2ad8f8 Mon Sep 17 00:00:00 2001 From: Giedrius <10329476+giedriuzz@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:46:13 +0200 Subject: [PATCH 1/3] Fix download command syntax in mpremote.ts --- src/mpremote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpremote.ts b/src/mpremote.ts index fa59cb1..02a5c1f 100644 --- a/src/mpremote.ts +++ b/src/mpremote.ts @@ -48,7 +48,7 @@ export class MPRemote { download(port: string, remotePath: string, localPath: string) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp ':${remotePath}' '${localPath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp :${remotePath} ${localPath}`); } } From d933c95a5592728b42975f093b76069b29933821 Mon Sep 17 00:00:00 2001 From: Giedrius <10329476+giedriuzz@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:46:53 +0200 Subject: [PATCH 2/3] Fix upload command syntax in mpremote.ts --- src/mpremote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpremote.ts b/src/mpremote.ts index 02a5c1f..af18069 100644 --- a/src/mpremote.ts +++ b/src/mpremote.ts @@ -150,7 +150,7 @@ export class MPRemote { upload(port: string, localPath: string, remotePath: string) { if (port && localPath && remotePath) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp '${localPath}' ':${remotePath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp ${localPath} :${remotePath}`); } } From 08a4fc8a16c0ec71770d27f75e4044e7b0fae5d9 Mon Sep 17 00:00:00 2001 From: Giedrius <10329476+giedriuzz@users.noreply.github.com> Date: Wed, 4 Mar 2026 21:35:24 +0200 Subject: [PATCH 3/3] Replace single quotes with double quotes in commands not correct work in Windows 11 on Antigravity --- out/mpremote.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/out/mpremote.js b/out/mpremote.js index 8c53f60..8547916 100644 --- a/out/mpremote.js +++ b/out/mpremote.js @@ -34,7 +34,7 @@ class MPRemote { } cat(port, filePath) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} cat '${filePath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} cat "${filePath}"`); } } df(port) { @@ -44,12 +44,12 @@ class MPRemote { } download(port, remotePath, localPath) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp ':${remotePath}' '${localPath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp ":${remotePath}" "${localPath}"`); } } exec(port, codeString) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} exec '${codeString}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} exec "${codeString}"`); } } listDevs() { @@ -57,7 +57,7 @@ class MPRemote { } ls(port, dir) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} fs ls '${dir}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} fs ls "${dir}"`); } } mipInstall(port, pkg) { @@ -67,7 +67,7 @@ class MPRemote { } mkdir(port, dirPath) { if (port) { - this.terminal.sendText(`${this.mpremote} connect ${port} fs mkdir '${dirPath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} fs mkdir "${dirPath}"`); } } repl(port) { @@ -82,17 +82,17 @@ class MPRemote { } rm(port, filePath) { if (port && filePath) { - this.terminal.sendText(`${this.mpremote} connect ${port} fs rm ':${filePath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} fs rm ":${filePath}"`); } } rmdir(port, dirPath) { if (port && dirPath) { - this.terminal.sendText(`${this.mpremote} connect ${port} fs rmdir ':${dirPath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} fs rmdir ":${dirPath}"`); } } run(port, filePath) { if (port && filePath) { - this.terminal.sendText(`${this.mpremote} connect ${port} run '${filePath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} run "${filePath}"`); } } setrtc(port) { @@ -103,7 +103,7 @@ class MPRemote { sync(port, localRoot) { if (port && localRoot) { console.debug("Sync it up, Kris! I'm about to."); - this.terminal.sendText(`cd '${localRoot}'`); + this.terminal.sendText(`cd "${localRoot}"`); (0, fs_1.readdir)(localRoot, { withFileTypes: true }, (err, entries) => { if (err) { console.error(err); @@ -111,7 +111,7 @@ class MPRemote { } else { console.debug('Directory entries found:', entries.length); - this.terminal.sendText(`cd '${localRoot}'`); + this.terminal.sendText(`cd "${localRoot}"`); entries.forEach(entry => { console.debug('Examining directory entry:', entry); if (entry.isDirectory()) { @@ -119,13 +119,13 @@ class MPRemote { console.debug('Skipping directory:', entry.name); } else { - console.debug(`${this.mpremote} connect ${port} fs cp -r '${entry.name}' :`); - this.terminal.sendText(`${this.mpremote} connect ${port} fs cp -r '${entry.name}' :`); + console.debug(`${this.mpremote} connect ${port} fs cp -r "${entry.name}" :`); + this.terminal.sendText(`${this.mpremote} connect ${port} fs cp -r "${entry.name}" :`); } } else { - console.debug(`${this.mpremote} connect ${port} fs cp '${entry.name}' :`); - this.terminal.sendText(`${this.mpremote} connect ${port} fs cp '${entry.name}' :`); + console.debug(`${this.mpremote} connect ${port} fs cp "${entry.name}" :`); + this.terminal.sendText(`${this.mpremote} connect ${port} fs cp "${entry.name}" :`); } }); } @@ -134,7 +134,7 @@ class MPRemote { } upload(port, localPath, remotePath) { if (port && localPath && remotePath) { - this.terminal.sendText(`${this.mpremote} connect ${port} cp '${localPath}' ':${remotePath}'`); + this.terminal.sendText(`${this.mpremote} connect ${port} cp "${localPath}" ":${remotePath}"`); } } version(port) { @@ -144,4 +144,4 @@ class MPRemote { } } exports.MPRemote = MPRemote; -//# sourceMappingURL=mpremote.js.map \ No newline at end of file +//# sourceMappingURL=mpremote.js.map