earlephilhower / mklittlefs

Utility for creating LittleFS images for upload on the ESP8266 and RP2040 Pico
MIT License
147 stars 52 forks source link

Error: Unexpected token '-b' in expression or statement #26

Closed mark-hahn closed 2 years ago

mark-hahn commented 2 years ago

I am running a platformio task in vscode. It runs a file download_fs.py. That task/python script generates and runs mklittlefs with this command and results ...

> "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.

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?

mark-hahn commented 2 years ago

I found that the error Unexpected token '-b' in expression or statement comes from powershell so I'll close this. But if anyone could tell me why powershell is giving this error I will be eternally grateful.