Closed seagle0128 closed 1 year ago
Same thing in Emacs 28.2. Happens with the clangd server. Those faces inherit markdown-code-face
, by the way.
Edit: this happened only very recently. It was working well for the past few years.
Was it working earlier? The recent relevant commit is https://github.com/emacs-lsp/lsp-mode/commit/e2a1b5f682ae00206491a80b4d28e8d932c2960f; not sure if this is the cause. 😕
I also have Emacs 28.2 and I get the same error in CSharp.
But it also sometimes works.
And this error is only recent, not something I was experiencing before.
Looks like https://github.com/emacs-lsp/lsp-mode/commit/e2a1b5f682ae00206491a80b4d28e8d932c2960f (https://github.com/emacs-lsp/lsp-mode/pull/3844) is indeed related. Removing the following function call in lsp--fontlock-with-mode
fixes it for me:
(when (eq mode 'lsp--render-markdown)
(lsp--fix-markdown-links))
@vspinu Can you help us here?
Something is throwing there and you get the plain string instead. To be frank I think that try error logic could be improved. Falling back to plain str
is too conservative IMO. I think the buffer string should be returned regardless, in case of errors the buffer string is likely to be better formatted anyhow.
lsp-ui-doc is not rendered correctly, as the screenshots below.
clangd
pyright