I guess something changed recently, and trying to go to the definition of something from an external library, like clojure.core
, causes lsp and emacs to freeze for a long while. The C-g
interrupts some process and momentarily everything starts working.
I might be misremembering, but I think lsp used to ask if to import a project, now it seems to try to lint everything and always
When working with other people's code and frequently jumping around large projects/libraries, it is very cumbersome.
it is possible that this is a problem with the lsp implementation in emacs and not with clojure-lsp itself, but I don't know how to check
I did not notice that you had written back.
So basically emacs is unusable. Jump using go to definition
results in 100% professor usage. Killing the clojure-lsp
process helps.
are you using latest lsp-mode as well?
clojure-lsp-bin-1:2021.04.13_12.47.33-1
no clojure-lsp, lsp-mode
from emacs
ah
lsp-version
returns err, maybe some problem with doom-emacs
Package: lsp-mode
Source: Straight
Pinned: eda51c21662253fd05b4f3f20ad7b029d9c2aff7
Build: HEAD -> master, replaced, origin/master eda51c216 2021-03-27 19:55:40 +0200
Build location: ~/.emacs.d/.local/straight/build-28.0.50/lsp-mode/
Repo location: ~/.emacs.d/.local/straight/repos/lsp-mode/
Recipe: (:type git :flavor melpa :files
(:defaults "clients/*.el" "lsp-mode-pkg.el")
:host github :repo "emacs-lsp/lsp-mode" :package "lsp-mode" :local-repo "lsp-mode")
Homepage: <https://github.com/emacs-lsp/lsp-mode>
Modules: Declared by the following Doom modules:
:tools lsp (readme)
Configs: This package is configured in the following locations:
modules/lang/cc/config.el:288: (after! lsp-mode (require 'ccls))
modules/tools/debugger/config.el:117: (after! lsp-mode (require 'dap-mode))
modules/tools/lsp/+lsp.el:19:(use-package! lsp-mode
this is the version from 23 days ago
https://github.com/emacs-lsp/lsp-mode/commit/eda51c21662253fd05b4f3f20ad7b029d9c2aff7
I'm going to unpin the version, update it and see if anything changes
thx for your time
Yes, it doesn't work for doom-emacs
Unfortunately update lsp-mode did not help
Looks correct, is the file you are opening too big?
Did you try with clojure.core functions?
I have the same line 1195x
in log
Sorry, not the same one, because there are several hundred times the same error concerning different functions
That could be improved on clojure-lso to avoid the log, but is not related with the performance
open file alone has 3000 loc, entire project 40 000 loc
Hum feel free to open an issue on clojure-lsp, but for now I'm out of ideas :/
Yes, it was probably related with a change on lsp-mode to improve clojure go to libs
I can say it improved a lot the go to definition since now we use library folders instead of considering the new file as a new project
It's the same behaviour of vscode
Does it becomes slow or unusable if you go to a clojure.core definition?
That works fine to me