Skip to content

Problem with header directory paths in .clang_complete #1960

@maxchaos

Description

@maxchaos

When initializing a new project directory or updating an existing one with pio init --ide emacs, the directory paths searched for headers listed inside .clang_complete are enclosed in double quotes, which confuses clang-based tools (such as irony) and results in "file not found" errors in Emacs (flycheck-irony).

This is a typical line of .clang_complete that gets generated now:
-I"/home/USER/.platformio/packages/framework-arduinoavr/cores/arduino"
and this is what it should have been generated instead:
-I/home/USER/.platformio/packages/framework-arduinoavr/cores/arduino

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions