Skip to content

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

Closed
@per1234

Description

@per1234
Collaborator

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.

Activity

facchinm

facchinm commented on Apr 5, 2016

@facchinm
Member

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

sandeepmistry commented on Jul 19, 2016

@sandeepmistry
Contributor

Closed via #4828.

added this to the Release 1.6.10 milestone on Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sandeepmistry@per1234@facchinm

        Issue actions

          File > Examples doesn't follow architecture matching library include priorities · Issue #4762 · arduino/Arduino