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

3

u/gm310509 400K , 500K , 600K , 640K , 750K 7d ago

I have never experienced this. What happens if you change the screen saver to one of the standard ones (assuming you are using a third party one)?

FWIW, I mostly use IDE 1.8, but occasionally I used 2.3 and haven't noticed this issue. If you save your project, then let the screen saver kick in then move the mouse does it still happen? Is the saved project file "blank"?

6

u/Charlie_Macaw 7d ago

I have just this minute via a Google search found this:

https://github.com/arduino/arduino-ide/issues/2704

4

u/gdchinacat 6d ago

That's really appalling handling of that bug. A data loss bug has existed for over a year, it's considered an 'imperfection'. Typically data loss bugs are considered among the most severe and are fixed within days. *Especially* when the report identifies the exact commit that introduced it. This reinforces my decision to use a separate IDE and only use the arduino IDE to do uploads (because I haven't bothered to find or write a small script to do it).

3

u/Charlie_Macaw 6d ago

I have used ESPConnect to flash my ESP32 but I’m a newbie and not sure if it can be widely used across the board or if there are limitations