This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-10
Channels
- # announcements (2)
- # babashka (20)
- # beginners (381)
- # calva (16)
- # chlorine-clover (21)
- # cider (1)
- # clj-kondo (18)
- # cljs-dev (107)
- # cljsrn (2)
- # clojure (161)
- # clojure-dev (5)
- # clojure-europe (2)
- # clojure-losangeles (3)
- # clojure-nl (3)
- # clojure-uk (35)
- # clojurescript (22)
- # conjure (48)
- # cursive (8)
- # datascript (11)
- # datomic (6)
- # figwheel-main (10)
- # fulcro (85)
- # hoplon (112)
- # jobs (1)
- # kaocha (5)
- # luminus (5)
- # malli (1)
- # off-topic (96)
- # onyx (1)
- # pedestal (1)
- # perun (1)
- # reagent (5)
- # reitit (1)
- # shadow-cljs (34)
- # specmonstah (1)
- # sql (6)
- # tools-deps (3)
- # xtdb (23)
Who'da thought: just tried bb 0.0.81 on Windows 10 and babashka.curl
worked out of the box!
C:\Users\borkdude\Downloads>bb -e "(:status (curl/get """"))"
200
https://techcommunity.microsoft.com/t5/containers/tar-and-curl-come-to-windows/ba-p/382409
Thanks for adding shutdown hooks! I have a script that launches a repl using clojure
and when I hit ctrl-c the jvm process would run away with an io error. Adding a shutdown hook to kill the jvm process works like a charm.
I ran into a problem with babashka.curl, the header parsing from the same stream as the effective response sometimes leads to problems. That's why it's now moved to dumping to a tempfile and then parsing that. But curl won't write the header file before you start reading the input stream. It basically waits for you to consume it and then starts the request it seems. That's why I did this: https://github.com/borkdude/babashka.curl/blob/ee4ff3d5e2405ca636ed9090318f8fa8eca0a30f/src/babashka/curl.clj#L134 But maybe that can be improved. It feels like a stupid workaround.
Hmm, the issue is course that you don't know when curl is done writing that file. So maybe this is the correct way, because if you can consume the first byte, the headers must already be there.
has somebody here connected Cursive REPL to babaskha? I tried with nrepl, but that generates tons of errors, and with socket repl the connection doesn’t start, so I wonder if someone figure how to make this integration works
@wilkerlucio It might help starting it with BABASHKA_DEV=true bb --nrepl-server
to see what messages it receives
I've heard reports from vim-iced and Calva that the nREPL server works for them and I've tested CIDER and lein repl :connect
myself
The socket repl is pretty simple so I'm surprised that doesn't work, but maybe Cursive assumes something about bb that it doesn't have
I was doing some googling, I got to make it work using: https://github.com/mfikes/tubular
this thread explains why it doesn’t work with socket connection in Cursive out of the box: https://groups.google.com/forum/#!msg/cursive/GfbTm-Tut4M/r2VRlaCsBAAJ