I am new to clangd but not new to language servers. I experimented lsp using emacs with the backends such as cquery and ccls. This time I tried clangd. However, after setup following your documentation https://clangd.llvm.org/installation.html it does not work as the documentation described.
I tried both lsp and eglot, but there are some issues.
I am using emacs in Ubuntu, which is a Windows Subsystem for Linux. I installed clangd-10 using the package management system, apt. After the eglot is enabled, there is no diagnostics and fixes. Finding definitions and hover information does not behave correctly.
I was experimenting with one simple cpp code file. For example, I defined an int variable x. I wrote another line of code which assigns a string literal to the variable x. There is no diagnostics and if I invoke x-ref-find-definitions on x in this line there is a message “No definitions found for: LSP identifier at point.” in the mini buffer. Finally the hover information does not show up as well.
Could I get any help about this here?