Fork me on GitHub
#emacs
<
2021-05-06
>
Lu09:05:12

Quick question about clojure-lsp and cider.. I noticed that when I try the cider command M-. -> cider-find-var and the function definition is not in my working directory but say in core.cljs (so presumably in a jar), everything hangs and I have to force kill emacs.. has anyone experienced that at all?

hindol11:05:03

Instead of force killing Emacs, did you try Ctrl + g?

Lu11:05:15

yeah tried Ctrl + g many times .. but thanks for suggesting that 🙂

Juλian (he/him)11:05:49

cider can be interrupted using C-c C-c , or using the function cider-interrupt - that may help, too

ericdallo12:05:37

BTW if you are using cider command especifically, clojure-lsp is not being used there

Lu13:05:26

When I run M-x cider-find-var I get a LSP:: Connected to.. message and everything just hangs from there..

ericdallo13:05:53

So the issue is not related with cider, but when lsp-mode connect to a new jar buffer, do you have an updated lsp-mode and clojure-lsp?

ericdallo13:05:15

Is the jar buffer file content big?

Lu13:05:22

updated and problem went away :face_palm: thanks 🙂

Lu13:05:56

btw the buffer was the core.cljc namespace of ClojureScript

ericdallo13:05:04

Nice, yeah, we fixed this performance issue recently on lsp-mode side some weeks ago

🙌 2