This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-02
Channels
- # adventofcode (6)
- # announcements (6)
- # babashka (21)
- # babashka-sci-dev (18)
- # biff (6)
- # clara (4)
- # clj-commons (2)
- # clj-kondo (7)
- # cljdoc (4)
- # clojure (9)
- # clojure-berlin (8)
- # clojure-europe (23)
- # clojure-gamedev (3)
- # clojure-indonesia (1)
- # clojure-nl (1)
- # clojure-norway (10)
- # clojure-poland (1)
- # clojurescript (27)
- # community-development (1)
- # conjure (32)
- # etaoin (6)
- # events (20)
- # fulcro (5)
- # graalvm (1)
- # helix (19)
- # hyperfiddle (14)
- # introduce-yourself (2)
- # music (1)
- # nbb (24)
- # off-topic (37)
- # pathom (2)
- # polylith (14)
- # reagent (11)
- # releases (1)
- # remote-jobs (1)
- # reveal (22)
- # shadow-cljs (16)
- # sql (3)
- # squint (11)
- # test-check (2)
- # xtdb (36)
@franquito Should work, what is the problem?
Running something like
bb -e "(clojure.pprint/pprint {:awfawfoamwf 1 :awfoiamwfoaimw 12399401324 :apwfomafwoimawf 1234912348})"
works flawlessly 😄Pretty printing doesn't work in an nrepl connection. I think there was an issue about it.
Once conjure connects it runs this code, but doesn't seem relevant https://github.com/Olical/conjure/blob/master/fnl/conjure/client/clojure/nrepl/server.fnl#L202-L211
This might be relevant: https://github.com/babashka/babashka.nrepl/blob/master/src/babashka/nrepl/impl/server.clj#L28 Not sure.
https://github.com/babashka/babashka.nrepl/issues/18 might also be good for reference
ah, nuts, looks like I can't use babashka in my global aliases like this:
:bbjava {:deps {io.github.babashka/babashka {:git/sha "c77944fad7acd4383ff732ebfa18412cf49bd9b2"}}
:main-opts ["-m" "babashka.main"] }
because tools.deps doesn't checkout submodulesif I go into ~/.gitlibs/libs/io.github.babashka/babashka/c77944fad7acd4383ff732ebfa18412cf49bd9b2
and run these, it works:
git submodule init
git submodule update
yeah, conjure uses conjure.internal/pprint
as a param to the print middleware, is a function with arity 3
but clojure.pprint/pprint
is a 2 arity function, I don't know if that affects something
https://github.com/nrepl/nrepl/blob/master/src/clojure/nrepl/middleware/print.clj#L241