arduino / arduino/Arduino

Output user friendly message when platform installation from CLI fails due to missing package index entry

Open
#6,982 3 comments 0 reactions 0 assignees View on GitHub
Component: Board/Lib Manager Component: CLI Component: IDE feature request
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

```
arduino --install-boards esp8266:esp8266
Picked up JAVA_TOOL_OPTIONS:
Loading configuration...
Initializing packages...
Preparing boards...
Downloading platforms index...
Downloading platforms index... Downloaded 0kb of 197kb.
Downloading platforms index... Downloaded 10kb of 197kb.
Downloading platforms index... Downloaded 12kb of 197kb.
Downloading platforms index... Downloaded 19kb of 197kb.
Downloading platforms index... Downloaded 29kb of 197kb.
Downloading platforms index... Downloaded 40kb of 197kb.
Downloading platforms index... Downloaded 51kb of 197kb.
Downloading platforms index... Downloaded 61kb of 197kb.
Downloading platforms index... Downloaded 71kb of 197kb.
Downloading platforms index... Downloaded 80kb of 197kb.
Downloading platforms index... Downloaded 83kb of 197kb.
Downloading platforms index... Downloaded 90kb of 197kb.
Downloading platforms index... Downloaded 97kb of 197kb.
Downloading platforms index... Downloaded 99kb of 197kb.
Downloading platforms index... Downloaded 110kb of 197kb.
Downloading platforms index... Downloaded 120kb of 197kb.
Downloading platforms index... Downloaded 130kb of 197kb.
Downloading platforms index... Downloaded 140kb of 197kb.
Downloading platforms index... Downloaded 150kb of 197kb.
Downloading platforms index... Downloaded 159kb of 197kb.
Downloading platforms index... Downloaded 169kb of 197kb.
Downloading platforms index... Downloaded 176kb of 197kb.
Downloading platforms index... Downloaded 180kb of 197kb.
Downloading platforms index... Downloaded 184kb of 197kb.
Downloading platforms index... Downloaded 194kb of 197kb.
Downloading platforms index... Downloaded 197kb of 197kb.
Downloading platforms index...
Downloading platforms index... Downloaded 0kb of 0kb.
Downloading platforms index... Downloaded 0kb of 0kb.
java.lang.NullPointerException
at java.util.Collections.sort(Collections.java:175)
at processing.app.Base.(Base.java:310)
at processing.app.Base.main(Base.java:144)
make: *** [deps] Error 255
```

This running on [travis](https://travis-ci.org/IBEXcps/HaLiO-sw/builds/310596858).

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with `arduino --install-boards esp8266:esp8266`, then inspect `processing.app.Base` at the constructor and `Base.main` locations shown in the stack trace (`Base.java:310` and `Base.java:144`). The work is done when a missing package-index entry produces a user-friendly CLI error instead of a `NullPointerException`.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.