Skip to content

arduino-cli throws invalid number literal on core update index #61

@duglah

Description

@duglah

Hello everybody,

currently the package_azureboard_index.json is broken, because it has a whitespace in the size literal, so the arduino-cli will throw a

Error updating index: invalid package index in https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json: json: invalid number literal, trying to unmarshal ""3788484 "" into Number

when you try to update the index of cores on MacOS with arduino-cli 0.17.0.

Steps to reproduce:

  1. Install arduino-cli, see the offical arduino-cli installation guide
  2. Create a configuration file: `arduino-cli config init``
  3. Open config file and add https://github.com/VSChina/azureiotdevkit_tools/blob/master/package_azureboard_index.json as additional url:
    Example:
board_manager:
  additional_urls: [https://raw.githubusercontent.com/duglah/azureiotdevkit_tools/master/package_azureboard_index.json]
  1. Run arduino-cli core update-index

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