Skip to content

Arduino-cli breaks Arduino-ide and Vice Versa #36

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
NormanDunbar opened this issue Sep 8, 2018 · 5 comments
Closed

Arduino-cli breaks Arduino-ide and Vice Versa #36

NormanDunbar opened this issue Sep 8, 2018 · 5 comments

Comments

@NormanDunbar
Copy link

NormanDunbar commented Sep 8, 2018

While experimenting with the cli I noticed that when I next open the IDE (Arduino 1.8.5) nothing happens after the splash screen. If I open it again, then the IDE works fine. Sketches upload etc. It's just the first time after using the cli.

However, after using the IDE, the CLI no longer seems to know where the package_index.json is to be found, and it has to be downloaded again. The error is:

$ arduino-cli board list

Error: loading json index file /home/norman/.arduino15/package_index.json: open /home/norman/.arduino15/package_index.json: no such file or directory
Failed to load https://downloads.arduino.cc/packages/package_index.json package index.
Try updating all indexes with `arduino-cli core update-index`.

It also seems to have removed the arduino:avr code as well.

It would be nice to be able to use both the CLI and IDE versions of the software.

@a7hybnj2
Copy link

I have this same issue... timemage on irc lead me to find

./arduino
cc.arduino.contributions.SignatureVerificationFailedException: package_index.json file signature verification failed
	at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:91)
	at processing.app.BaseNoGui.initPackages(BaseNoGui.java:534)
	at processing.app.Base.<init>(Base.java:270)
	at processing.app.Base.main(Base.java:153)

this is the error I get when running arduino from cli after using arduino-cli. I don't know what it means but I hope it helps.

MacOS

@a7hybnj2
Copy link

a7hybnj2 commented Feb 12, 2019

I don't exactly know how the issue first started but it was caused by not having *.json.sig files in arduino15 after using arduino-cli. I was able to fix it for now by opening IDE - board manager. This populated the *.json.sig files and now I can switch between cli and IDE without issue (for now).

There were some things I did in between like deleting the index files but I don't think any of that was really needed.

@NormanDunbar
Copy link
Author

This problem was on the early alphas, it might be fixed - I'll test ASAP.

One other thing I noticed, after installing the cli and running it, my IDE now picks up the files on /home/me/.arduino15brather than where I extracted the original IDE zip file.

Linux Mint 19.1.

Cheers,
Norm.

@a7hybnj2
Copy link

@NormanDunbar I had this issue with the latest alpha and Arduino IDE beta 1.9 on MacOS 10.14.3

@NormanDunbar
Copy link
Author

NormanDunbar commented Mar 23, 2019

Ok, I have finally downloaded the latest Linux cli, version 0.3.6, and tested it. Good news, my original issue appears fixed. I can swap between the CLI and the IDE at will. I'm happy that this is now fixed.

However, I now can confirm that whenever I've installed the CLI and run at least one compilation - although it might be just installing a platform - the IDE swaps from using the files in its own folders to using the ones in the ~/.arduino15, which actually belong to the CLI and not the IDE.

Tested with a clean install of IDE 1.8.5 (which I can't yet upgrade) and CLI 0.3.6.

I shall raise this as a separate issue as this issue is a different matter and is now fixed.

EDIT: Issue #173 raised.

Cheers,
Norm.

per1234 pushed a commit that referenced this issue Nov 16, 2020
Implementation of the Shadow Thing mechanism on the device side
per1234 added a commit that referenced this issue Aug 9, 2021
Add schema checks for library.properties name field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants