This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-02
Channels
- # aleph (2)
- # announcements (3)
- # babashka (12)
- # beginners (55)
- # calva (11)
- # clj-http (12)
- # cljs-dev (41)
- # cljtogether (2)
- # clojure (51)
- # clojure-denmark (2)
- # clojure-europe (32)
- # clojure-nl (17)
- # clojure-norway (2)
- # clojure-switzerland (1)
- # clojure-uk (3)
- # clojurescript (34)
- # cursive (20)
- # data-science (3)
- # datahike (23)
- # datomic (3)
- # events (1)
- # fulcro (1)
- # honeysql (4)
- # inf-clojure (2)
- # interop (38)
- # java (3)
- # kaocha (8)
- # lsp (51)
- # luminus (2)
- # malli (2)
- # nextjournal (5)
- # off-topic (21)
- # pedestal (2)
- # polylith (12)
- # re-frame (4)
- # reagent (8)
- # reitit (4)
- # releases (1)
- # ring (4)
- # shadow-cljs (179)
- # spacemacs (2)
- # specter (1)
- # xtdb (13)
@ericdallo I'm having problems with lsp in the clj-kondo project itself. After a while my laptop's fans are spinning without actually doing anything.
Each clojure-lsp proccess represents a project, do you really have 6 projects opened?
add to .clj-kondo/config.edn
{:linters {:clojure-lsp/unused-public-var {:level :off}}}
to confirm that linter is causing thatI also can't really reproduce this, it just starts after a while, maybe after my laptop has been sleeping and then reopening
when you repro again, check https://clojure-lsp.io/troubleshooting/#server-log
Usually I open lots of projects(4-10) and some big ones on Nubank and never faced that before
I will monitor the log file and then will come back to this when it happens again, thanks
@U04V15CAJ, @ericdallo this often happens for me after merging, rebasing, or switching branches—something that changes a lot of files simultaneously. I think that’s why it often only happens many hours after opening a project.
It gets stuck in a loop re-analyzing a single file or a small set of files. The log fills up with lines that look like this:
2022-03-02T02:14:59.049Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.06 secs
@U04V15CAJ, if you have logging enabled, maybe you could confirm that’s what you see too the next time this happensmakes sense @U07M2C8TT, we do have a logic on didChangeWatchedFilles (that we should improve to consider branch changes)
@ericdallo ok, I'm in the loop state now
The log file keeps going with:
2022-03-04T14:01:58.171Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.61 secs
2022-03-04T14:01:58.985Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.81 secs
2022-03-04T14:01:59.555Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.57 secs
2022-03-04T14:02:00.224Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.67 secs
2022-03-04T14:02:00.931Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.71 secs
2022-03-04T14:02:01.550Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.62 secs
2022-03-04T14:02:02.361Z INFO [clojure-lsp.feature.file-management:?] - changes analyzed by clj-kondo took 0.81 secs
so indeed it's related with watched file changes, I even think I know what could be
I think we can do a repro creating 2 branches with a lot of changes one from the other