carvel-dev / ytt

YAML templating tool that works on YAML structure instead of text
https://carvel.dev/ytt
Apache License 2.0
1.62k stars 136 forks source link

improve error message when ) is missing on prev line #211

Open cppforlife opened 3 years ago

cppforlife commented 3 years ago

when closing ) is missing on a prev line error message got identifier, want ',' pops up. since ytt shows error related line it's a bit confusing that ) is missing on the prev line.

should we add some hint to indicate this similar to this: https://github.com/k14s/ytt/blob/582ad9ca849559e5d75b680b1831105059a0e953/pkg/template/error_hints_test.go

benjaminapetersen commented 1 year ago

Bump on this. I do ytt on occasion, but not enough to remain fluent at all times. This one has gotten me a few times. Would love even a hint syntax error or perhaps you forgot to close a function? or something.