Skip to content

Commit e5427a5

Browse files
committed
TO BE REMOVED: helps in debugging
1 parent add4c07 commit e5427a5

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

arduino-core/src/cc/arduino/contributions/libraries/LibrariesIndexer.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class LibrariesIndexer {
7171
private final List<String> badLibNotified = new ArrayList<>();
7272

7373
public LibrariesIndexer(File preferencesFolder) {
74-
indexFile = new File(preferencesFolder, "library_index.json");
74+
indexFile = new File(preferencesFolder, "library_index_test.json");
7575
stagingFolder = new File(new File(preferencesFolder, "staging"), "libraries");
7676
}
7777

@@ -113,6 +113,11 @@ private void parseIndex(File file) throws IOException {
113113
} finally {
114114
IOUtils.closeQuietly(indexIn);
115115
}
116+
117+
// ContributedLibrary lib = index.find("ArduinoCloud","1.0.0");
118+
// System.out.println(lib.info());
119+
// System.out.println(index.resolveDependeciesOf(lib));
120+
// System.exit(0);
116121
}
117122

118123
public void setLibrariesFolders(List<UserLibraryFolder> folders) {

arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public LibraryInstaller(Platform platform) {
5858
}
5959

6060
public synchronized void updateIndex(ProgressListener progressListener) throws Exception {
61-
final MultiStepProgress progress = new MultiStepProgress(3);
61+
if (true) return;
62+
final MultiStepProgress progress = new MultiStepProgress(2);
6263

6364
DownloadableContributionsDownloader downloader = new DownloadableContributionsDownloader(BaseNoGui.librariesIndexer.getStagingFolder());
6465
// Step 1: Download index

arduino-core/src/processing/app/BaseNoGui.java

+1
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ static public void initPackages() throws Exception {
501501
try {
502502
librariesIndexer.parseIndex();
503503
} catch (JsonProcessingException e) {
504+
e.printStackTrace();
504505
File librariesIndexFile = librariesIndexer.getIndexFile();
505506
FileUtils.deleteIfExists(librariesIndexFile);
506507
}

0 commit comments

Comments
 (0)