winglang/wing

CLI option for error formatting style `--message-format`

Open

#1,829 建立於 2023年3月15日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)TypeScript (214 fork)github user discovery
good first issue⌨️ cli✨ enhancement

倉庫指標

Star
 (5,385 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Community Note

Please vote by adding a 👍 reaction to the issue to help us prioritize. If you are interested to work on this issue, please leave a comment.

Feature Spec

Add an option to the CLI for choosing how errors are formatted, such as in a "short" format (that does not show code snippets" or a "json" format. Naming suggestions welcome

Use Cases

When users do not want to fully detailed diagnostics and renderings of their code snippets, or they want to parse Wing errors programmatically.

Implementation Notes

The library used by the CLI for rendering error messages supports a few rendering styles, and the wing compiler also is capable of producing errors as JSON as well (though the format is ad-hoc at the moment).

Component

CLI

貢獻者指南