Skip to content

Generate "compile_commands.json" for LSP ready IDEs #3735

Description

@pvonmoradi

The following command generates the requires files for LSP for plugins like coc-nvim:
pio project init --board my_board --ide vim --project-option "framework=arduino"
Problem is, after mutating the platformio.ini and adding libraries, the .ccls file is not kept updated.
How to make it so that all these auxiliary helper files get updated when project dependencies change? I was able to do it with
initing again.
Aside from that, I don't think the .ccls file should be dependent on project libs alone. Maybe the source does not use a library, so its deps should not be handled by ccls.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions