emacs-lsp icon indicating copy to clipboard operation
emacs-lsp copied to clipboard

ws-cache holds value at load time, not runtime

Open sqs opened this issue 9 years ago • 0 comments

The ws-cache variable always evaluates to /home/sqs/.emacs.d for me. This causes the lsp-ws-connection-map lookups (with gethash) to return nil and therefore return the following when I run lsp-mode-init-conn:

Error: ls-connection-session accessing a non-ls-connection

This makes the LSP mode completely non-functioning.

My lsp-mode.el file is at /home/sqs/.emacs.d/personal/lsp-mode.el.

I was able to fix/work-around this issue by removing the (defvar-local ws-cache ... line and changing all instances of ws-cache to (projectile-project-root).

sqs avatar Nov 19 '16 10:11 sqs