Fork me on GitHub
#biff
<
2022-11-11
>
m.q.warnock14:11:44

I'm running into a problem with the new-project script, since you started using babashka. It's almost certainly an oddity of gentoo, but I haven't been able to figure it out on that side. It also happens with logseq and portal, but not in every directory with a bb.edn. I'll ask the babashka folks, when I have time, but what I'm wondering right now, so I can just work around it: what does bb --force -e nil do, on line 73 of new_project.clj?

Jacob O'Bryant18:11:29

It's a workaround for a babashka bug which I haven't gotten around to bringing up in #CLX41ASCS yet. Sometimes for reasons unbeknownst to me, babashka gets an incorrect classpath. You try to run a babashka task, and it just says "function not found" or something like that (I don't remember the error message). bb --force -e nil -- specifically the --force part -- forces babashka to recompute the classpath. I've stuck it in there as a pre-emptive measure, so hopefully biff users won't run into the error (unless they make modifications to bb.edn and/or the tasks.clj file--I'm not sure exactly what triggers the error).

Jacob O'Bryant18:11:21

I'm curious if something like that is the error you're running into?

m.q.warnock19:11:02

I see. Yeah, I have a different problem, and one I couldn't just work around the way I was thinking, because all the tasks were moved to bb - which seems totally sensible. I ended up comparing (`meld` ftw) the output of creating the example project up to that point with my fleshed-out one, and manually fixing up my project to work with the latest. Wasn't too bad 🙂 fwiw, the thing I encounter is:

momerath@gene ~/git/tmp/articulatus $ bb -e '(+ 1 1)'
* run-java-tool was invoked directly
* run-java-tool should only be used via symlinks to it

m.q.warnock19:11:33

google has nothing for me, so I'm betting it's gentoo related (how many people use babashka on gentoo?)

Jacob O'Bryant19:11:33

interesting--yep, haven't seen that one myself 🙂 . That is a difficult thing to search for... got a few leads with this though; it does seem to be a gentoo thing: https://www.google.com/search?q=%22run-java-tool%22+gentoo

m.q.warnock19:11:19

wow- that's better than what I was getting; I guess I got too specific or something. thanks!

👌 1