rbuchberger / jekyll_picture_tag

Easy responsive images for Jekyll.
https://rbuchberger.github.io/jekyll_picture_tag/
BSD 3-Clause "New" or "Revised" License
622 stars 106 forks source link

error on build #27

Closed natelandau closed 10 years ago

natelandau commented 10 years ago

I'm about 90% certain this is user error of some nature but I'm not a ruby programmer and I'm lost on debugging this. Thanks for creating what seems to be an much needed addon to Jekyll.

After installing this plugin and the necessary dependencies I receive this error on jekyll build

      Generating...   Liquid Exception: undefined method `[]' for nil:NilClass in _posts/2013-05-10-mypost.md /Users/ncl/Sites/mysite.jekyll/_plugins/picture_tag.rb:42:in `render': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/liquid-2.5.4/lib/liquid/block.rb:106:in `block in render_all'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/liquid-2.5.4/lib/liquid/block.rb:93:in `each'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/liquid-2.5.4/lib/liquid/block.rb:93:in `render_all'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/liquid-2.5.4/lib/liquid/block.rb:82:in `render'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/liquid-2.5.4/lib/liquid/template.rb:124:in `render'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/liquid-2.5.4/lib/liquid/template.rb:132:in `render!'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/convertible.rb:88:in `render_liquid'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/convertible.rb:150:in `do_layout'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/post.rb:259:in `render'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/site.rb:239:in `block in render'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/site.rb:238:in `each'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/site.rb:238:in `render'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/site.rb:39:in `process'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/command.rb:18:in `process_site'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/commands/build.rb:23:in `build'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/lib/jekyll/commands/build.rb:7:in `process'
    from /Users/ncl/.rvm/gems/ruby-2.1.0/gems/jekyll-1.4.2/bin/jekyll:77:in `block (2 levels) in <top (required)>'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/commander-4.1.5/lib/commander/command.rb:155:in `run'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/commander-4.1.5/lib/commander/runner.rb:402:in `run_active_command'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/commander-4.1.5/lib/commander/runner.rb:78:in `run!'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
    from /Users/ncl/.rvm/gems/ruby-2.1.0@global/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'

Any help would be greatly appreciated.

robwierzbowski commented 10 years ago

Probably an undefined preset or setting. Error message improvements are on the 2.0 roadmap.