Open andrelkin opened 5 years ago
For me this was resolved by updating lsp-ui
.
Consider closing this issue.
Well, after updating lsp-ui the error has changed to
eldoc error: (wrong-type-argument arrayp nil)
The error also happens when I run in clean mode:
emacs -q
to (require 'lsp-mode) and then (require 'cquery).
The main buffer is handled as supposed, but C-x-4-c indirectly created one yields to the eldoc error.
While the latest error can be removed indeed with
(setq-local eldoc-documentation-function #'ignore)
lsp-mode/cquery does not work in an indirect buffer. How-to-repeat is like above.
While leaving the ticket active - lsp-ui upgrade has not helped as reported - I found a workaround for my specific purpose.
I needed indirect buffer as it's supposed to alias a primary one and in both lsp/cquery be running. I could not tame the indirect one case having as it looks eldoc-mode errors (the last one of (wrong-type-argument arrayp nil) is still there). But I when I create a symbolic link file and forcing emacs to open it not to follow the link makes the 2nd-ry buffer where
lsp/cquery works!
When I create an indirect buffer from a buffer where lsp/cquery is set up and works, the above error occurs once an identifier is pointed in there instead of expected documentation line.