Skip to content

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

Open
@giacomocusinato

Description

@giacomocusinato
Collaborator

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
    I verified the problem still occurs when using the latest
    My report contains all necessary details

Activity

its-all-waves

its-all-waves commented on Apr 29, 2025

@its-all-waves
Eheran1

Eheran1 commented on Jun 5, 2025

@Eheran1
locked and limited conversation to collaborators on Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: theiaRelated to the Theia IDE frameworktype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @giacomocusinato@per1234@Eheran1@its-all-waves

        Issue actions

          After exiting sleep mode, IDE reloads and changes are lost · Issue #2704 · arduino/arduino-ide