builder icon indicating copy to clipboard operation
builder copied to clipboard

Diagnostic messages need to be more friendly, more readable, and more accurate

Open go-wyvern opened this issue 4 months ago • 3 comments

背景:

准确且可读的报错信息不仅有利于小朋友(开发者)发现问题,更有利于 AI 编写代码 & 修复代码。不够准确的代码诊断信息,会带来一些困扰,如:https://github.com/nighca/builder-experience/issues/32

实现路径

  1. 尽可能收集所有的报错信息,按来源,如类型系统,语言服务器等分类
  2. 按收集上来的报错信息,检查纯文字信息是否有可优化
  3. 类型系统定位问题的准确性,可能定位到某一行的报错,但同时夹带了其他行的报错(实际上其他行没有错误)
  4. 报错信息 i18n

go-wyvern avatar Aug 22 '25 02:08 go-wyvern

Related: https://github.com/goplus/builder/issues/1390

nighca avatar Aug 22 '25 03:08 nighca

Related:

https://github.com/goplus/builder/blob/57df1095c2fc9be149b16b3c9c53798bc091671d/spx-gui/src/components/editor/code-editor/code-editor.ts#L370-L397

Image

nighca avatar Aug 25 '25 05:08 nighca

Image

nighca avatar Aug 27 '25 02:08 nighca