adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.11k stars 1.22k forks source link

mac os finder killing file contents on HalloWing #1297

Closed jedgarpark closed 5 years ago

jedgarpark commented 6 years ago

I've had something odd happen a few times now on HalloWing w the Hackaday Superconference badge code. I rename the touchslideshow_code.py to code.py in the Finder, and when it, restarts the code.py file is an entirely empty file.

Running 4.0.0 Alpha 2 and this code: (https://github.com/adafruit/CircuitPython_Badge_README/tree/master/final_versions/HACKADAY_SUPERCON_2018)

tannewt commented 6 years ago

@jedgarpark What do you mean by restart? Are you unplugging it and plugging back in?

jedgarpark commented 6 years ago

@tannewt No, the board restarts whenever I add or change a file using the Finder, so when I rename the .py file to code.py and hit enter, the Feather restarts.

tannewt commented 6 years ago

By restart you mean the code reruns right? (We usually call that reload) Or does the usb connection actually drop?

jedgarpark commented 6 years ago

Ah, got it. I mean reload.

tannewt commented 5 years ago

This is going to be hard to reproduce and is likely no longer an issue. Please re-open if it still is an issue.