cmake-language-server
cmake-language-server copied to clipboard
Errors/Warnings are not displayed, difficulty configuring
Hello. I'm having difficulty configuring the language server. I'm using neovim and the server attaches correctly. However, no errors or warnings are being displayed. Probably it's because I failed to configure the CMake API as described here.
How can I create the necessary files for the CMake API? I'm using Ubuntu 22.04 and found the related CMake docs but they don't have any information on generating the related files. I'm assuming I need to generate a file similar to compile-commands.json?
I'm assuming I need to generate a file similar to compile-commands.json?
No, It can work without any compile-commands.json.
@kioplato I have the same issue, did you end up finding a solution?
I think it's configured correctly since I can see the errors in neovim's LSP logs, but nothing is shown in neovim directly.
Perhaps you can try https://github.com/Decodetalkers/neocmakelsp ?
This LSP does not currently support diagnostics. As Freed-Wu mentioned, you can try using neocmakelsp.