This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-19
Channels
- # adventofcode (5)
- # announcements (1)
- # babashka (44)
- # beginners (83)
- # biff (10)
- # calva (1)
- # cherry (3)
- # cider (10)
- # clojure (78)
- # clojure-europe (12)
- # clojure-norway (1)
- # conjure (1)
- # cryogen (1)
- # datascript (4)
- # dev-tooling (2)
- # gratitude (2)
- # lsp (4)
- # malli (6)
- # off-topic (15)
- # polylith (9)
- # quil (19)
- # releases (1)
- # sci (6)
- # scittle (64)
- # sql (10)
- # squint (35)
Can I get "logging" from enrich-classpath
when using clojure.sh
? It can take a while and "DEBUG true" does not seem to work.
Check the output=...
part in that script
we only use its last line for for the 'green path' via tail
You could echo $output
unconditionally. Probably I didn't want to do that as it's noisy and can potentially confuse other tools
And it would not stream, correct ?
Yeah it wouldn't If you can figure out / gpt how to do it cleanly, I'd be willing to merge it in
These lines could maybe write to a file, and not "println": https://github.com/clojure-emacs/enrich-classpath/blob/d1f029f0e1b078a1c407032be0928098acf5223b/src/cider/enrich_classpath/logging.clj#L24
I don't know enough about bash to suggest improvements, but it seems to me to be tricky to see a stream of "println" while at the same time capture the latest println in a bash variable (as this is the command to execute) Maybe there is some "tee" trickery to get this working.
This does work:
output=$(2>&1 "$clojure" -Sforce -Srepro -J-XX:-OmitStackTraceInFastThrow -J-Dclojure.main.report=stderr -Sdeps '{:deps {mx.cider/tools.deps.enrich-classpath {:mvn/version "1.18.5"}}}' -M -m cider.enrich-classpath.clojure "$clojure" "$here" "true" "$@" | tee /tmp/progress.log)
so it streams the output "downloads of jars" and "enrich-classpath` logging into /tmp/progress.log