Skip to content
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

Web Workflow: SD Folder contents intermittently only shows placeholder #9040

Closed
makermelissa opened this issue Mar 11, 2024 · 4 comments
Closed
Labels

Comments

@makermelissa
Copy link
Collaborator

CircuitPython version

Adafruit CircuitPython 9.0.0-rc.0 on 2024-03-08; Adafruit Camera with ESP32S3
Board ID:adafruit_esp32s3_camera
UID:CD4557ADE748

Code/REPL

Fancy Camera Example is running on Camera

Behavior

N/A. No error messages. See Description for more info.

Description

Occasionally, the SD folder shows incorrect files. I noticed this after a file operation especially when deleting or uploading a file, the only file that will show is placeholder.txt (and ._placeholder.txt). However, refreshing the browser shows the actual files there. It doesn't seem to affect the root file system and I noticed this both with a read only and non-read only file system.

Additional information

This could be related to #8980, as it was also intermittent.

Screenshot 2024-03-11 at 1 31 13 PM Screenshot 2024-03-11 at 1 31 26 PM
@makermelissa makermelissa changed the title Web Workflow: SD Folder contents intermittantly only shows placeholder Web Workflow: SD Folder contents intermittently only shows placeholder Mar 11, 2024
@tannewt
Copy link
Member

tannewt commented Mar 11, 2024

This happens if you request the sd directory while code is restarting. SD access depends on the user code being active.

@makermelissa
Copy link
Collaborator Author

Ah ok. Yeah, I just checked and the file ops were causing a code restart. Do you know if there is a way to have it check if code is still restarting so that the correct contents are shown to the user. I could probably make something with the full code editor, but the problem would persist with the built-in one.

@tannewt
Copy link
Member

tannewt commented Mar 11, 2024

I don't think there is. My intent was to fix this by having SD cards mount automatically and persist on boards with it built in.

@tannewt
Copy link
Member

tannewt commented Mar 12, 2024

Closing in favor of #8678

@tannewt tannewt closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants