Skip to content

Error downloading libray_index.json causes IDE to hang #1731

@Dowster64

Description

@Dowster64

Describe your environment
Using the Sloeber product (new stable download)
Sloeber version number sloeber 4.4.3.202402070201 io.sloeber.product null
OS: windows 11
The url of the json that you used to download the platform 👍 https://downloads.arduino.cc/libraries/library_index.json
A image of the project properties arduino showing the board settings

Describe the bug
A clear and concise description of what the bug is. This is the error:

Failed to parse json file "D:\Sloeber\arduinoPlugin\library_index.json"
com.google.gson.stream.MalformedJsonException: Unterminated string at line 98583 column 60 path $.libraries[4155].website

Note I'm in Australia and the Arduino site may have been worked on. I tried to open the url in a browser and it failed. However, about 45 mins later it was downloadable in the browser. (5.45pm Melbourne time)
Note I had update local json files (including library) selected in preferences

To Reproduce
Wait for https://downloads.arduino.cc/libraries/library_index.json to fail :-)

This left a partial library_index.json file . I was using the latest eclipse with sloeber plugin when this first happened - around 3.30pm when the ide hung on 'finishing install' it ended up with the library file JSON not terminated properly. (I had been using 4.4.3 previously but an update broke it). So I downloaded the latest stable version and it had the same issue but it never created library_index.json , so I only had my local (other) libraries

provide the name of the board and the platform version you are using. n/a
Provide the json url and a screenshot of project properties->arduino n/a

Expected behavior
As this is transitory but over a longish period (3-4 hours) I didn't know what was happening (ie why it was hanging). Is it possible to download a library and check it is valid before replacing the old one? I did find this in the closed issues (someone reported a similar problem in 2020)

Data to back up your claim
If applicable, add screenshots, console output and/or logs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions