This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-19
Channels
- # arachne (1)
- # beginners (108)
- # boot (50)
- # cljs-dev (7)
- # clojure (76)
- # clojure-ireland (1)
- # clojure-romania (1)
- # clojure-russia (7)
- # clojure-spec (33)
- # clojure-taiwan (1)
- # clojure-uk (36)
- # clojurescript (46)
- # core-async (13)
- # datomic (146)
- # defnpodcast (1)
- # editors (1)
- # garden (2)
- # hoplon (1)
- # jobs (1)
- # lumo (7)
- # off-topic (21)
- # om (9)
- # pedestal (1)
- # re-frame (25)
- # reagent (5)
- # specter (2)
- # testing (3)
- # unrepl (3)
- # untangled (9)
- # vim (1)
I’m getting the above error and I’m not really sure what I’m doing wrong
This seems to be the problematic function:
I had just added the next-context argument
Function was working fine before that change
Does anyone have an example of adding a custom Chrome devtools formatter? I can't make head nor tail of the documentation, or see anything in the source that suggests how its done
i have a reasonable simply object which wraps an id and it's very annoying to have it printed [object Object] everywhere
@sandbags have you tried this?
(devtools/install!) (enable-console-print!)
(from the todomvc example)
Using println gets me pretty clojure output
Um, I may have misread your intention
@sandbags: You'll likely have better luck in #clojurescript - a lot more people in there that might have had to do that.
@anthonylebrun yes, i'm looking to create a new formatter for an object not understood, rather than enabling formatters
@shaun-mahood good point
@andre i have objects as keys in a number of places and seeing a series of [object Object] {n keys}
is making it difficult to browse
@andre in most cases these objects have a simple structure since they contain an id that could be sensibly displayed
at first i thought this was about Chrome formatters but looking at re-frisk-shell:frisk.cljs:90
i'm wondering if it would be possible to add custom Object formatters to re-frisk to handle this?
hrmm... perhaps I am mistaken, I built a new version replacing "Object" with "Frood" and I still see [object Object]