We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents 5dfafe7 + ef4f0f3 commit b78fcf5Copy full SHA for b78fcf5
app/src/processing/app/Base.java
@@ -1245,6 +1245,13 @@ public void actionPerformed(ActionEvent event) {
1245
String packages[] =
1246
Compiler.headerListFromIncludePath(subfolder.getAbsolutePath());
1247
for (String pkg : packages) {
1248
+ File old = importToLibraryTable.get(pkg);
1249
+ if (old != null) {
1250
+ // If a library was already found with this header, keep it if
1251
+ // the library's directory name matches the header name.
1252
+ String name = pkg.substring(0, pkg.length() - 2);
1253
+ if (old.getPath().endsWith(name)) continue;
1254
+ }
1255
importToLibraryTable.put(pkg, subfolder);
1256
}
1257
} catch (IOException e) {
0 commit comments