Arduino was working in my laptop (actually is working in iMac)
and I used iCircuit App that includes Arduino simulator, after close this program
the Arduino started to quit.
I 'm receiving this message in the terminal,
MacBook-Air-de-Grimaldo-2:~ Grimaldo$ /Applications/Arduino.app/Contents/MacOS/Arduino ; exit;
Error parsing library.index:Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (FileInputStream); line: 1, column: 2]
java.lang.NullPointerException
at cc.arduino.contributions.libraries.LibrariesIndexer.rescanLibraries(LibrariesIndexer.java:140)
at cc.arduino.contributions.libraries.LibrariesIndexer.setLibrariesFolders(LibrariesIndexer.java:109)
at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:677)
at processing.app.Base.onBoardOrPortChange(Base.java:1313)
at processing.app.Base$11.actionPerformed(Base.java:1514)
at processing.app.Base.rebuildBoardsMenu(Base.java:1490)
at processing.app.Base.(Base.java:267)
at processing.app.Base.main(Base.java:145)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
You have a corrupted library index file. The fix is to delete the corrupted file, which will force the Arduino IDE to download a fresh (and hopefully non-corrupted) copy from the Internet:
Note that the library_index.json may be under a hidden folder on your computer.
FYI, this issue of a corrupted library_index.json causing the IDE to not start has been reported to the Arduino developers and they have already fixed the bug:
However, that fix will not be available until the Arduino IDE 1.8.7 release
No, this is maybe the sixth time it's come up here.
gsgarcia51:
The directory is for windows, i need to find it in Mac system.
No, the Windows directory is different (C:\Users{username}\AppData\Local\Arduino15). I've never used a Mac but another forum member (I forget who) posted this path for Mac quite a few times and I never saw anyone dispute it. Remember, your operating system may be hiding this folder from you. You need to configure Finder (or whatever the heck it's called) to not do that.
The file is hidden,
For mac to unhide and display just need to press three keys: CMD+SHIFT+DOT(.)
this will unhide the directories and be able to erase the corrupted file.
IDE will re-generate it itself and you will be running again as me.