r/arduino 7d ago

Arduino IDE dropping code

I have discovered the Arduino IDE drops code when the screen saver kicks in and locks then the screen. On unlock, my code is gone!!

Ive had it happen several times now and its taken me this long to discover whats going on!

This is a HUGE bug.
Has anyone else had this happen?

EDIT: using ver 2.3.7

11 Upvotes

24 comments sorted by

View all comments

Show parent comments

7

u/Charlie_Macaw 7d ago edited 7d ago

I’m using 2.3.7 and deliberately have auto-save turned off otherwise everything you type gets saved and if there is an error in your code you can only undo (ctrl-Z) back to the last (auto) save which is sometimes not far enough to undo, so I prefer to manually save but if you haven’t saved and (for example) the phone rings and you get talking and the screen saver kicks in, BAM! , your code/changes have gone!!

8

u/async2 6d ago

look into git and how to use it. then you're never afraid to save your work.

-4

u/Charlie_Macaw 6d ago

I’ve seen and considered GIT previously some time ago, but for me as a hobbyist and copying and pasting back and forward to flash an ESP32 using git seems laborious

3

u/async2 6d ago edited 6d ago

What are you copying? There is no need to copy stuff to flash an esp from a git tracked project.