binaryage / binaryage/cljs-devtools
Custom formatter for ex-info thrown by cljs.spec
- Vorherrschende Sprache
- Clojure
- Sterne
- 1.1k
- Forks
- 51
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Currently it's quite tricky to get good output from cljs.spec. Reason being that the ex-info thrown includes the full spec commentary in ex-message. This includes the serialised val which failed. In my case this can fill the console many times over.
Alex Miller recommended catching these exceptions and using the ex-data to present the spec nicely. (e.g. don't print the ex-message to the console). This would be fine except it's difficult to catch all errors due to the nature of how UI code executes (react render loop, re-frame dispatch queue, callbacks)
How about automatically detecting and pretty formatting ex-info errors thrown by cljs.spec?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Das Issue nennt keine Dateien, Tests oder Einstiegspunkte. Beginne damit zu ermitteln, wo cljs-devtools nicht abgefangene Fehler aus UI-Render-Schleifen, re-frame-Dispatch-Warteschlangen und Callbacks verarbeitet, und bestimme anschließend, wie cljs.spec ex-info erkannt und formatiert werden kann, ohne ex-message auszugeben. Abgeschlossen ist die Arbeit, wenn das Verhalten definiert und für die beschriebenen Fehlerpfade abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- clojure
- Bereich
- devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100