This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-03
Channels
- # announcements (12)
- # babashka (36)
- # beginners (126)
- # calva (26)
- # cider (10)
- # clj-kondo (71)
- # cljdoc (3)
- # cljsrn (2)
- # clojure (232)
- # clojure-australia (1)
- # clojure-europe (11)
- # clojure-france (20)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-serbia (4)
- # clojure-uk (6)
- # clojurescript (62)
- # conjure (5)
- # cursive (12)
- # data-science (1)
- # datomic (57)
- # deps-new (1)
- # duct (3)
- # emacs (5)
- # events (8)
- # fulcro (6)
- # graalvm (5)
- # helix (3)
- # jobs (6)
- # jobs-discuss (3)
- # kaocha (4)
- # lsp (128)
- # malli (12)
- # missionary (22)
- # off-topic (1)
- # pathom (7)
- # polylith (27)
- # quil (1)
- # re-frame (20)
- # react (9)
- # reitit (12)
- # releases (8)
- # remote-jobs (3)
- # sci (3)
- # shadow-cljs (9)
- # spacemacs (10)
- # tools-deps (7)
- # vim (7)
- # xtdb (14)
Hi! Out of curiosity, I created a nRepl server for nodejs using https://github.com/borkdude/sci: https://github.com/viesti/nrepl-cljs-sci. You can find it in npm (`"nrepl-cljs-sci": "0.0.11")` for use as npm dependency, possibly for adding to a JS project. It's also available for CLJS projects on clojars (`org.clojars.viesti/nrepl-cljs-sci {:mvn/version "0.0.11"}` , see the https://github.com/viesti/nrepl-cljs-sci/tree/main/example/cljs since a bit modified SCI is required for now :)). Basic eval and load-file ops should work :) Happy network repling :)


Very cool! I’m thinking a bit about what it would take to make this server work with Calva. Today Calva assumes a Clojure nREPL server, which might mainly be a UI thing, but I’m not sure. Do you have some use cases in mind for this? Maybe that would help me wrap my mind around the problem.
Cider differentiates cljs and clj buffers, and a I found out that a cljs file cannot be loaded into a CLJ repl, the there's example to use a .cljc file 🙂
It’s funny, but Calva has the exact same limitation. I don’t know why, but maybe the idea about a CLJS nREPL server was too crazy to even consider.
Released clojure-lsp https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.08.03-13.33.03 with awesome news 🎉
I'd like to thank you @borkdude for the help on #babashka and #clj-kondo side making it possible to clojure-lsp now understands babashka projects/scripts 🚀 From now on, clojure-lsp will make available completion, rename, find-references and all features you already know work great with bb as well
Another huge improvement/refactor on this release is how clojure-lsp lint public unused vars, we now use a new feature from clj-kondo called `custom-lint-fn` where it's possible to "create" its own linter but using clj-kondo features, giving the possibility to ignore this linter via code 🎉 Also this improves performance and open other possibilities to other clojure-lsp features 👀
For more information and details, check #lsp




FYI the LSP emoji is unreadable on dark mode and I wasn't sure what this announcement was about until I hovered over the parens at the beginning 😛