regen100 / cmake-language-server

CMake LSP Implementation
MIT License
331 stars 25 forks source link

Errors/Warnings are not displayed, difficulty configuring #75

Closed kioplato closed 1 month ago

kioplato commented 1 year ago

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?

Freed-Wu commented 9 months ago

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

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

vRoussel commented 2 months ago

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

Freed-Wu commented 2 months ago

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

regen100 commented 1 month ago

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