Skip to content

No indication of what happened when platform installation fails #41

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

Closed
ubidefeo opened this issue Feb 25, 2021 · 2 comments
Closed

No indication of what happened when platform installation fails #41

ubidefeo opened this issue Feb 25, 2021 · 2 comments
Assignees
Labels
conclusion: resolved Issue was resolved criticality: high Of high impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@ubidefeo
Copy link

To Reproduce

  1. Tools > Boards Manager
  2. Try to install Arduino mbed-enabled Boards 1.3.1 (this is a fake release only intended to show a deprecation message, which is intended to fail installation)

When I do this with Arduino IDE 2.0.0 (arduino-pro-ide 0.1.2-nightly.20201021, Windows 10, .zip), it just shows "downloading arduino-beta:[email protected]" in the output console and there is no indication that the installation failed.

When I do this in the Java IDE (1.8.14 hourly 2020-09-23 10:33, Win 10), I get some nice output that makes it reasonably clear what went wrong:

Error downloading http://downloads.arduino.cc/cores/ArduinoCore-mbed-nonexistant.tar.bz2
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/cores/ArduinoCore-mbed-nonexistant.tar.bz2
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:181)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/cores/ArduinoCore-mbed-nonexistant.tar.bz2
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:149)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:83)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:60)
	at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:105)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:174)
	... 1 more
Caused by: java.io.IOException: Received invalid http status code from server: 404
	at cc.arduino.utils.network.FileDownloader.openConnectionAndFillTheFile(FileDownloader.java:239)
	at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:182)
	at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:129)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:147)
	... 5 more

The "Error downloading http://downloads.arduino.cc/cores/ArduinoCore-mbed-nonexistant.tar.bz2" is also shown at the bottom of Boards Manager.

Desktop (please complete the following information):
OS: Windows 10
Version: 2.0.0-beta.2-snapshot.f9730ab
CLI Version: 0.16.0 alpha [c977a238]

[ originally reported by @per1234 ]

@ubidefeo ubidefeo added type: bug priority: high Resolution is a high priority labels Feb 25, 2021
@ubidefeo ubidefeo reopened this Mar 19, 2021
@ubidefeo
Copy link
Author

@per1234
is this in any way addressed by Beta 4?
I have installed ATMegaZero which had the weird __MACOSX__ folder in it and got a proper error message.
I wonder if this case is also covered

@per1234
Copy link
Contributor

per1234 commented Mar 20, 2021

Yes! Akos made this wonderful improvement in #195

@per1234 per1234 closed this as completed Mar 20, 2021
@per1234 per1234 added the conclusion: resolved Issue was resolved label Mar 20, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 29, 2021
@rsora rsora added criticality: high Of high impact and removed priority: high Resolution is a high priority labels Nov 2, 2021
@per1234 per1234 self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: high Of high impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants