jpmonettas / inspectable

In the spec table
Eclipse Public License 1.0
71 stars 3 forks source link

Instructions to use inspectable in Figwheel REPL #1

Open bhb opened 7 years ago

bhb commented 7 years ago

Most of my Clojurescript development is at a Figwheel REPL. Is it possible to use Inspectable in a Figwheel REPL? If so, would you consider adding instructions on how to do it? I suspect many CLJS devs are in a similar situation.

jpmonettas commented 7 years ago

If by using inspectable in a figwheel repl you mean installing it so it catches spec exceptions and automatically calls why on it's explan-data it's not implemented yet. But calling why or browse-spec at any cljs repl should work.

Currently inspectable.cljs_repl/repl-caught throws a "not implemented" exception.

I'll try to figure out if figwheel repl currently supports starting it with a custom :caught exception handler fn and finish repl-caught implementation.

Any ideas are welcome!