microsoft / vscode-arduino

Visual Studio Code extension for Arduino
Other
1.15k stars 208 forks source link

Additional URLs allows me to add a package URL, but does not update index (Arduino CLI) #1510

Open zfields opened 2 years ago

zfields commented 2 years ago

The normal steps would be something like...

arduino-cli config add board_manager.additional_urls <package.json>
arduino-cli core update-index

You are helping me to capture the package URL, but when I click "Refresh Package Indexes" it does not perform the arduino-cli core update-index command, so the board does not display.

I have tried restarting VSCode, restarting the extension, but nothing causes the new package to show up. How are you supposed to realize the functionality of the "Additional URLs" in the settings.json?

Ideally, I would like to see index updated based on the Additional URLs when I click "Refresh Package Indexes".

FWIW, the Arduino Extension is using the Arduino CLI on a Mac (Intel).

paigen11 commented 2 years ago

I had the same issue!

hlovdal commented 1 year ago

Have you tried running

arduino-cli core update-index --additional-urls https://www.example.com/package_example_index.json

?

zfields commented 1 year ago

I have not tried to invoke the arduino-cli directly, because the operations and interactions described above are all experienced through VSCode directly.

This should be handled via the VSCode internals, triggered by the GUI, to be consistent with the overall experience.