Skip to content

IDE inserts an empty #include directive when the library.properties includes field is blank #7854

Closed
@ghost

Description

As per the readme, "includes - (available from IDE 1.6.10) (optional) a comma separated list of files to be added to the sketch as #include <...> lines. This property is used with the "Include library" command in the IDE. If the property is undefined all the headers files (.h) on the root source folder are included."

This doesn't seem to be compatible with the /src folder being used to store the library files, as if the include parameter is left blank, then the include statement in your Sketch has a blank #include <> instead of including all the .h files in the /src folder. It should look in src as well as root, surely?

I believe this to be a bug, or at least something which needs updating.

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#libraryproperties-file-format

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions