-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Corrupted library_index.json prevents IDE from starting #7937
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
Quick followup, I got 2 similar NPE start failures if the change the permissions on the file and the directory. chmod 000 ~/.arduino15/library_index.json
chmod 000 ~/.arduino15/
On this forum thread, a user reported a similar "java.io.IOException: The file or directory is corrupted and unreadable" error. I was trying to recreate this, but perhaps is requires Windows and unsafe media removal? In any case, it seems the IDE startup fails with NPE in a variety of ways if library_index.json can't be accessed. |
If library_index.json becomes corrupted, the IDE can't start up and throws a NullPointerException.
To reproduce this problem, just edit ~/.arduino15/library_index.json (or similar location on Mac & Windows) and change the first character from '{' to '<'. Restart the IDE will give the NullPointerException.
This problem came today for a user on the forum.
https://forum.arduino.cc/index.php?topic=565681
The text was updated successfully, but these errors were encountered: