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

Already on GitHub? Sign in to your account

Liquid parsing of blog doesn't give very good errors when it fails #82

Closed
technicalpickles opened this Issue Sep 4, 2009 · 3 comments

Comments

Projects
None yet
5 participants
Contributor

technicalpickles commented Sep 4, 2009

So, I'm hanging out, running jekyll on my blog, when all of a sudden...

$ jekyll --pygments
Configuration from ./_config.yml
Building site: . -> ./_site
/gentoo/usr/lib/ruby/gems/1.8/gems/liquid-2.0.0/lib/liquid/block.rb:74:in `create_variable': Variable '{{' was not properly terminated with regexp: /\}\}/  (Liquid::SyntaxError)
        from /gentoo/usr/lib/ruby/gems/1.8/gems/liquid-2.0.0/lib/liquid/block.rb:34:in `parse'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/liquid-2.0.0/lib/liquid/document.rb:5:in `initialize'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/liquid-2.0.0/lib/liquid/template.rb:58:in `new'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/liquid-2.0.0/lib/liquid/template.rb:58:in `parse'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/liquid-2.0.0/lib/liquid/template.rb:46:in `parse'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:69:in `do_layout'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/../lib/jekyll/post.rb:189:in `render'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/../lib/jekyll/site.rb:141:in `read_posts'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/../lib/jekyll/site.rb:140:in `each'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/../lib/jekyll/site.rb:140:in `read_posts'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/../lib/jekyll/site.rb:178:in `transform_pages'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/../lib/jekyll/site.rb:96:in `process'
        from /gentoo/usr/lib/ruby/gems/1.8/gems/mojombo-jekyll-0.5.2/bin/jekyll:129
        from /gentoo/usr/bin/jekyll:19:in `load'
        from /gentoo/usr/bin/jekyll:19

I'm at a loss about where to go about fixing this syntax error.

One suggestion would be to rescue Liquid::SyntaxError, and display a message about what was being processed at the time. Unfortunately, Liquid does not seem to give any more detailed information than the fact that there was a syntax error, and what the error was, ie no line info.

Same problem here.

Owner

parkr commented Dec 8, 2012

Does this look like the fix you were looking for? I think the issue has been solved :)

Contributor

qrush commented Jan 2, 2013

Going to close this, please reopen if this keeps happening.

@qrush qrush closed this Jan 2, 2013

@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.