espruino / BangleApps

Bangle.js App Loader (and Apps)
https://banglejs.com/apps
MIT License
475 stars 1.14k forks source link

web ide: confusing interface when sending files. #2987

Open pavelmachek opened 1 year ago

pavelmachek commented 1 year ago

Affected hardware version

Bangle 2

Your firmware version

2v18

The bug

I'm uploading ~6MB file to watch using https://www.espruino.com/ide/# . It would be nice if the ide would tell me what the available space on the watch is.

For 6MB files, upload ends with

Uncaught Error: Unable to find or create file at line 1 col 159 ...yCiB9Cn0tMSAgICA="),6645888);print(">>",">")

(which is quite easy to miss, because it only appears in messages window).

I tried uploading 4MB file, somehow the "uploading" window disappeared, but it seems that upload is continuing. It took 30 minutes so far. If I attempted to run the code now, I guess I'd end up with corrupted file.

Installed apps

No response

gfwilliams commented 12 months ago

Did the 4MB upload complete in the end?

I guess yes, we could add a check for available storage before the upload.

pavelmachek commented 12 months ago

Yes, 4MB upload completed in the end (but took more than an hour; even upload to emulator is quite slow).

And yes, checking for storage before upload would be nice. More obvious message when upload fails would also be nice.