Skip to content

Problem with esp8266, esp32 and digistump installation in arduino-cli #494

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

Closed
oholen opened this issue Nov 24, 2019 · 3 comments
Closed
Labels
conclusion: invalid Issue/PR not valid

Comments

@oholen
Copy link

oholen commented Nov 24, 2019

Bug Report

Current behavior

My arduino-cli.yaml

proxy_type: auto
sketchbook_path: /home/jan/Arduino
arduino_data: /home/jan/.arduino15
board_manager:
        additional_urls:
                - http://arduino.esp8266.com/stable/package_esp8266com_index.json
                - http://digistump.com/package_digistump_index.json
                - https://dl.espressif.com/dl/package_esp32_index.json

[[email protected]:: ~/.arduino15 ]:$ arduino-cli core update-index
Updating index: package_index.json downloaded
Updating index: package_index.json downloaded

[[email protected]:: ~/.arduino15 ]:$ arduino-cli core install esp8266:esp8266
Error during install: finding platform dependencies: package esp8266 not found

Esp32 and digistump this same.

Expected behavior

Arduino:sam install is OK.

[[email protected]:: ~/Arduino ]:$ arduino-cli core install arduino:sam
Downloading packages...
arduino:[email protected] downloaded
arduino:[email protected] downloaded
arduino:[email protected] downloaded
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed
Installing arduino:[email protected]...
arduino:[email protected] installed

Environment

My arduino-cli

[[email protected]:: ~/.arduino15 ]:$ arduino-cli version
arduino-cli Version: 0.6.0 Commit: 3a08b07

My Linux (uname -a)

Linux s61.linuxpl.com 4.4.41-grsec #1 SMP Tue Jan 10 10:26:33 CET 2017 x86_64 GNU/Linux

Additional context

It's been the same for several days.

@masci
Copy link
Contributor

masci commented Nov 26, 2019

Can you run the command with -v:

[[email protected]:: ~/.arduino15 ]:$ arduino-cli core update-index -v

and post the output?

@masci masci added the status: waiting for information More information must be provided before work can proceed label Nov 28, 2019
@oholen
Copy link
Author

oholen commented Dec 4, 2019

[[email protected]:: ~ ]:$ arduino-cli core update-index -v

INFO[0000] Checking for config file in: /home/jan/.arduino15/arduino-cli.yaml
INFO[0000] Reading configuration from /home/jan/.arduino15/arduino-cli.yaml
WARN[0000] Could not read configuration from /home/jan/.arduino15/arduino-cli.yaml error="yaml: line 5: found character that cannot start any token"

...

Ok, problem resolved.
My arduino-cli.yaml file is invalid.
I added too many "tabs".
The correct file is below:

proxy_type: auto
sketchbook_path: /home/jan/Arduino
arduino_data: /home/jan/.arduino15
board_manager:
[tab]additional_urls:
[tab]- http://arduino.esp8266.com/stable/package_esp8266com_index.json
[tab]- http://digistump.com/package_digistump_index.json
[tab]- https://dl.espressif.com/dl/package_esp32_index.json

The [tab] key should be used only once before addresses.

Thank you masci for your mail and hint: -v

Now everything works.

@masci
Copy link
Contributor

masci commented Dec 4, 2019

I'm glad you fixed the issue!
I'm closing as resolved, feel free to reopen should you find something else.

@masci masci closed this as completed Dec 4, 2019
@per1234 per1234 added conclusion: invalid Issue/PR not valid and removed status: waiting for information More information must be provided before work can proceed labels Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

3 participants