Fork me on GitHub
#babashka
<
2023-06-03
>
markx17:06:23

Hi folks, does babashka works with cider-nrepl middleware? (I didn't find anything in the doc so wanted to confirm)

lispyclouds17:06:10

looking at your post on #C03S1KBA2 i assume you wanna use bb with nvim+conjure?

markx17:06:41

Yeah that's correct

lispyclouds17:06:05

right, so in general conjure REPLs work pretty well in bb. it even has an auto repl mode which starts a bb if nothing is specified. you dont need any special middleware to work with it

lispyclouds17:06:58

you can start a repl server: https://book.babashka.org/#_nrepl and conjure can connect and work normally

markx17:06:08

Yeah...but how do I add cider-nrepl to it?

lispyclouds17:06:26

whats the usecase for adding cider-nrepl?

lispyclouds17:06:14

bb implements its own nrepl server. are you looking for something specific to cider?

markx17:06:56

I just thought cider-nrepl provided some useful features, so I always use it by default. Are you saying that bb comes with all the features included so cider-nrepl is unnecessary?

lispyclouds17:06:58

yep. cider-nrepl is the nrepl impl for clojure and for the JVM. bb isnt a proper JVM, its a native env and provides its own nrepl impl

markx17:06:02

OK so it doesn't work. Thanks for confirming and clarifying!

lispyclouds17:06:41

yeah its gonna make some assumptions that may not hold true for something thats not a JVM

lispyclouds17:06:31

let us know if there is some feature you'd like to do in the bb nREPL that's not there, we can take a look!

lispyclouds17:06:01

in general if youre using fancier things like the cider debugger, it probably wont work in bb (@U04V15CAJ can confirm), do the REPL sessions on a JVM repl and the when happy, switch to a bb one.

borkdude18:06:27

There is an issue to make cider nrepl work with bb https://github.com/babashka/babashka.nrepl/issues/62 Still work in progress, not currently working