This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-11
Channels
- # announcements (16)
- # aws (17)
- # babashka (25)
- # beginners (60)
- # calva (40)
- # cider (3)
- # clara (4)
- # clj-kondo (24)
- # clojure (16)
- # clojure-austin (3)
- # clojure-dev (23)
- # clojure-europe (33)
- # clojure-nl (2)
- # clojure-norway (7)
- # clojure-uk (4)
- # clojurescript (39)
- # clr (108)
- # conjure (10)
- # cursive (12)
- # datalevin (7)
- # editors (2)
- # events (1)
- # fulcro (24)
- # graalvm (3)
- # introduce-yourself (8)
- # london-clojurians (2)
- # malli (18)
- # meander (6)
- # missionary (10)
- # nbb (16)
- # off-topic (19)
- # polylith (1)
- # portal (4)
- # rdf (1)
- # reitit (4)
- # remote-jobs (3)
- # shadow-cljs (10)
- # xtdb (12)
Sorry for the newbie question, but could babashka be used to load+parse a https://github.com/metosin/malli#json-schema file then use https://github.com/metosin/malli#plantuml all in one script?
How would you do this without babashka, in clojure JVM? And doesn't that approach work in babashka?
I'm hitting a brick wall with that approach so far, but am still working on it. Thanks, @U04V15CAJ - that makes sense that once I solve the problem then I should be able to use babashka to do it. I apologize for the noise.
I was just wondering if something didn't work in bb that did work in the JVM, that happens
Does babashka support any sort of "user-level" tasks? It's great having the tasks stuff available at a project level, but I'd like to define user-level tasks as a way of being able to run stuff from kinda anywhere through one interface and see all my tasks through bb tasks
. As opposed to sourcing a scripts directory and trying to remember what all is in there
There was just a conversation about this: https://clojurians.slack.com/archives/CLX41ASCS/p1673105909420349 There's two ways to address this: • Make scripts and add them to your path, also see #babashka-bbin • Use a global bb.edn and write a bash script or alias which does something like:
bb --config ~/my_global_project/bb.edn $@
Oh hahah guess I should've just scrolled up :face_palm: Thank you so much, I'll read through this!
I didn't see anything about it in the babashka book, so I assume not, but figured it was worth confirming
I’m trying to run a Babashka nrepl on a server via ssh, so I can edit scripts locally but eval them on the server. I’m starting the server like this:
ssh -L1777:localhost:1667 bb --nrepl-server
This works fine, but when I kill the ssh client it leaves bb
running on the server. When I leave off the --nrepl-server
flag, killing ssh also kills the bb
process on the server. Does anyone have an idea how to have the nrepl server automatically terminated?This maybe? https://unix.stackexchange.com/questions/103699/kill-process-spawned-by-ssh-when-ssh-dies
What is wrong with this bb.edn? https://github.com/juji-io/datalevin/blob/master/.build/bb.edn
----- Error --------------------------------------------------------------------Type: clojure.lang.ExceptionInfoMessage: Could not resolve symbol: ghr/release-artifactData: {:type :sci/error, :line nil, :column nil, :file “<expr>“, :phase “analysis”}Location: <expr>:26:1Phase: analysis----- Context ------------------------------------------------------------------22: nil23: (def release-artifact (binding [24: babashka.tasks/task ’{:name release-artifact, :task (ghr/release-artifact {:org “juji-io”, :repo “datalevin”, :tag “0.7.12", :file (System/getenv “DTLV_ARCHIVE”), :overwrite true})}]25: nil26: (ghr/release-artifact {:org “juji-io”, :repo “datalevin”, :tag “0.7.12", :file (System/getenv “DTLV_ARCHIVE”), :overwrite true}))) release-artifact ^--- Could not resolve symbol: ghr/release-artifact