Skip to content

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

Open
@patrickelectric

Description

@patrickelectric
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.<init>(Base.java:310)
	at processing.app.Base.main(Base.java:144)
make: *** [deps] Error 255

This running on travis.

Activity

per1234

per1234 commented on Dec 2, 2017

@per1234
Collaborator
added
Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug
on Dec 2, 2017
matthijskooijman

matthijskooijman commented on Dec 3, 2017

@matthijskooijman
Collaborator

Shouldn't the Arduino IDE give a proper error message instead of a NullPointerException? IMHO content (e.g. platform definitions) should never cause (these kinds of) exceptions... @facchinm, @cmaglie, what would you think?

facchinm

facchinm commented on Dec 4, 2017

@facchinm
Member

I agree, a more meaningful error (like platform esp8266:esp8266 is unknown) would be nice

removed
Type: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug
on Dec 7, 2017
changed the title [-]java.lang.NullPointerException when install-boards[/-] [+]Output user friendly message when platform installation from CLI fails due to missing package index entry[/+] on Oct 2, 2020
added
Component: CLIThe Arduino IDE's command line interface
feature requestA request to make an enhancement (not a bug fix)
on Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @matthijskooijman@patrickelectric@per1234@facchinm

        Issue actions

          Output user friendly message when platform installation from CLI fails due to missing package index entry · Issue #6982 · arduino/Arduino