When parsing this yaml
key_one:
inner:
- value1
- value2
key_two:
inner:
- value1
- value2
the error message
Psych::SyntaxError: (/tmp/oops.yaml): did not find expected key while parsing a block mapping at line 1 column 1
contains the wrong line number. It should be reporting line 7 column 5.
I ran into a slightly different problem key: "VAR="OTHER_VAR"" but still the source locations were wrong.
This is a pretty terrible one I run into. Luckily I came across https://github.com/ruby/psych/issues/190 and solved my issue rather quickly.
Original bug report:
I ran into a slightly different problem key:
"VAR="OTHER_VAR""
but still the source locations were wrong.