Updater downloads IDE without user approval #848
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
Arduino IDE now has an auto update capability (#797).
This consists of two important components:
🐛 The IDE is downloading the available update before asking the user whether they want it.
To Reproduce
Start the IDE.
Open the "Command Palette".
(Ctrl+Shift+P or Command+Shift+P by default)
Run the "Preferences: Open Settings (UI)" command.
Change the "Arduino › Ide: Update Channel" (
arduino.ide.updateChannel
) setting to "nightly".(updates from "stable" channel are currently failing: The built-in IDE updater does not work with my snapshot build #843)
Select File > Quit from the Arduino IDE menus.
(This is necessary because the channel setting change is only recognized after a restart: Update channel setting change recognized only after IDE restart #847)
Delete the
%LOCALAPPDATA%/arduino-ide-updater
folder.(This is done to prove that the file you find there later did not already exist.)
Start the IDE from command line.
Wait a long time.
(because it is a big download)
Check the command line output.
🐛 The output shows that the IDE was downloaded:
Check the contents of
%LOCALAPPDATA%/arduino-ide-updater/pending
🐛 The folder contains a new ~160 MB file.
Delete the
%LOCALAPPDATA%/arduino-ide-updater
folder.(This is done to prove that the file you find there later did not already exist.)
Open the "Command Palette".
Run the "Arduino: Check for Arduino IDE updates" command.
🐛 The output shows that the IDE was downloaded:
Check the contents of
%LOCALAPPDATA%/arduino-ide-updater/pending
🐛 The folder contains a new ~160 MB file.
Expected behavior
The update check only checks to see if an update is available.
The IDE download should occur only after the user approves the update by clicking the Download button on the update dialog:
Desktop
Date: 2022-02-18T16:03:36.097Z
CLI Version: 0.21.0 [10107d24]
The text was updated successfully, but these errors were encountered: