You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user provides a YAML file with invalid syntax, then I expect go-yaml to present very clear, direct error messages about the nature of the syntax error. However, in practice, I am seeing vague, misleading messages.
Error from go-yaml:
$ snack2025/02/10 10:19:37 yaml: line 2: did not find expected key
The line number indicated is confusing. The actual problem occurs with some keys indented at a single space column, not a random column after the document opening marker.
The error says "did not find expected key" but fails to indicate which keys were expected
The error omits the fact that a single space character was encountered where keys were expected
The text was updated successfully, but these errors were encountered:
Hi,
When a user provides a YAML file with invalid syntax, then I expect go-yaml to present very clear, direct error messages about the nature of the syntax error. However, in practice, I am seeing vague, misleading messages.
Error from go-yaml:
The text was updated successfully, but these errors were encountered: