-
-
Notifications
You must be signed in to change notification settings - Fork 416
Description
Please read the Issues section of the Contributing Rules at the "Contributing" link to the right before submitting an issue report.
In this issue - that was closed - arduino/Arduino#11686
I asked for a solution how to give the user more information about what paths the compiler searched for a library.
I was told quote:
The problem is that there are many paths the library discovery system and compiler search for these files. The very nature of the error is such that there is no way to identify a single one of those locations to use in the error message. If they were all added to the error message it would become an unapproachable wall of cryptic text.
well if the library discovery system is already searching at so many places. I see no argument against including the "main"-folder of a library (the folder one-level-above-src)
The library-discovery-system was guided through the librarys filename to find the subfolder "src" so I estimate it is a breeze to add exact this folder to search through too.
I can really not think of any serious reason why looking in the "one-above-src"-folder should arise any problem.
If anybody wants to do any kind of super-special library-variations that something like this rule
if file library.property and subfolder "src" exists then do not search in the "one-above-src"-folder
makes sense for
She/he knows all the compiler-options very well so that She/he could modify what file ever to make this super-special situation work.
This rule is just creating a trap to fall in. But nothing else.
best regards Stefan