Open per1234 opened 1 year ago
if we are speaking of this notification windows, please add an option to never show it again.
It is so useless and annoying because it hides the output, makes a distraction for your eyes and 99%, the error is dumb and don't need copy.
Select text from the output windows is enough !!!
@AlbyIanna, do you have any objections if I take over this task? It's very much connected with #1438. Thanks!
Update: leave the assignments as-is.
Easier if IDE2 runs the update checks only if navigator.onLine
. Otherwise, it doesn't. No error handling would be required.
IDE2 already warns the users if there is no Internet connection.
@kittaakos unfortunately using navigator.onLine
is not a safe indicator as it can result in false positives:
Since many cases return true, you should treat with care situations of getting false positives, as we cannot always assume that true value means that Electron can access the Internet. For example, in cases when the computer is running a virtualization software that has virtual Ethernet adapters in "always connected" state. Therefore, if you want to determine the Internet access status of Electron, you should develop additional means for this check.
Then I believe we should handle those errors somehow. It would also be nice to change those two lines to use a more reliable way of checking the internet connection, but I guess we can handle that separately.
unfortunately using
navigator.onLine
is not a safe indicator as it can result in false positives:
Thanks for the link. What about trying is-reachable
or is-online
? I am sure a lib with 100k downloads per week will perform better than anything we do in-house.
Thank you, I will do some tests with those packages.
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:
π 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 (https://github.com/arduino/arduino-ide/issues/784). However, on all other runs the information accessed is only for non-essential features:
Multiple prominent error notifications are shown on every startup when these operations fail due to lack of Internet access.
π 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:
Issue checklist