Uploaded image for project: 'Hibernate Websites'
  1. WEBSITE-318

Updating a file in live preview makes author / tags generation raise errors

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: Blog
    • Labels:

      Description

      Not a big priority because we will define some kind of editor profile that will not build these things.

      But when one edit a blog file and save it in preview mode, some exceptions occur.

      undefined method `split' for nil:NilClass
      
      Rendering file /Users/emmanuel/Code/hibernate/blog/in.relation.to/templates/author.html.haml resulted in a failure.
      Line: unknown
      
      Backtrace:
      
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/templates/author.html.haml:10:in `block in singleton class'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/templates/author.html.haml:-6:in `instance_eval'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/templates/author.html.haml:-6:in `singleton class'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/templates/author.html.haml:-8:in `__tilt_70095742634880'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/tilt-2.0.1/lib/tilt/template.rb:155:in `call'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/tilt-2.0.1/lib/tilt/template.rb:155:in `evaluate'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/tilt-2.0.1/lib/tilt/haml.rb:17:in `evaluate'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/tilt-2.0.1/lib/tilt/template.rb:96:in `render'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/handlers/base_tilt_handler.rb:135:in `rendered_content'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/handlers/layout_handler.rb:47:in `rendered_content'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/page.rb:143:in `rendered_content'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/engine.rb:285:in `generate_page'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/engine.rb:392:in `generate_page_internal'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/engine.rb:368:in `block in generate_page_and_dependencies'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/engine.rb:366:in `each'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/engine.rb:366:in `generate_page_and_dependencies'
      /Users/emmanuel/Code/hibernate/blog/in.relation.to/.bundle/ruby/2.1.0/gems/awestruct-0.5.5/lib/awestruct/cli/auto.rb:54:in `block (3 levels) in run'
      

      I forgot if I had this issue fixed in the previous prototype. I am almost certain I discussed this with Jason (hopefully on a public list or GitHub issue)

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: