Fork me on GitHub
#planck
<
2019-07-29
>
borkdude19:07:41

is something like pprint available in planck?

manutter5120:07:17

cljs.user=> (require '[cljs.pprint :as cp])
nil
cljs.user=> (cp/pprint {:foo 1 :bar 2})
{:foo 1, :bar 2}
nil

borkdude20:07:01

interesting. I tried [clojure.pprint] and this failed on me

borkdude20:07:23

I get: Unexpected error (Error) macroexpanding cljs.core$macros/macroexpand at (cljs/pprint.clj:84:31).

mfikes21:07:13

@borkdude Curious which version of Planck you are using. (`plk -V`) I can't repro ^

borkdude21:07:24

$ plk -V
2.24.0
Note that I'm not doing this from the REPL but with a script

borkdude21:07:55

hmm, also with the REPL:

$ plk
ClojureScript 1.10.520
cljs.user=> (require '[cljs.pprint])
Unexpected error (Error) macroexpanding cljs.core$macros/macroexpand at (cljs/pprint.clj:84:31).
form is not ISeqable

borkdude21:07:33

I'll try to re-install planck, maybe that helps

mfikes21:07:44

Hrm. That's odd.

$ plk -V
2.24.0
$ plk
ClojureScript 1.10.520
cljs.user=> (require '[cljs.pprint])
nil

borkdude21:07:18

that helped...

borkdude21:07:13

$ brew remove planck
$ brew install planck
$ plk -V
2.24.0
$ plk
ClojureScript 1.10.520
cljs.user=> (require '[cljs.pprint])
nil
cljs.user=>
🤷