Custom formatter for ex-info thrown by cljs.spec
まだ誰も着手していません。
評価
調査の方向性
この issue にはファイル、テスト、エントリーポイントが記載されていません。まず、cljs-devtools が UI のレンダリングループ、re-frame の dispatch キュー、コールバックから発生する未捕捉エラーをどこで処理しているかを特定し、その後、ex-message を出力せずに cljs.spec ex-info を識別してフォーマットする方法を確認してください。説明されているエラーパスについて動作が定義され、カバレッジされていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Clojure
- スター
- 1.1k
- フォーク
- 51
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
binaryage/cljs-devtools のほかの issue
-
ROOK オープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
binaryage/cljs-devtools#82 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
binaryage/cljs-devtools#81 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
binaryage/cljs-devtools#80 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
binaryage/cljs-devtools#79 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
binaryage/cljs-devtools#76 · コメント 1 件 ·
binaryage/cljs-devtools の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
.Needs Triage .Team/UXWest Priority:P3 Type:New Feature
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 90/100