Format logged ClojureScript data structures
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: Harald, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 obsolete file)
Chrome DevTools' Custom Formatters feature is not secure and seems to be only used by ClojureScript DevTools. We still want to unblock CLJS developers to have a better experience with DevTools, similar how we format framework stacks and identify frameworks for file icons.
The basic idea that we want to validate is implementing CLJS' formatters as DevTools reps.
Comment 1•5 years ago
|
||
I'd be happy to mentor anyone who wants to implement this.
The first thing to do would be to do an inventory of the different type of ClojureScript objects that can be rendered, so we can split that bug into multiple smaller ones for each type of object.
It's also used for immutable.js https://chrome.google.com/webstore/detail/immutablejs-object-format/hgldghadipiblonfkkicmgcbbijnpeog
Types for immutable js: List, Map, Ordered Map, Seq, Record, Set, Ordered Set, Stack, Seq. Should be pretty similar in clojurescript
from mori (A library for using ClojureScript's persistent data structures in JS) the cljs data structures should be: list, vector, hashMap, set, sortedSet, range, queue
Comment 4•4 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #1)
I'd be happy to mentor anyone who wants to implement this.
The first thing to do would be to do an inventory of the different type of ClojureScript objects that can be rendered, so we can split that bug into multiple smaller ones for each type of object.
Sign me up! I’d love to help.
Comment 6•2 years ago
|
||
For some reason, it also seems that CLJS modified the devtoolsFormatters array
and sometimes it couldn't find the body hook to use based on the index.
So instead of sending the index, we store the formatter entry in the object actor,
so we can reuse it later when customFormatterBody
is called.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•