We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98fec72 commit 12a2d87Copy full SHA for 12a2d87
arduino-core/src/processing/app/BaseNoGui.java
@@ -620,6 +620,17 @@ static public void initPackages() throws Exception {
620
loadContributedHardware(indexer);
621
622
librariesIndexer = new LibrariesIndexer(BaseNoGui.getSettingsFolder());
623
+ File librariesIndexFile = librariesIndexer.getIndexFile();
624
+ if (!librariesIndexFile.isFile()) {
625
+ try {
626
+ // Otherwise create an empty packages index
627
+ FileOutputStream out = new FileOutputStream(librariesIndexFile);
628
+ out.write("{ \"libraries\" : [ ] }".getBytes());
629
+ out.close();
630
+ } catch (IOException e) {
631
+ e.printStackTrace();
632
+ }
633
634
librariesIndexer.parseIndex();
635
}
636
0 commit comments