binaryage / binaryage/cljs-devtools
Custom formatter for ex-info thrown by cljs.spec
- 主要语言
- Clojure
- 星标
- 1.1k
- 派生
- 51
- PR 合并指标
- 30 天内没有已合并 PR
描述
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?
贡献指南
这个仓库没有索引到贡献指南
调研方向
该 issue 未指定文件、测试或入口点。首先定位 cljs-devtools 在哪里处理来自 UI 渲染循环、re-frame dispatch 队列和回调的未捕获错误,然后确定如何识别和格式化 cljs.spec ex-info,同时不打印 ex-message。当针对所描述的错误路径定义了行为并完成覆盖时,即可视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- clojure
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100