planck

Planck ClojureScript REPL
borkdude 2019-07-29T09:13:17.012300Z

😎 https://twitter.com/borkdude/status/1155764513276387328

😮 1
🎉 1
borkdude 2019-07-29T19:54:41.013Z

is something like pprint available in planck?

2019-07-29T20:06:17.013300Z

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

borkdude 2019-07-29T20:55:01.013900Z

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

borkdude 2019-07-29T20:55:23.014100Z

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

mfikes 2019-07-29T21:03:13.015100Z

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

borkdude 2019-07-29T21:08:24.015700Z

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

borkdude 2019-07-29T21:08:55.016100Z

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

borkdude 2019-07-29T21:14:33.016500Z

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

mfikes 2019-07-29T21:14:44.016800Z

Hrm. That's odd.

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

borkdude 2019-07-29T21:15:18.017100Z

that helped...

mfikes 2019-07-29T21:15:18.017200Z

Linux?

borkdude 2019-07-29T21:15:22.017400Z

no Mac

borkdude 2019-07-29T21:16:13.018200Z

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

mfikes 2019-07-29T21:17:01.018400Z

👻