This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-11
Channels
- # asami (19)
- # babashka (41)
- # beginners (115)
- # biff (7)
- # calva (78)
- # clj-kondo (29)
- # cljs-dev (9)
- # clojure (39)
- # clojure-europe (17)
- # clojure-gamedev (29)
- # clojure-nl (1)
- # clojure-norway (9)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurescript (7)
- # core-async (26)
- # cursive (16)
- # datomic (13)
- # emacs (1)
- # events (5)
- # fulcro (2)
- # funcool (4)
- # gratitude (1)
- # helix (1)
- # holy-lambda (1)
- # humbleui (1)
- # introduce-yourself (4)
- # java (1)
- # jobs (2)
- # jobs-discuss (9)
- # lsp (28)
- # matcher-combinators (2)
- # mathematics (1)
- # membrane (1)
- # nbb (12)
- # off-topic (10)
- # pathom (52)
- # polylith (38)
- # portal (32)
- # re-frame (4)
- # reagent (16)
- # reitit (2)
- # remote-jobs (1)
- # reveal (1)
- # rewrite-clj (10)
- # sci (67)
- # shadow-cljs (45)
- # squint (1)
- # tools-build (13)
- # tools-deps (16)
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?
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).
I'm curious if something like that is the error you're running into?
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
google has nothing for me, so I'm betting it's gentoo related (how many people use babashka on gentoo?)
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
wow- that's better than what I was getting; I guess I got too specific or something. thanks!