PlatformIO Community

Pio build and compile_commands.json


Hi, I’m using emacs as my editor and have the rather nice ccls integration using lsp to provide completion and navigation as well as enhanced flycheck type functionality. I am using the emacs platformio extension which is nice.

However the ccls package appears to use compile_commands.json to parse and index the source hierarchies.

How do I create a compile_commands.json form pio build?

I am guessing I am missing something obvious in the flags.

Thank you.


OK, maybe even somehow I can forcibly regenerate the .clang_complete that is created when I run platformio init --ide emacs --board uno?