Fork me on GitHub
#planck
<
2019-04-16
>
pyrmont00:04:49

@mfikes I'm looking at adding Error->map (http://cljs.github.io/api/cljs.repl/Error-GTmap) to planck.repl for use by the pREPL feature I'm working on. It looks to me like all of the functions in cljs.repl necessary for that function are implemented already in Planck's REPL code except for extract-canonical-stacktrace. The thing is that that function doesn't seem to be defined anywhere within ClojureScript itself. I noticed you'd added it to the official repo (https://github.com/clojure/clojurescript/commit/59997385d85e7e1af1559d599eb51fdb1d7e93b1) and wondered if you could help me understand it a bit better.

mfikes00:04:46

@mike858 That fn is already available to Planck. FWIW. (No need to port it, I'd guess.)

mfikes00:04:03

cljs.user=> cljs.repl/Error->map
#object[cljs$repl$Error__GT_map]

mfikes00:04:53

So, in short, if you want to use it, just (require 'cljs.repl) and call it.

pyrmont00:04:07

Ah. Got it.

pyrmont00:04:46

Sweet! Output looks a lot nicer now :) Thanks!