Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Custom formatter for ex-info thrown by cljs.spec

オープン
#23 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
clojure
領域
devtools

調査の方向性

この issue にはファイル、テスト、エントリーポイントが記載されていません。まず、cljs-devtools が UI のレンダリングループ、re-frame の dispatch キュー、コールバックから発生する未捕捉エラーをどこで処理しているかを特定し、その後、ex-message を出力せずに cljs.spec ex-info を識別してフォーマットする方法を確認してください。説明されているエラーパスについて動作が定義され、カバレッジされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

cljs-bug enhancement

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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

binaryage/cljs-devtools のほかの issue

binaryage/cljs-devtools の issue をすべて見る

似ている issue

Clojure の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。