Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eldoc error: (wrong-type-argument lsp--workspace nil) in indirect buffer #59

Open
andrelkin opened this issue Dec 8, 2018 · 4 comments

Comments

@andrelkin
Copy link

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.

@chenl
Copy link

chenl commented Dec 28, 2018

For me this was resolved by updating lsp-ui.

Consider closing this issue.

@andrelkin
Copy link
Author

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.

@andrelkin
Copy link
Author

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.

  1. open a file as main buffer
  2. C-x-4-c to clone it as indirect buffer
  3. M-x lsp in the main buffer => works out ok including status bar reflecting that
  4. M-x lsp or lsp-mode in the indirect buffer => nothing good happens, disconnected - in the status bar

@andrelkin
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants