Skip to content

Postponed update is installed on exit #874

Open
@per1234

Description

@per1234

Describe the problem

Arduino IDE now has an auto update capability (#797).

After downloading an update, the user is offered two options:

image

From #797 (comment)

when a newer version is downloaded, the user can restart the application to apply the new changes, or just close the window; in the last case, the changes will be applied at the next start-up

🐛 In contradiction to the described behavior, after you select Not now and then close the Arduino IDE, the postponed update is installed immediately.

To reproduce

  1. In order to force an update offer, download an outdated nightly build, using the variant that supports auto-update for your OS.
    Latest outdated URLs at the time of writing are here:

    These download URLs can be derived from that of the current nightly by decrementing the date component.

  2. Install the downloaded application as usual

  3. Start the installed Arduino IDE.

  4. Open the "Command Palette".
    (Ctrl+Shift+P or Command+Shift+P by default)

  5. Run the "Preferences: Open Settings (UI)" command.

  6. Change the "Arduino › Ide: Update Channel" (arduino.ide.updateChannel) setting to "nightly".

  7. Select File > Quit from the Arduino IDE menus.

  8. Start the installed Arduino IDE.

  9. Wait for the IDE to finish loading.

  10. Click the Download button on the "Update Available" dialog.

  11. Wait for the download to finish.

  12. Click the Not now button on the "Arduino IDE ___ has been downloaded." dialog.

  13. Select File > Quit from the Arduino IDE menus.

  14. Watch the Arduino IDE installation folder.

🐛 The IDE is updated immediately after exit, not on the next start-up.
The installation takes some time and there is no feedback to the user that an operation is in progress, so they might try to open the IDE again or shut down their machine during the installation.

Expected behavior

Postponed update behavior matches described behavior: update occurs on the next start-up.

Arduino IDE version

Original report

2.0.0-rc4-snapshot-354b74c

Last verified with

9a6a457

Operating system

  • Windows

Operating system version

  • Windows 10
  • Windows 11

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

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