Skip to content

Suppress error notifications for failures of convenience operations resulting from lack of Internet access #1429

Open
@per1234

Description

@per1234

Describe the request

Do not show error notifications for failures of automated non-essential operations due to lack of Internet access.

Lack of Internet access should only be considered an error condition when it causes the failure of an operation that falls under one of the following categories:

  • Essential to core functionality of Arduino IDE (e.g., download of serial-discovery tool on first run)
  • User triggered action (e.g., installing a library via Library Manager)

🙂 User will not be bothered by the appearance of unnecessary error notifications.

Describe the current behavior

Users won't necessarily have Internet access on every single startup of the IDE. Although the IDE's functionality is enhanced by the ability to access resources from the Internet, the core functionality of sketch development does not have a reliance on an Internet connection. So Internet access is not considered a prerequisite for ongoing usage of the IDE.

On every startup, the IDE reads some information from the Internet. On the first run, this includes some essential files, and communicating to the user when these could not be downloaded is important (#784). However, on all other runs the information accessed is only for non-essential features:

  • Update the indexes used by Boards Manager and Library Manager.
  • Check if there is a newer version of the Arduino IDE available.

Multiple prominent error notifications are shown on every startup when these operations fail due to lack of Internet access.

image

🙁 The cryptic index download error might give users might the impression that something is wrong with the IDE.

🙁 Users might be given the impression that the IDE can only be used while connected to the Internet.

Arduino IDE version

2.0.0-rc9.4

Operating system

Windows

Operating system version

10

Additional context

For the sake of searchability, I'll add the text of the notifications:

Error downloading index 'https://downloads.arduino.cc/packages/package_index.tar.bz2': Get "https://downloads.arduino.cc/packages/package_index.tar.bz2": dial tcp: lookup downloads.arduino.cc: no such host
Error while checking for Arduino IDE updates. Request checkForUpdates failed with message: net::ERR_NAME_NOT_RESOLVED
Error while checking for Arduino IDE updates. Request checkForUpdates failed with message: net::ERR_INTERNET_DISCONNECTED

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftype: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions