Open
Description
Describe the problem
When the operative system re-activate from sleep mode, the IDE seems to perform a reload (loading logo is shown) and current changes in the code, logs in output view and serial monitor are lost.
To reproduce
- Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open. - Uncheck the box next to "Auto Save" in the "Preferences" dialog.
- Click the "OK" button.
The "Preferences" dialog will close. - Write some text in any file of the sketch.
- OPTIONAL: to verify that this affects also output view and serial logs, perform any action that would write some logs in output and serial monitor.
- Put your computer into sleep mode.
- On MacOS: Apple logo > Sleep)
- On Windows: Start menu > Power > Sleep
- Wake the computer.
🐛 The IDE reloads and all unsaved changes to the sketch are lost.
🐛 The content of the output view and serial monitor is cleared.
Expected behavior
The IDE should maintain the current state through sleep/wake cycles.
Arduino IDE version
2.3.6
Operating system
- macOS
- Linux
- Windows
Operating system version
- macOS 15.3.2
- Ubuntu 24.04.2
- Windows 11
Additional context
I bisected the regression to 859d29d / #2654 (does not occur when using the build at the previous commit d298b3f).
Originally reported at https://forum.arduino.cc/t/arduino-ide-2-3-5-problem/1371263 / https://forum.arduino.cc/t/ide-2-3-5-problem/1371404
Additional reports
- After exiting sleep mode, IDE reloads and changes are lost #2704 (comment)
- https://forum.arduino.cc/t/arduino-ide-2-3-6-arbitrarily-clears-the-output-and-serial-monitor/1371986
- https://forum.arduino.cc/t/arduino-ide-no-perserving-state-when-go-into-energy-saving-mac/1378108
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details
Metadata
Metadata
Assignees
Labels
Related to the Theia IDE frameworkRelated to the Theia IDE frameworkPerceived defect in any part of projectPerceived defect in any part of project