Open JohnC32 opened 1 year ago
Are you getting the same error if you do M-x lsp-find-references?
Placing the point on a item (on struct Name in my example) works. Both M-x lsp-find-references and M-x xref-find-references work. It's only when I mouse click on the "N refs" annotation.
Note, C-h k then mouse click on N refs annotation gives:
<mouse-1> at that spot runs the command #[0 "\301\300!\207" [#s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("title" "4 refs" "command" "ccls.xref" "arguments" ["{\"usr\":8398225106362275994,\"kind\":4,\"field\":\"uses\"}"])) lsp--execute-command] 2 nil nil]
Thus it doesn't seem to be running xref-find-references or lsp-find-references?
I saw it - it is bug in emacs-ccls.
Could you try pointing me in the right direction with the general idea of what needs to be fixed. I can then try fixing it?
https://github.com/emacs-lsp/emacs-ccls/blob/master/ccls-code-lens.el#L73 this line should call lsp-show-xrefs
It is one line fix.
The fix, https://github.com/emacs-lsp/emacs-ccls/pull/115, address the assertion failed problem. However, I see a performance issue. Both emacs and ccls processes consume excessive CPU (~100%) for quite a while while the lenses are on when working in a rather large code base. Is this a known issue?
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
Using lsp-mode 2dd3340 from Nov-30-2022 (and latest ccls, etc.). I'm seeing on Emacs 27 when using code lens and I click on a ref:
Using M-x toggle-debug-on-error, I see:
I'm wondering if this is related to https://github.com/emacs-lsp/lsp-mode/issues/898
Steps to reproduce
Emacs 27 with latest (as of Dec-3-2022) lsp-mode, lsp-ui, ccls. Index a C++ file using ccls, then mouse click on a "N refs" annotation.
Expected behavior
No assert
Which Language Server did you use?
ccls
OS
Linux
Error callstack
Anything else?
No response