This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-04
Channels
- # announcements (4)
- # asami (38)
- # babashka (20)
- # beginners (188)
- # cider (1)
- # clara (11)
- # clj-kondo (103)
- # clj-together (1)
- # cljs-dev (15)
- # clojure (138)
- # clojure-australia (5)
- # clojure-europe (33)
- # clojure-france (1)
- # clojure-losangeles (5)
- # clojure-nl (4)
- # clojure-norway (11)
- # clojure-serbia (3)
- # clojure-uk (11)
- # clojurescript (45)
- # community-development (3)
- # conjure (22)
- # core-async (18)
- # datomic (44)
- # defnpodcast (4)
- # deps-new (1)
- # depstar (49)
- # events (2)
- # fulcro (33)
- # girouette (2)
- # honeysql (37)
- # jackdaw (5)
- # jobs-discuss (16)
- # kaocha (3)
- # leiningen (4)
- # lsp (77)
- # malli (55)
- # membrane (4)
- # off-topic (61)
- # polylith (5)
- # quil (5)
- # reagent (33)
- # reitit (12)
- # remote-jobs (1)
- # reveal (4)
- # rewrite-clj (2)
- # sci (16)
- # shadow-cljs (22)
- # sql (1)
- # test-check (27)
- # tools-deps (44)
has anyone here found that clojure-lsp / lsp-mode in emacs significantly slows down slurping and barfing expressions with smartparens?
@rickmoynihan This can be related to
company-idle-delay 0.5
If you set that to 0 things slowed down for me@borkdude what do you have it to set to?
ahh great upgrading seems to have made a big difference!
thanks! 🙇
ah it could also be that lsp-mode is no longer connecting hmmmm
anyone here know how to debug lsp not connecting anymore after an upgrade?!
Running
$ clojure-lsp
{}
appears to error like troubleshooting says it should@rickmoynihan the troubleshooting should be self explanatory otherwise we can improve it, but if the executable is working we need to understand why it's crashsing
Yeah I went through the troubleshooting section but nothing seemed to help
the emacs buffers for logs etc didn’t seem to exist either
no visible error — just LSP[Disconnected]
in the mode line
and no lsp features
aha!
lsp--path-to-uri: Symbol's function definition is void: -compose
(I was running M-x lsp-mode
)
ok that seems to work
thanks a million! 🙇
hmm now get apply: Cannot open load file: No such file or directory, lsp-ui
That’s what got me here 😆
but yeah I’ll try reinstall again…
ok seems to be working
however nothing appears in the log
recently updated lsp, and it seems like unused vars no longer highlight, but if i do a lsp-lens-show i can see it has 0 references
We didn't change anything related to that, check this section to see if it works for you: https://clojure-lsp.github.io/clojure-lsp/troubleshooting/#wrong-diagnosticslint
clj-kondo will look for private unused vars, and this wasn’t a private var. unfortunately whoever wrote the code im working on was not very judicious in their application of adding private metadata
we used to have those for public functions before clj-kondo integration (2020 december)
i guess i understand why it’s not a clj-kondo thing, but it is useful when removing dead code
for instance, of course you don’t want your public API fns highlighted, but then again, i would assume those have a test…
yeah, for sure, it's something we lost when using clj-kondo, but I think we could implement it
continuing the convo from #clj-kondo: eh, i’m not 100% sure on highlight v warn. i’ll say i’m biased because i was used to a warning-like indicator in the old clojure-lsp. I think lens is neat, but where I found the previous underline helpful was when i was cruising around in a file and it was like “oh look, someone left some dead code here…”
carve has a .carve/ignore file: https://github.com/borkdude/carve so you can interactively add it to the list of ignored vars
@UKFSJSM38 you rule!