This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-23
Channels
- # announcements (1)
- # aws (13)
- # babashka (31)
- # beginners (102)
- # calva (46)
- # cider (16)
- # clj-kondo (1)
- # cljs-dev (3)
- # clojars (1)
- # clojure (396)
- # clojure-argentina (1)
- # clojure-australia (4)
- # clojure-europe (64)
- # clojure-nl (2)
- # clojure-uk (8)
- # clojurescript (20)
- # conjure (5)
- # cursive (4)
- # datomic (15)
- # emacs (48)
- # graalvm (69)
- # graalvm-mobile (1)
- # jobs (4)
- # jobs-rus (1)
- # lsp (6)
- # malli (15)
- # meander (2)
- # observability (11)
- # off-topic (10)
- # pathom (2)
- # portal (4)
- # re-frame (19)
- # reitit (1)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (51)
- # tools-deps (11)
- # vim (12)
- # xtdb (13)
@alex.kelley you can use bootleg as a pod to parse html and convert it, https://github.com/retrogradeorbit/bootleg#babashka-pod-usage and https://github.com/retrogradeorbit/bootleg#data-conversion or can just simply use data.xml? https://github.com/clojure/data.xml this is supported in bb
if going with bootleg, you dont have to install it manually, you can follow https://github.com/babashka/pod-registry#loading-and-using-a-pod , bb should be able to download and setup bootleg for you
@alex.kelley I updated the bootleg example here: https://github.com/babashka/pod-registry/blob/master/examples/bootleg.clj
Hello, I am connecting through cider-connect to a babashka nrep in emacs. Accidentally I started an infinite loop (take-while). Is it possible to stop the command execution somehow? Tried ctrl-c - ctrl-c or ctrl-c - ctrl-b (cider-interrupt), but they did not work.
unfortunately, due to restrictions in GraalVM native-image, Thread#stop
doesn't work, this is normally what nREPL uses to kill eval
https://github.com/babashka/process/blob/4c6699d06b49773d3e5c5b4c11d3334fb78cc996/src/babashka/process.clj#L198-L199
this case looks weird - maybe it was meant to be (case out :string
?
as this is probably the only supported value it still works as expected, but this is a mistake
I am trying to run a command and get something like this for an API around process:
I am running my tests using bb
. It works great! Now I would also like to fail the tests when the output of process
contains some known warnings/errors from third-party libraries. I was thinking of making a my-process
function that would look like this
(let [a (atom)]
(my-process my-cmd {:out (fn [line] (println line) (check-line a line))
:err (fn [line] (println line) (check-line a line))}))
However that does not seem possible at the moment? I see this https://github.com/babashka/process#processing-output
which looks somewhat promising but I am not sure how to terminate the loop. I guess if I could have access to the underlying https://docs.oracle.com/javase/8/docs/api/java/lang/Process.html I could use isAlive
https://docs.oracle.com/javase/8/docs/api/java/lang/Process.html but I don’t think it is currently supported.