calva

stephenmhopper 2025-05-17T12:52:33.525469Z

I'm interacting with some code that uses log4j2. I have the log4j2.properties file configured to output to STDOUT. When I run my tests via lein test on the terminal, I see log4j output. However, when I run the same code from a REPL via Calva (with the dev profile) I don't see any kind of log4j output. Is there some trick to seeing this? It looks like Calva has a few different output locations and it's not clear if I'm doing something wrong or not looking in the right place EDIT: even simply running lein repl fires off a bunch of log messages from log4j and I'm not seeing these in calva EDIT: I found the output in the Calva Jack-in terminal output. I'm not sure why I didn't find this sooner

pez 2025-05-17T13:33:17.447419Z

In theory you should also get the output to your output destination with default settings.

pez 2025-05-17T13:34:01.140299Z

Maybe that is a bit unclear. I have changed the default in my settings. 😃

pez 2025-05-17T13:42:30.885709Z

Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.512 • Fix: https://github.com/BetterThanTomorrow/calva/issues/2832 https://calva.io/flares/ is this super cool feature where if an evaluation results in #flare/html { … } a webview will open in Calva showing the contents or url specified in the flare.

janezj 2025-05-17T15:32:30.495889Z

Hi, On my setup node prints are not visible in the output. I tried shadow-cljs watch and connect to repl SERVER and all combinations of "calva.outputDestinations". https://calva.io/async-out/ says output should appear in shadow-cljs terminal. That never happened in my case (shadow-cljs 3.0.5)

(def aaa (atom 0))
  (def timer-id
    (js/setInterval
     #(do (js/console.log "Current time:" (js/Date.))
          (swap! aaa inc)
          (log/info "Timer:" @aaa))
     3000))

pez 2025-05-17T20:50:40.381919Z

Hi! This is a bit of a moving target. I don’t know enough about this to know what more to try. You are welcome to file an issue. We may need to dig into shadow’s remote API to solve this properly.

janezj 2025-05-17T21:10:28.641169Z

i tried versions 2.28.20, and 3.1.1. Do you know shadow version that worked with node repl?