-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Generate compile_commands.json #2990
Comments
See 7a07a2e Could you re-test with |
I did and noticed that you produce an additional .ccls file, which is used by the ccls language server. Unfortunately cland, the language server of the llvm developers, uses a ‘.compile_commands.json’ file |
How are you going to use clang with |
Haha. Actually I just want the intellisense to work with cland. For compilation I just the pio pipeline. |
Yes, but clang C/C++ Preprocessor will not understand your GCC code. You actually need clang_complete and we generate it https://github.com/platformio/platformio-core/blob/develop/platformio/ide/tpls/emacs/.clang_complete.tpl |
You don’t get me. The .clang_complete file is not read by the cland language server, which is the default language server for the emacs lsp-mode. It’s like the .ccls file for the ccls language server 😉 |
@ivankravets:
But all of them support |
Please re-test with See docs https://docs.platformio.org/en/latest/faq.html#compilation-database-compile-commands-json |
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.The text was updated successfully, but these errors were encountered: