trulia / hologram

A markdown based documentation system for style guides.
http://trulia.github.io/hologram
Other
2.16k stars 200 forks source link

Hologram not compiling docs #158

Closed gilesbutler closed 9 years ago

gilesbutler commented 10 years ago

I get this error when i run hologram, any ideas?

C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/doc_builder.rb:191:in `ensure in write_page': undefined method `close' for nil:NilClass (NoMethodError)
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/doc_builder.rb:191:in `write_page'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/doc_builder.rb:171:in `block in write_docs'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/doc_builder.rb:157:in `each'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/doc_builder.rb:157:in `write_docs'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/doc_builder.rb:123:in `build_docs'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/doc_builder.rb:65:in `build'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/cli.rb:38:in `build'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/lib/hologram/cli.rb:30:in `run'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/hologram-1.2.0/bin/hologram:6:in `<top (required)>'
        from C:/Ruby21/bin/hologram:23:in `load'
        from C:/Ruby21/bin/hologram:23:in `<main>'
jdcantrell commented 9 years ago

Not entirely sure, possibly a windows bug, will look into.

jdcantrell commented 9 years ago

Can you give any more details (an example doc file that causes this error)? I'm able to build the hologram-example repo without any issues, but will try a couple more style guides I have handy.

gilesbutler commented 9 years ago

@jdcantrell sorry I have left the company now that I was at where we used hologram, I will get in touch with somebody there and hopefully they can help.

jdcantrell commented 9 years ago

Hehe thanks, it's not a big deal if you cannot. I'm going to close this bug for now, until there is more info.

Thanks again!

Silom commented 8 years ago

Good for you I have the informations now. Its a year ago but I got the same problem. I deleted one of my doc folders and now I get the same error. EDIT: I renamed categories and title. Is there some kind of cache you use? That would be the only problem I can think of..

events.js:141
      throw er; // Unhandled 'error' event
      ^
Error in plugin 'gulp-hologram'
/Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/doc_builder.rb:247:in `ensure in write_page': undefined method `close' for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/doc_builder.rb:247:in `write_page'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/doc_builder.rb:199:in `block in write_docs'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/doc_builder.rb:185:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/doc_builder.rb:185:in `write_docs'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/doc_builder.rb:147:in `build_docs'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/doc_builder.rb:87:in `build'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/cli.rb:38:in `build'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/lib/hologram/cli.rb:30:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/hologram-1.4.0/bin/hologram:6:in `<top (required)>'
    from /usr/local/bin/hologram:23:in `load'
    from /usr/local/bin/hologram:23:in `<main>'

    at Socket.<anonymous> (/Users/xxx/node_modules/gulp-hologram/index.js:96:30)
    at emitNone (events.js:72:20)
    at Socket.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
    at doNTCallback2 (node.js:452:9)
    at process._tickCallback (node.js:366:17)

As you can see I have the gulp task running, but its not crashing the Ruby app.

jdcantrell commented 8 years ago

No we don't use caching, is there any chance you can share the code base you run hologram on?