Feature Request: Generate compile_commands.json
See original GitHub issueI am using emacs with lsp-mode
and clangd language server. For code completion the language server need an compile_commands.json file, which can be produced by cmake.
I would love to see a command similar to pio init --ide emacs
that produces a compile_commands.json instead of a .clang_complete file, which I need for Intellisense.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
possibility to generate compile_commands.json · Issue #104 ...
The compile_commands.json file is quite useful for many tools in the C/C++ ecosystem ... Feature request: possibility to generate compile_commands.json #104.
Read more >Compilation database - Sarcasm notebook
This will create a file name compile_commands.json in the build directory. Ninja¶. To generate a JSON compilation database with Ninja, use the -t...
Read more >Using nix infrastructure to reliably generate ... - NixOS Discourse
I have been digging around in the core stdenv infrastructure recently and have come up with a robust solution for generating compile_commands.json files...
Read more >Generate a compile_commands.json for a specific target - Code
For running PC Lint Plus, we currently use the compile_commands.json. This works, but had some caveats when it comes to excluding supplied SDKs...
Read more >Add support for generating compile_commands.json
Backport - A issue that is required to port a Bug or Feature into another product JDK-8240067 Add support for generating compile_commands.json.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ivankravets: Hi, can this issue be re-opened? Each C++ language servers support its own compile-flag file:
ccls
, it is .ccls (which PIO generates)clangd
, it is compile_flags.txtcquery
, it is .cqueryBut all of them support
compile_commands.json
(ccls, clangd, cquery) , so if you can generatecompile_commands.json
, we can use PIO with any cpp lsp we want, instead of generating.ccls
file which only works forccls
.Please re-test with
pio upgrade --dev
See docs https://docs.platformio.org/en/latest/faq.html#compilation-database-compile-commands-json