You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes Arduino users will install a duplicate copy of a library, or another library that appears to be a duplicate due to conflicting header file names. Sometimes this actually works, but breaks months or years later when other code depending on those libraries updates, long after the user as forgotten they installed the library.
When this problem strikes, the user gets incomprehensible compiler errors.
Arduino should detect duplicate or ambiguous library matches and print a friendly warning after compiling, even if no error resulted, to give users clear visibility that it had to guess which library to build into their program.
The text was updated successfully, but these errors were encountered:
@ffissore - I'm working on a patch with the new 1.6.2 code. I have the duplicate detection part working pretty well.
The difficult part is the new LibrariesIndexer class. As it rescans libraries, it uses LibraryList addOrReplace(lib). That produces a nice list, but a lot of information about possible duplicates is lost. I have the rest working, and now I'm trying to extend LibraryList to also create a list with duplicates preserved. Does that sound ok? Or would you prefer this done some other way?
Sometimes Arduino users will install a duplicate copy of a library, or another library that appears to be a duplicate due to conflicting header file names. Sometimes this actually works, but breaks months or years later when other code depending on those libraries updates, long after the user as forgotten they installed the library.
When this problem strikes, the user gets incomprehensible compiler errors.
Arduino should detect duplicate or ambiguous library matches and print a friendly warning after compiling, even if no error resulted, to give users clear visibility that it had to guess which library to build into their program.
The text was updated successfully, but these errors were encountered: