cmake-language-server icon indicating copy to clipboard operation
cmake-language-server copied to clipboard

Errors/Warnings are not displayed, difficulty configuring

Open kioplato opened this issue 1 year ago • 1 comments

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?

kioplato avatar Apr 21 '23 15:04 kioplato

I'm assuming I need to generate a file similar to compile-commands.json?

No, It can work without any compile-commands.json.

Freed-Wu avatar Dec 27 '23 09:12 Freed-Wu

@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.

vroussel avatar Jul 22 '24 16:07 vroussel

Perhaps you can try https://github.com/Decodetalkers/neocmakelsp ?

Freed-Wu avatar Jul 22 '24 17:07 Freed-Wu

This LSP does not currently support diagnostics. As Freed-Wu mentioned, you can try using neocmakelsp.

regen100 avatar Aug 17 '24 09:08 regen100