-
-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDE is non-functional if package index can't be loaded #1084
Comments
This will be partially fixed with #1132. A follow-up issue is here: arduino/arduino-cli#1788 |
I'm experiencing the same behaviour on my machine since updating to 2.0 RC8. I suppose I will have to go through all my board managers - yay! http://arduino.esp8266.com/stable/package_esp8266com_index.json A hint in the output window would be nice ;) |
Hi @Lorandil. There have been significant advancements since the 2.0.0-rc8 version of the Arduino IDE you are using. Please always test using the latest nightly build before submitting a report here on GitHub. In this case, there is work in progress in a pull request to even further improve the handling of these URLs. The tester build from that pull request is the most advanced form of the Arduino IDE. Please give it a try and then tell us whether it solves your issue. I'll provide instructions for how you can download the tester build:
|
Hi @per1234 , I tried the nightly from today and it didn't solve the problem for me. |
@Lorandil I think it will be better for us to continue this investigation over on the Arduino Forum. Please post in the dedicated category for Arduino IDE 2.x: https://forum.arduino.cc/c/software/arduino-ide-2-0-beta/93 I'm certain to see your post over there. |
The issue was closed inadvertently during the merge of #1132 due to a chance occurrence of a GitHub issue closing keyword. The IDE has been made much more resilient to failed package index downloads via #1132, and also does an excellent job of communicating about such failures to the user via the notification system. The IDE now works just as expected when following the instructions I provided above. There remains one case where a failed package index download produces unexpected behavior:
🐛 The IDE startup hangs at the splash screen Additional contextThe IDE will start and function correctly if you close and then restart it. |
Hi all, The working boards are there and an error message is displayed - which exposes the root cause of the problem: Thanks for fixing the problem! |
I'm glad you were able to find the problem @Lorandil
Thanks for your report. I did some experimentation but was not ever able to reproduce the problem. Please provide detailed instructions I can follow to reproduce it. |
- IDE2 can start if the package index download fails. Closes arduino#1084 - Split the lib and platform index update. Closes arduino#1156 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
- IDE2 can start if the package index download fails. Closes arduino#1084 - Split the lib and platform index update. Closes arduino#1156 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
- IDE2 can start if the package index download fails. Closes arduino#1084 - Split the lib and platform index update. Closes arduino#1156 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Describe the problem
Package indexes are used by the Arduino Boards Manager system to track the Arduino boards platforms that are available for installation.
These come from two types of sources:
The package indexes are downloaded from these URLs by Arduino IDE 2.x on startup.
🐛 Under the following conditions, the IDE is non-functional:
directories.data
To reproduce
🐛 No boards are shown.
🐛 There is no "Boards" menu.
🐛 The view is empty, not even showing the currently installed platforms.
🐛 The view is empty.
🐛 The only way for the user to identify the problem is searching through the logs.
Expected behavior
Clearly communicate to the user that there was a problem with downloading the package index.
It would probably also make sense to retain general functionality of the Arduino IDE (though of course the Boards Manager functionality that relies on the missing package index in particular will not be available).
Arduino IDE version
2.0.0-rc7-snapshot-a715da3
Operating system
Windows
Operating system version
10
Additional context
I bisected the issue to 4c55807 (does not occur with the build from cb50d3a)
The logs contain the following:
Even though it is most likely to occur with package indexes provided by via the "Additional Boards Manager URLs" preference (whether by user error, no connection to Internet, or transient network outage on the server), it does also occur even with the primary package index so long as the conditions described previously are present.
Originally reported at #1036 (comment)
I mistakenly claimed that issue had been fixed by #1045 because I did not realize at that time that the package index's absence from
directories.data
was a required condition to reproduce it.Related:
Issue checklist
The text was updated successfully, but these errors were encountered: