This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-17
Channels
- # ai (1)
- # announcements (1)
- # aws (38)
- # babashka (25)
- # beginners (84)
- # biff (11)
- # calva (58)
- # clerk (14)
- # clj-kondo (14)
- # cljdoc (9)
- # cljs-dev (2)
- # clojars (2)
- # clojure (93)
- # clojure-czech (2)
- # clojure-dev (13)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-spec (13)
- # clojure-uk (2)
- # clojurescript (6)
- # conjure (1)
- # core-async (9)
- # cursive (12)
- # data-science (7)
- # datahike (47)
- # datalevin (10)
- # datalog (3)
- # datomic (35)
- # emacs (3)
- # events (4)
- # fulcro (49)
- # gratitude (7)
- # humbleui (1)
- # hyperfiddle (42)
- # jobs-discuss (19)
- # kaocha (5)
- # lsp (20)
- # malli (3)
- # meander (2)
- # membrane (2)
- # off-topic (22)
- # pathom (2)
- # polylith (14)
- # practicalli (1)
- # rdf (3)
- # reitit (2)
- # shadow-cljs (11)
- # squint (3)
- # tools-deps (32)
- # vim (9)
- # xtdb (16)
(require
'[babashka.process :as proc]
'[ :as io])
(def proc1
(proc/process
{:out :inherit
:err :inherit}
"ls"))
(with-open [r (io/reader (:out proc1))]
(println (line-seq r)))
(def proc2
(proc/process
{:out :string
:err :inherit
:dir "dir1"}
"ls"))
(with-open [r (io/reader (:out proc2))]
(println (line-seq r)))
i was having the issue in another bb project and was able to recreate it in a this small sample. I'm using babashka v0.10.163
Oh goodness I didn't even realize that I thought it was the latest from brew :man-facepalming:
ok just wanting to confirm that was the issue. I guess i somehow downloaded that old binary and stomped on the one in my brew path. thanks for pointing out that very obvious problem to me π
Would anyone know how one goes about building java classes that aren't included for babashka(I assumed it would involve native-image somehow, but wanted to check I wasn't overlooking anything), and where to find a reference for what the sci-compatible subset of clojure is? My particular issue is needing to pull some of the future and promise objects out of clojure.lang which the library I am trying to compile for use with bb needs.
Those classes are in src/babashka/impl/classes.clj
and building bb is a matter of running:
script/uberjar && script/compile
Also see https://github.com/babashka/babashka/blob/master/doc/dev.mdand: https://github.com/babashka/babashka/blob/master/doc/build.md The GraalVM version mentioned in that doc should be updated to the newest
I think maybe bb is still on Graal 22.3.1 because 22.3.2 did not include a jdk19 variant.
Trying to resolve a dependency issue with Recife and Clerk, would a PR to bump the version of fs
used by babashka/process
be welcome? Seems to pass all CI tests
https://clojurians.slack.com/archives/C056HVC6Q3Z/p1684345272808769?thread_ts=1684339845.182149&cid=C056HVC6Q3Z
thanks!
in general, if you need a newer version of a transitive dependency it is normal that you include the newer dependency yourself
thanks, Recife uses process
and I guess Clerk uses fs
and needs a version with unixify
so trying to run a notebook with recife was failing. I was working around with correct fs
locally, but this seemed like the most straightforward way to fix it for the future.
appreciate the quick response, 11/10 service as always
Owww thank you!!!
yes, but if clerk includes a newer fs than recify, you should get the newer fs version automatically? unless you include an older one as a top level dependency (I'm assuming we're all using deps.edn and not lein here)
Yeah, but I guess Chuckle (whatβs your name? ahahahha) was using another library that included Clerk, then the dependency hell occurred. Thanks for updating it, Michiel o/