Fork me on GitHub
#conjure
<
2020-09-30
>
tzzh17:09:22

Hey, I don’t know if it’s coming from babashka or conjure but it seems that I am not always seeing stuff getting printed to the stderr when using conjure with bb for example

(println "Hello, STDOUT!")

(binding [*out* *err*]
  (println "Hello, STDERR!"))
gives me the following output in the output buffer
; --------------------------------------------------------------------------------
; eval (current-form): (println "Hello, STDOUT!")
; (out) Hello, STDOUT!
nil
; --------------------------------------------------------------------------------
; eval (current-form): (binding [*out* *err*] (println "Hello, S...
nil
(I do see both in my nrepl terminal tab that I started with bb --nrepl-server)

tzzh17:09:30

it does work for me with a normal clojure repl though

borkdude17:09:01

Might be an issue with babashka.nrepl, if it works with a normal JVM nREPL

Olical17:09:53

Yeah I've found that BB just works differently in this way, I was personally okay with it since you might need your script to maintain stdio streams even when nREPLing. Maybe bb could write to stdio and send nREPL messages though.