emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.05k stars 141 forks source link

lsp-ui-doc doesn't show docs provided by clangd correctly. #476

Open h0cheung opened 4 years ago

h0cheung commented 4 years ago

When I use lsp-ui-doc to read some docs of STL containers, it show like this: 2020-07-20-00-28.png

I'm using doom-emacs, and this is my configs: https://gitlab.com/h-cheung/dotfiles/-/tree/master/doom.d

I don't known it is a bug of lsp-ui-doc or clangd, or it is because of some wrong configs.

yyoncho commented 4 years ago

I think that there was a bug in clangd related to that. Please share your clangd version.

cc @sebastiansturm @danielmartin

h0cheung commented 4 years ago

@yyoncho 10.0.0 in arch linux

sebastiansturm commented 4 years ago

Not exactly sure how you define 'correctly' here. If you're alluding to the spurious backslashes in front of the comma, or in front of @brief, @ingroup, @tparam, I can reproduce those with clangd 10.0.1 while they are gone with clangd-11 builds (also, @brief, @ingroup, @tparam appear on separate lines with clangd-11). On the other hand, the link to tables.html still displays as \<a href... for me, not as a hyperlinked rendering of the word "container" in case that's what you expected to see

h0cheung commented 4 years ago

@sebastiansturm I think 'correctly' can be define as, it shows like what the developers of clangd want to see, or shows like in the vscode extension which is developed by them.