@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.
@mike858 That fn is already available to Planck. FWIW. (No need to port it, I'd guess.)
It is indirectly used, for example here https://github.com/planck-repl/planck/blob/master/planck-cljs/src/planck/repl.cljs#L1579
cljs.user=> cljs.repl/Error->map
#object[cljs$repl$Error__GT_map]
So, in short, if you want to use it, just (require 'cljs.repl)
and call it.
Ah. Got it.
Sweet! Output looks a lot nicer now :) Thanks!