Skip to content
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

Cannot install custom Arduino Core package #577

Closed
maxgerhardt opened this issue Oct 25, 2021 · 1 comment
Closed

Cannot install custom Arduino Core package #577

maxgerhardt opened this issue Oct 25, 2021 · 1 comment
Assignees
Labels
conclusion: off topic Off topic for this repository topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project

Comments

@maxgerhardt
Copy link

maxgerhardt commented Oct 25, 2021

Describe the bug

The Arduino IDE 1.8.13 allows me to install our custom-made Arduino Core (https://raw.githubusercontent.com/CommunityGD32Cores/GD32Core-New/main/package_gd32_index.json) when I add the URL in the additional board managers list.

grafik

Once I install it in the Arduino IDE 1.x, the Arduino IDE 2.0 also picks it up and lets me compile for a board.

grafik

However, once I remove the board package again (either through the Arduino IDE 1.x or 2.x), I cannot install it in the Arduino IDE 2.0 environment. Searching for "GD" (and simliar "Giga") just turns out empty.

grafik

It's like the Arduino IDE 2.0 does not accept our index JSON file. Restarting the Arduino IDE 2.0 or adding the URL in its Prefrences -> Additional Board Manager URLs (which is empty in comparison to the Arduino IDE 1.x) does not make a difference.

To Reproduce
Steps to reproduce the behavior:

  1. Install latest Arduino IDE 2.0 package
  2. Go to File -> Preferences -> Additional boards manager URLs
  3. Paste in https://raw.githubusercontent.com/CommunityGD32Cores/GD32Core-New/main/package_gd32_index.json
  4. Press Okay
  5. Restart Arduino IDE 2.0
  6. Go to the board manager
  7. Wait a bit (possible board manager refresh)
  8. Search for "GD" or "Giga"

Expected behavior
The "GD32 ARM Boards" shows up the same way it did in the Arduino IDE 1.x and is installable.

Actual behavior
No search result for the expected board name.

Screenshots
See above.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version: 2.0.0-beta.12

Additional context
See CommunityGD32Cores/ArduinoCore-GD32#52.

Possibly it does not accept our file because we point the archive file to the bleeding-edge https://github.com/CommunityGD32Cores/ArduinoCore-GD32/archive/refs/heads/main.zip with no size and checksum field present?

@maxgerhardt maxgerhardt added the type: imperfection Perceived defect in any part of project label Oct 25, 2021
@per1234
Copy link
Contributor

per1234 commented Oct 25, 2021

Hi @maxgerhardt. Thanks for your report.

Possibly it does not accept our file because we point the archive file to the bleeding-edge https://github.com/CommunityGD32Cores/ArduinoCore-GD32/archive/refs/heads/main.zip with no size and checksum field present?

That's exactly it. Unlike the classic Arduino IDE, which actually has special treatment of platform entries with no size or checksum field, Arduino CLI requires both of these.

Since this is actually an issue in Arduino CLI and we already have an issue about this there (arduino/arduino-cli#1468), I'll close this one as off topic for the Arduino IDE 2.x repo.

@per1234 per1234 closed this as completed Oct 25, 2021
@per1234 per1234 added conclusion: off topic Off topic for this repository topic: CLI Related to Arduino CLI labels Oct 25, 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: off topic Off topic for this repository topic: CLI Related to Arduino CLI type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants