Last Updated: February 25, 2016
·
26.27K
· geetotes

OMG stupid error with yml files

I'm putting this here so I don't forget it.

If you ever find yourself trying to generate or preview an octopress site and get this cryptic error

/usr/share/ruby/psych.rb:203:in `parse': (/www/mywebsite/_config.yml): did not find expected key while parsing a block mapping at line 5 column 1 (Psych::SyntaxError)

Check to make sure all your brackets are closed. I had a ][ hanging around from fat-fingering, and this syntax error somehow took me forever to fix.

1 Response
Add your response

Thanks mate, that was exactly the problem I had. Too many closing parens.

over 1 year ago ·