-
Notifications
You must be signed in to change notification settings - Fork 136
Description
I can't seem to get any features from the lsp-ui package to work. I'm using the lsp-rust backend, which does work with the basic lsp-mode functionality. (e.g., M-.
, M-?
, and inline syntax checking with flycheck.)
However, when I enable lsp-ui-mode in a buffer, I (after a short delay) get an error. Toggling debug-on-error gives me this backtrace:
Debugger entered--Lisp error: (wrong-type-argument lsp--workspace nil)
signal(wrong-type-argument (lsp--workspace nil))
lsp--on-hover()
eldoc-print-current-symbol-info()
#f(compiled-function () #<bytecode 0x400f0c33>)()
apply(#f(compiled-function () #<bytecode 0x400f0c33>) nil)
timer-event-handler([t 0 0 500000 nil #f(compiled-function () #<bytecode 0x400f0c33>) nil idle 0])
I thought it might have something to do with my multi-binary + library crate, so I switched over to a single binary crate with a single source file and have the same issues.
I'm using the emacs-mac build as of yesterday:
GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.5.0, Carbon Version 158 AppKit 1561.4) of 2018-05-20
I've poked around the customize groups for lsp-ui (and its sub-features) and didn't see anything obvious that I needed to configure, so... I'm out of ideas! You've got several demos indicating that these features ought to be working for me with rust-mode, so perhaps it's a macOS-specific issue, or a regression with rls.