Fork me on GitHub
#babashka
<
2022-03-28
>
theeternalpulse16:03:39

I have a dependency I added to my bb.edn :deps section but upon starting my repl (via cider-jack-in-clj), it's not downloading the dependencies to be made available at runtime. Is there a limitation as to what dependencies I can add to the bb.edn?

borkdude17:03:04

Are you starting the nREPL server in clojure or bb?

theeternalpulse18:03:54

I've tried both clojure and bb

borkdude18:03:14

clojure does not do anything with bb.edn

borkdude18:03:37

what error are you getting?

theeternalpulse18:03:52

nothing, I'm actually wondering what hte :deps part of the bb.edn is for. I am running the project repl via bb nrepl-server

theeternalpulse18:03:18

I was expecting it to load the deps into the classpath

borkdude18:03:26

yes, that's what's supposed to happen :)

borkdude18:03:34

what version of bb are you using?

borkdude18:03:22

That should work. If you can make a repro, maybe by posting the bb.edn?

theeternalpulse18:03:50

I guess I see the dependency in my m2 directory, but requiring it in the ns throws an error

theeternalpulse18:03:14

so it must have installed it and I missed it

borkdude18:03:43

it could be that the code is incompatible with bb somehow

theeternalpulse18:03:55

yeah, the stacktrace was not very helpful, didn't point me to any place in particular where the ns would be failing. I'll keep at it, I removed the m2 entry to see if I can install it again

borkdude18:03:40

that won't work, not even with deps.edn, since classpaths are cached unless you use bb --force

theeternalpulse18:03:33

Yeah, I think it's something with the library. No biggie, was actually testing out external dependencies and chose one that isn't even at version 0.1 so I guess that's my fault.

borkdude18:03:13

We keep a list of compatible libraries over here, might give you some ideas: https://github.com/babashka/babashka/blob/master/doc/projects.md

borkdude18:03:25

And if you find more, please share :)

theeternalpulse18:03:13

good resource, will bookmark that

Cora (she/her)20:03:18

may I ask which library it is?

theeternalpulse20:03:59

https://github.com/donut-power/system, it's still in early dev, and really I wasn't planning on making it an integral part of my application, just wanted to test it against integrant which I've used previously

borkdude21:03:45

component and integrant do work with bb

borkdude21:03:46

ah I see, donut.system is using malli which doesn't work with bb

borkdude21:03:26

quite a dependency heavy system library: specter, malli, ...

theeternalpulse23:03:23

yeah, it's in very early stage, but it's touting to be a more minimal/intuitive library, I'll have to bring it up when it gets beyond just a demo stage which is where I saw it. until then I'll just try it in CLJ Proper