Fork me on GitHub
#lsp
<
2021-09-10
>
Jakub Holý (HolyJak)09:09:12

clojure-lsp (which I use via IntelliJ) easily consumes 100s of % of CPU on my new Mac. Is it common? Any tips how to troubleshoot and ameliorate?

lassemaatta11:09:16

the logs contain some data about processing times which may indicate what's eating your cpu

ericdallo12:09:31

Also, clojure-lsp needs more resources the first time it's scanning the deps of your project

Jakub Holý (HolyJak)15:09:53

Thank you, will explore those! And not, it was not the first time.

ericdallo15:09:40

it's not the first time only, it can happen if your project.clj/deps.edn/etc was changed, so clojure-lsp needs to re-analyze the classpath

ericdallo15:09:58

You caon confirm checking server log

👍 2
lassemaatta16:09:08

might not be related, but I'm still having issues with completions (or something related to them) eating up my cpu(s). I'm still trying to create a public project which exhibits this problem, but real life gets in the way and I have very little time to work on it 😞

ericdallo16:09:46

@U0178V2SLAY probably not related with completion, but didChange locking other features (like completion)

ericdallo16:09:36

unfortunately I think only a repro would help to investigate that

lassemaatta16:09:12

yeah, I understand completely