Closed rgov closed 8 months ago
Had you recently copied the file over? Sometimes the host OS caches writes. Running sync
on Mac or Linux can help.
macOS Sonoma acts differently than previous versions: it delays writes, sometimes significantly. This is a new and significant problem: see #8449. As @tannewt says, sync
can help.
Yes but I am pretty sure I had reset the board a few times in my testing.
Resetting the board (even with the microcontroller
module) without ejecting will leave the files unwritten and perhaps even corrupt the filesystem. Those writes will not be performed after a remount.
If your code resets the board, make sure to eject before running.
For what it's worth when I reverted to 8.2 I didn't encounter this issue anymore, whereas on 9 it was seriously inhibiting my ability to work.
@rgov What was the host operating system you were using, and how were you copying the files over?
macOS Sonoma, which as mentioned may delay writes. Probably drag and drop from Finder.
CircuitPython version
Code/REPL
Behavior
The filesystem is inconsistent about whether the modules exist.
Description
No response
Additional information
No response