winglang/wing

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

Open

#1,829 opened on Mar 15, 2023

View on GitHub
 (4 comments) (0 reactions) (0 assignees)TypeScript (214 forks)github user discovery
good first issue⌨️ cli✨ enhancement

Repository metrics

Stars
 (5,385 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide