-
-
Notifications
You must be signed in to change notification settings - Fork 398
Make "Error installing: There were errors loading platform indexes" error more informative #792
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
Comments
Hi @jonathangjertsen. You forgot to download the platform indexes by running the command:
There is a nice tutorial about using Arduino CLI here: |
How silly of me, thanks! I would suggest updating the error message to include more information about the error. The code that emits this error message does not seem to print the previous error message(s) that caused the error arduino-cli/cli/instance/instance.go Line 94 in 6903076
|
You're welcome. I'm glad if was able to assist you in using Arduino CLI for your CI needs. It's certainly the right tool for the job!
I updated the title and left the issue open to allow the Arduino CLI team to consider your suggestion. |
Hi, I was using arduino-cli on my mkr-wifi-1010, after successfully compile the sketch, I had this error during the upload it to the board.
The command I ran:
The full error message:
EDIT: I think my issue is because I ran the command as sudo, and without it, my issue is about permission, which is unrelated as this issue |
Hi! I had the same issue as well, and thank god for forums (https://forum.arduino.cc/index.php?topic=495039.0)! Have a nice day! |
Hi @jonathangjertsen, this has changed a lot, but I think that now the error should be more clear: arduino-cli/cli/instance/instance.go Line 187 in bdd0cf9
Furthermore, the index is downloaded when required #908, feel free to reopen this if needed |
Bug Report
Current behavior
I have a Travis CI setup which runs a build script with the following commands
The first command succeeds with the following output:
The second command fails with the following output:
Expected behavior
I would expect the installation to succeed, or at least to provide an actionable error message
Environment
arduino-cli version
):arduino-cli Version: 0.11.0 Commit: 0296f4d
The text was updated successfully, but these errors were encountered: