This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-17
Channels
- # aleph (4)
- # announcements (2)
- # babashka (85)
- # beginners (136)
- # calva (72)
- # clj-commons (32)
- # clj-kondo (7)
- # cljs-dev (3)
- # clojure (117)
- # clojure-europe (38)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-uk (4)
- # clojurescript (19)
- # conjure (38)
- # core-logic (2)
- # cursive (10)
- # datalevin (1)
- # datalog (1)
- # datomic (6)
- # events (2)
- # fulcro (16)
- # google-cloud (5)
- # graphql (10)
- # gratitude (3)
- # hugsql (3)
- # luminus (5)
- # membrane-term (12)
- # missionary (2)
- # nextjournal (5)
- # off-topic (3)
- # pedestal (2)
- # polylith (7)
- # portal (3)
- # re-frame (6)
- # reagent (26)
- # reclojure (8)
- # releases (3)
- # reveal (5)
- # shadow-cljs (14)
- # spacemacs (20)
- # sql (3)
- # tools-build (3)
- # web-security (9)
^ regarding the above comment i'm guessing the clojure spacemacs layer should be updated to use lsp by default on cljs? I'm guessing nothing is curently set and it uses cider on the backend.
I haven't noticed Cider backend being used for ClojureScript as default. Using Cider as the backend means LSP doesn't run at all and I am sure I was getting prompted to analyse the last ClojureScript project I opened a few weeks ago. All programming language layers were changed to LSP backend by default (that was the goal of introducing LSP in Spacemacs). It's more likely that there are a few tweaks that could be identified and added. If you have a project you can share, let me know. Or raise an issue on the Spacemacs repo.
Is the completion working for your projects?
I guess I'm not sure what more to share in terms of diagnostics. It doesn't work in most cases, i think when it is, it's because those completions are used in the file already.
I hate to think doom emacs has more clojure support then spacemacs!
Yeah, I already noticed some missing tunes on spaceemacs last time I checked regarding lsp + clojure
do you know who or where that's maintained?
I'm not sure, doom has modules maintianers, I suppose spaceemacs has something like that?
it's odd the layer docs doen't link to the code https://develop.spacemacs.org/layers/+lang/clojure/README.html. here it is https://github.com/syl20bnr/spacemacs/tree/develop/layers/+lang/clojure
Also, I see to few mentions on LSP features, maybe the docs should mention that with LSP you win limiting and a lot of other things the docs are recommending to install that are already built-in on LSP :man-shrugging:
LSP is enabled by default in the Clojure layer (all prog Lang layers) A layer variable (or setq) is required to revert back to Cider (and ensuring LSP doesn't run)
They have some conflicts like completion and navigation but besides those, I think pretty much everything works fine together
Cider backend is just Cider, no LSP. LSP backend is LSP + Cider
If it's just the Cider backend, then LSP is not run when a project is open. So LSP doesn't prompt to analyse a new project and none of the LSP specific keybindings are there.
I'll check again my ClojureScript projects, but fairly sure they are running LSP. Doom might have some additional custom config to make Clojure and LSP work nicely that isn't in Spacemacs, but LSP should be the default for clj, cljc and cljs.