Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Error installing dummy #1301

Open
jerryc05 opened this issue Jul 14, 2021 · 2 comments
Open

Error installing dummy #1301

jerryc05 opened this issue Jul 14, 2021 · 2 comments

Comments

@jerryc05
Copy link

A fresh install of vscode-arduino v0.4.3 and a fresh install of arduino-cli of nightly-20210714 Commit: e7d4eaab Date: 2021-07-14T01:21:31Z

When I clicked Refresh Library Index, I got these error in the OUTPUT panel:

[Starting] Update package index files...
dummy

 0 / ?    0.00%
Updating index: library_index.json.gz downloaded

 0 / 542    0.00%
Updating index: library_index.json.sig downloaded

 0 / 399148    0.00%
Updating index: package_index.json downloaded

 0 / 543    0.00%
Updating index: package_index.json.sig downloaded
Downloading missing tool builtin:[email protected]...

 0 / 116455    0.00%
builtin:[email protected] downloaded
Installing builtin:[email protected]...
builtin:[email protected] installed
Downloading missing tool builtin:[email protected]...

 0 / 1709333    0.00%
builtin:[email protected] downloaded
Installing builtin:[email protected]...
builtin:[email protected] installed
Invalid argument passed: invalid item dummy
[Error] Exit with code=7

[Starting] Update library index files...
Error installing dummy: Error resolving dependencies for dummy@: looking for library: library dummy not found
[Done] Updated library index files.
@odahcam
Copy link

odahcam commented Jul 30, 2022

Any workarounds on that?

@strazto
Copy link

strazto commented Oct 22, 2022

Related #1388

@odahcam yep, heres one #1388 (comment)

I had the same error output:

[Starting] Update package index files...
dummy
Invalid argument passed: invalid item dummy
[Error] Exit with code=7

This is what I did to workaround the issue:

1. Added the additional urls directly to `arduino-cli` config by executing:
arduino-cli config init --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
2. Executed `arduino-cli core update-index`. You'll see the following output:
Updating index: package_index.json downloaded                                                                                                                   
Updating index: package_index.json.sig downloaded                                                                                                               
Updating index: package_esp32_index.json downloaded

After performing the above, I could view the esp32 package in in the Arduino Board Manager and install it successfully.

My settings.json

{
    "arduino.path": "/opt/homebrew/bin/",
    "arduino.useArduinoCli": true,
    "arduino.commandPath": "arduino-cli",
    "arduino.additionalUrls": "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
}

Mac OS 11.6.2 (Big Sur) on M1 VS Code 1.63.2 VS Code Arduino Extension 0.4.8 preview Arduino CLI 0.20.2 installed using Homebrew

Hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants