Skip to content

Updating rc9.1 -> rc9.2 ignores unsaved sketch #1317

@aliphys

Description

@aliphys

Describe the problem

The IDE automatically looks for updates and informs the user. Prior to updating, the user is asked to close and update the software. When you have an unsaved sketch and want to update the IDE, the IDE asks you to save the current sketch but goes ahead with the installer anyway.

image

The unsaved sketch is then forced closed, which may lead to loss of work.
image

To reproduce

  1. Open Arduino IDE 2.0.0rc9.1
  2. Make a sketch, but do not save it
  3. Download rc9.2 when asked to
  4. Once rc9.2 has been downloaded, click on Close & Install
  5. Ignore the window asking you to save
  6. Install IDE rc9.2
  7. The previous version of the IDE (rc9.1) is forcefully shut down without any warning

Expected behavior

The installation procedure does not proceed until the unsaved sketch is taken care of.

Arduino IDE version

IDE 2.0.0-rc9.1

Operating system

Windows

Operating system version

Windows 10

Additional context

Not valid for the nightly build

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

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: 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

    Issue actions