Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After exiting sleep mode, IDE reloads and changes are lost #2704

Open
3 tasks done
giacomocusinato opened this issue Apr 10, 2025 · 0 comments
Open
3 tasks done

After exiting sleep mode, IDE reloads and changes are lost #2704

giacomocusinato opened this issue Apr 10, 2025 · 0 comments
Labels
topic: theia Related to the Theia IDE framework type: imperfection Perceived defect in any part of project

Comments

@giacomocusinato
Copy link
Collaborator

giacomocusinato commented Apr 10, 2025

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

  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to "Auto Save" in the "Preferences" dialog.
  3. Click the "OK" button.
    The "Preferences" dialog will close.
  4. Write some text in any file of the sketch.
  5. 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.
  6. Put your computer into sleep mode.
    • On MacOS: Apple logo > Sleep)
    • On Windows: Start menu > Power > Sleep
  7. 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

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
@giacomocusinato giacomocusinato added the type: imperfection Perceived defect in any part of project label Apr 10, 2025
@per1234 per1234 added the topic: theia Related to the Theia IDE framework label Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: theia Related to the Theia IDE framework type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants