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

Incorrect duplicated key exception #242

Closed
Pchelolo opened this issue Jan 11, 2016 · 2 comments
Closed

Incorrect duplicated key exception #242

Pchelolo opened this issue Jan 11, 2016 · 2 comments

Comments

@Pchelolo
Copy link

After updating to 3.5 version I've started to receive an incorrect exception while using safeLoad on this file: https://github.com/wikimedia/restbase/blob/master/sys/post_data.yaml

The exception is: YAMLException: duplicated mapping key at line 24, column 1:\n \n ^\n at generateError

Seems like empty lines are considered as mapping keys now, which is clearly incorrect.

@puzrin
Copy link
Member

puzrin commented Jan 11, 2016

link

Lines 13 & 21 have duplicated keys. Error point to end of duplicated key block.

@puzrin puzrin closed this as completed Jan 11, 2016
kyuwoo-choi pushed a commit to kyuwoo-choi/atom-linguist that referenced this issue Apr 17, 2016
It seems js-yaml starts issuing error on duplicated mapping key since around [email protected]
nodeca/js-yaml#242

adding json option fixes by overriding duplicated mapping key as it was expected before.
@timwis
Copy link

timwis commented Feb 28, 2017

Just in case anyone else gets here from a google search, I got this error because I had tab indentation mixed in with space indentation due to a copy and paste

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

3 participants