maxgerhardt / pio-esp32-esp8266-filesystem-downloader

Script for expanding PlatformIO's ability to download LittleFS and SPIFFS filesystems from ESP32 and ESP8266 chips and their contents
35 stars 9 forks source link

Bad powershell command for extraction of downloaded binary #4

Open mark-hahn opened 2 years ago

mark-hahn commented 2 years ago

I am running a platformio task in vscode. It runs download_fs.py. The script tries to run a mklittlefs command but powershell barfs ...

> "C:\Users\mark\.platformio\packages\tool-mklittlefs\mklittlefs" -b 8192 -p 256 --unpack "unpacked_fs" "C:\Users\mark\apps\tiny\downloaded_fs_0x300000_0xfa000.bin"
At line:1 char:65
+ ... sers\mark\.platformio\packages\tool-mklittlefs\mklittlefs" 
-b 8192 -p ...
+
~~
Unexpected token '-b' in expression or statement.

The empty folder unpacked_fs was created and the downloaded binary downloaded_fs_0x300000_0xfa000.bin was in the root of the project folder.

I don't know anything about powershell and I can't figure out what is wrong with that command. I googled a lot.

Everything worked in the past before I reinstalled windows 10, vscode, and platformio and ran the project I cloned that used this. Can someone help me?

maxgerhardt commented 2 years ago

Likely it doesn't like that the binary is quoted or there is the .exe missing. I'll check. I tested this with the default terminal set to cmd.exe.

mark-hahn commented 2 years ago

I tried changing the quotes on everything but I might have missed the right combination. I'll do more experimenting.

On Sat, Jun 18, 2022 at 12:39 AM Maximilian Gerhardt < @.***> wrote:

Likely it doesn't like that the binary is quoted or there is the .exe missing. I'll check. I tested this with the default terminal set to cmd.exe.

— Reply to this email directly, view it on GitHub https://github.com/maxgerhardt/pio-esp32-esp8266-filesystem-downloader/issues/4#issuecomment-1159387169, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGGDPYRME47446HSJJOIU3VPV4KVANCNFSM5ZD5OAWQ . You are receiving this because you authored the thread.Message ID: <maxgerhardt/pio-esp32-esp8266-filesystem-downloader/issues/4/1159387169@ github.com>

mark-hahn commented 2 years ago

I give up. We need a powershell (or cmd) expert. It appears to be a simple syntax error. (I hate windows).

Edit: Let me know if you want me to post this on stackoverflow.

maxgerhardt commented 1 year ago

This should have been fixed by #7, I will retest this in Powershell.