Fork me on GitHub
#announcements
<
2021-08-03
>
viesti06:08:40

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 :)

🎉 20
🔥 18
🚀 9
cljs 3
sci 3
pez09:08:35

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.

viesti10:08:05

I did some hacks to please Cider so that I can make a CLJ cider connection 🙂

pez11:08:18

Yes, I can make a CLJ cider connection from Calva. But it is a bit confusing. 😃

viesti11:08:16

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 🙂

viesti11:08:44

don't know if Calva has same limitation 🙂

pez11:08:59

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.

😄 3
ericdallo13:08:09

clojure-lsp 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 babashka 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 clojure-lsp

clojure-lsp 76
🚀 48
catjam 15
babashka 16
sheepy 6
lilactown15:08:35

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 😛

👆 6
ericdallo15:08:21

Thanks, I actually forgot to add clojure-lsp after the released facepalm and slack doesn't allow me to edit the message anymore

ericdallo15:08:04

Oh, managed to edit :)