lazee / premonition

Premonition is a Jekyll extension that makes it possible to add block-styled content to your site. Like summaries, notes, hints or warnings.
https://lazee.github.io/premonition-demo/
MIT License
51 stars 12 forks source link

/processor.rb:55:in `block in load_references': undefined method `match' for nil:NilClass (NoMethodError) #29

Closed RobbiNespu closed 3 years ago

RobbiNespu commented 4 years ago

I getting this error when build the site

 bundle exec jekyll serve --trace
Configuration file: D:/NOPE/robbinespu.gitlab.io/_config.yml
 Theme Config file: C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/octoflavor-ee4be458ed67/_config.yml
            Source: D:/NOPE/robbinespu.gitlab.io
       Destination: D:/NOPE/robbinespu.gitlab.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
       Jekyll Feed: Generating feed for posts
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/premonition-4.0.0/lib/premonition/processor.rb:55:in `block in load_references': undefined method `match' for nil:NilClass (NoMethodError)
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/premonition-4.0.0/lib/premonition/processor.rb:54:in `each_line'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/premonition-4.0.0/lib/premonition/processor.rb:54:in `load_references'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/premonition-4.0.0/lib/premonition/processor.rb:19:in `adder'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/premonition-4.0.0/lib/premonition/hook.rb:29:in `block in generate'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/hooks.rb:99:in `block in trigger'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/hooks.rb:98:in `each'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/hooks.rb:98:in `trigger'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/document.rb:384:in `trigger_hooks'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/renderer.rb:61:in `run'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:525:in `render_regenerated'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:510:in `block (2 levels) in render_docs'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:509:in `each'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:509:in `block in render_docs'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:508:in `each_value'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:508:in `render_docs'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:202:in `render'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/site.rb:77:in `process'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/command.rb:28:in `process_site'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/commands/build.rb:65:in `build'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/commands/build.rb:36:in `process'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/command.rb:91:in `each'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-18f04c61adc8/exe/jekyll:15:in `<top (required)>'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `load'
        from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `<main>'
RobbiNespu commented 4 years ago

submit patch on #30 , hope you can review it

lazee commented 4 years ago

@RobbiNespu Thanks a lot. I will review it.

lazee commented 3 years ago

Fixed in 4.0.1 available in rubygems now.