lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
2021-04-17T08:18:03.079100Z

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

2021-04-17T08:19:19.079300Z

When working with other people's code and frequently jumping around large projects/libraries, it is very cumbersome.

2021-04-17T08:26:19.079500Z

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

2021-04-19T17:27:22.083200Z

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.

ericdallo 2021-04-19T17:28:15.083400Z

are you using latest lsp-mode as well?

2021-04-19T18:34:09.083600Z

clojure-lsp-bin-1:2021.04.13_12.47.33-1

ericdallo 2021-04-19T18:34:52.083800Z

no clojure-lsp, lsp-mode from emacs

2021-04-19T18:35:01.084Z

ah

2021-04-19T18:37:44.084200Z

lsp-version returns err, maybe some problem with doom-emacs

2021-04-19T18:44:05.084400Z

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

2021-04-19T18:45:25.084600Z

this is the version from 23 days ago

2021-04-19T18:46:36.085100Z

I'm going to unpin the version, update it and see if anything changes

2021-04-19T18:46:40.085300Z

thx for your time

ericdallo 2021-04-19T19:02:43.085500Z

Yes, it doesn't work for doom-emacs

2021-04-19T21:58:32.085700Z

2021-04-19T21:59:02.086100Z

Unfortunately update lsp-mode did not help

2021-04-19T22:01:07.086300Z

http://ix.io/2WFz

ericdallo 2021-04-19T22:02:01.086500Z

Looks correct, is the file you are opening too big?

ericdallo 2021-04-19T22:02:11.086700Z

Did you try with clojure.core functions?

2021-04-19T22:02:12.086900Z

I have the same line 1195x

2021-04-19T22:02:17.087100Z

in log

2021-04-19T22:03:09.087300Z

Sorry, not the same one, because there are several hundred times the same error concerning different functions

ericdallo 2021-04-19T22:03:18.087500Z

That could be improved on clojure-lso to avoid the log, but is not related with the performance

2021-04-19T22:04:04.087700Z

open file alone has 3000 loc, entire project 40 000 loc

ericdallo 2021-04-19T23:50:26.087900Z

Hum feel free to open an issue on clojure-lsp, but for now I'm out of ideas :/

ericdallo 2021-04-17T14:16:24.080400Z

Yes, it was probably related with a change on lsp-mode to improve clojure go to libs

ericdallo 2021-04-17T14:17:04.080600Z

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

ericdallo 2021-04-17T14:17:20.080800Z

It's the same behaviour of vscode

ericdallo 2021-04-17T14:18:32.081Z

Does it becomes slow or unusable if you go to a clojure.core definition?

ericdallo 2021-04-17T14:18:41.081200Z

That works fine to me