This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-08
Channels
- # announcements (14)
- # babashka (16)
- # beginners (15)
- # biff (15)
- # calva (48)
- # clj-kondo (42)
- # cljdoc (25)
- # clojure (18)
- # clojure-europe (75)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-romania (1)
- # clojure-uk (10)
- # conjure (18)
- # core-typed (4)
- # cursive (16)
- # emacs (8)
- # fulcro (27)
- # graalvm (17)
- # honeysql (14)
- # hyperfiddle (9)
- # lsp (24)
- # missionary (5)
- # music (1)
- # nrepl (20)
- # off-topic (14)
- # re-frame (9)
- # reagent (34)
- # reitit (2)
- # releases (1)
- # shadow-cljs (19)
- # sql (16)
- # squint (9)
- # testing (2)
- # tools-build (10)
I am getting the The conected server(s) doesn't support renaming
error when trying to lap-rename
symbols/functions. It definitely worked before. It stopped working after upgrading my emacs-doom (which was several months out of date). Unfortunately I didn't keep the known good before versions. Can someone give me some pointers on how to troubleshoot this? The clojure-lsp server log looks fine. The problem is probably on the emacs side..?
Definitely seems like an emacs issue? It seems emacs lsp-mode thinks the server isn't finished starting. lsp-describe-sesssion
shows :
`-[-] clojure-lsp:904158/starting
|-[-] Buffers
| `-[+] app.mybuffer.
`-[+] Capabilities
can you check if the project root is correct with lsp-workspace-folders-remove
?
also lsp-clojure-server-info
may print relevant info
> can you check if the project root is correct with lsp-workspace-folders-remove
?
yes it is.
> also lsp-clojure-server-info
may print relevant info
execing this doesn't seem to have any visible effect
Is it possible to find out which dependency is the source of a clj-kondo config folder?
i deleted my deps.edn file to try to debug but a specific config folder keeps reappearing, so i'm really confused
okay, the classpath was cached, so once i cleared everything, i got an error about running bb print-deps --format classpath
which for some reason includes http-kit (and a lot of other stuff), which is causing the http-kit hook to be included in my repo. can this be changed? i don't want or need babashka's "built-in deps" included in my clj-kondo config folder
i've posted in #CLX41ASCS about this as it's not a clojure-lsp issue
after speaking with borkdude, it seems that the issue is clojure-lsp calling bb print-deps --format classpath
unconditionally. i looked at clojure-lsp's settings and i think i can set the https://clojure-lsp.io/settings/#classpath-scan to only check deps.edn. seems like a heavyweight solution but who's to say
yes, currently this is the only solution and I know it's not that user friendly, but I think we can improve that
I'll open a github issue to discuss
@UKFSJSM38 thank you. I saw that it's only used to determine inside-comment?
at the moment: https://github.com/clojure-lsp/clojure-lsp/blob/eca423d71e08f232e35525a57b96c972691e5619/lib/src/clojure_lsp/feature/diagnostics.clj#L68
Is there a reason you don't require the same sort of logic on other analysis types, like :namespace-definitions and such?
What is the general problem that :callstack solves for LSP now? It's to ignore vars defined inside comment
forms when looking up var definitions?
Wouldn't it make sense to extend the same logic to namespace definitions, for example?