Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source locations on error are wrong #128

Open
vgvassilev opened this issue Aug 6, 2018 · 0 comments
Open

Source locations on error are wrong #128

vgvassilev opened this issue Aug 6, 2018 · 0 comments

Comments

@vgvassilev
Copy link

This is a pretty terrible one I run into. Luckily I came across ruby/psych#190 and solved my issue rather quickly.

Original bug report:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant