Skip to content

File > Examples doesn't follow architecture matching library include priorities #4762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
per1234 opened this issue Mar 26, 2016 · 2 comments
Closed

Comments

@per1234
Copy link
Collaborator

per1234 commented Mar 26, 2016

Using Arduino IDE 1.6.9 2016/03/25 02:33 with Windows 7

If there is an IDE bundled library with an architectures value in library.properties that matches the selected board's architecture and another library of the same name in the sketchbook that doesn't match the architecture then the IDE bundled library has include priority but the sketchbook library's examples are shown in File > Examples.

Here's a more complex real life example of this issue causing an error.

  • Tools > Board > Zero
  • Sketch > Manage Libraries... > USBHost > Update - this will install the SAM version of USBHost to {sketchbook}/libraries.
  • File > Examples > USBHost > ADKTerminalTest - {sketchbook}/libraries/USBHost/examples/ADKTerminalTest/ADKTerminalTest.ino is opened but the SAMD core version of the USBHost library will have include priority because of arduino/arduino-builder@b2f7c72.
  • Attempting to compile this sketch for Zero fails.
@facchinm
Copy link
Member

facchinm commented Apr 5, 2016

Hi @per1234
nice finding, the frontend problem is exposing a very bad behaviour (USBHost APis are not compatible between Due and Zero). Anyway, the issues should also be solved in the frontend side.
I'll try to see what can be done 😄

@sandeepmistry
Copy link
Contributor

Closed via #4828.

@sandeepmistry sandeepmistry added this to the Release 1.6.10 milestone Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@sandeepmistry @per1234 @facchinm and others