samvincent / jekyll-haml

HAML html converter for Jekyll
MIT License
88 stars 40 forks source link

HAML parsing errors are obfuscated #3

Closed ghost closed 11 years ago

ghost commented 11 years ago

When trying to run jekyll build I am receiving HAML parse errors, but they don't mention the file/line number which makes troubleshooting difficult.

running jekyll build

$ jekyll build
Configuration file: /Users/bm5k/projects/blog/_config.yml
            Source: /Users/bm5k/projects/blog/www.blog
       Destination: /Users/bm5k/projects/blog/_site
      Generating... (haml):114: Inconsistent indentation: 7 spaces used for indentation, but the rest of the document was indented using 2 spaces. (Haml::SyntaxError)

running haml converter manually

$ haml index.haml index.html
Syntax error on line 119: Inconsistent indentation: 7 spaces used for indentation, but the rest of the document was indented using 2 spaces.
  Use --trace for backtrace.
samvincent commented 11 years ago

This would potentially be an issue with Jekyll build rather than this project.