question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Generate compile_commands.json

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nghialm269commented, Oct 26, 2019

@ivankravets: Hi, can this issue be re-opened? Each C++ language servers support its own compile-flag file:

But all of them support compile_commands.json (ccls, clangd, cquery) , so if you can generate compile_commands.json, we can use PIO with any cpp lsp we want, instead of generating .ccls file which only works for ccls.

0reactions
ivankravetscommented, Feb 6, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found