-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix file download issues #291
base: beta
Are you sure you want to change the base?
Conversation
I think this may also fix #289 as status works when running locally on my machine. |
I am trying to run this branch locally but I am still having trouble downloading files and folders. If I select a single file like code.py and click the download button I see the loading indicator spin, then it goes away but no file is downloaded. In the console it prints this error message:
If I instead select a folder like I'm not sure if I understand fully how version numbers work with NPM modules. I saw in this change that adafruit/circuitpython-repl-js is moved to version |
I have found and run The package.json inside node_modules/@adafruit/circuitpython-repl-js/ does still say |
Ok, I don't think I tested selected folder downloading, so I'll take a look. |
It seems like every time I fix one thing another thing breaks. I'm getting close to finishing and realized there are 5 different test cases that need to all be working:
|
Ok, lots of testing later, it should all be working now. I ended up rewriting a lot of it and it makes a lot more sense now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally with a Sparkle motion mini. Downloading a single file, a folder, and the entire drive are all working correctly for me now.
Selecting multiple files and then pressing download did download a zip but the files inside were 0 bytes. However I didn't realize that was intended to be supported, so I see it as a bonus if it does ultimately work.
Another thing that might be nice to have ultimately is more specific status during the downloading, if it can show each filename as it's working on them it will help assure the user that "it's working" and not stalled.
Fixes #290. This also updates the version of circuitpython-repl-js with some fixes in it that were added in adafruit/circuitpython-repl-js#15.