On Tue, 2010-10-26 at 15:37 +0100, Klaus Ethgen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Hello,
> 
> at the moment I fight with puppetdoc and end in a ruby confusion.
> 
> To the problem:
> > puppetdoc --debug --trace --mode rdoc --all manifests/site.pp
> info: scanning: ["manifests/site.pp"]
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:82:in `output_resource_doc'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:82:in `sort'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:82:in `output_resource_doc'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:77:in `output_astnode_doc'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:67:in `output'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:66:in `each'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:66:in `output'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:47:in `manifestdoc'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:43:in `each'
> /usr/lib/ruby/1.8/puppet/util/rdoc.rb:43:in `manifestdoc'
> /usr/lib/ruby/1.8/puppet/application/doc.rb:82:in `rdoc'
> /usr/lib/ruby/1.8/puppet/application/doc.rb:59:in `send'
> /usr/lib/ruby/1.8/puppet/application/doc.rb:59:in `run_command'
> /usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
> /usr/lib/ruby/1.8/puppet/application.rb:393:in `exit_on_fail'
> /usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
> /usr/bin/puppetdoc:4
> Could not generate documentation: undefined method `<=>' for nil:NilClass
> 
> The used version is Puppet 2.6.2 on a debian system.
> 
> If I look to the code I find the following line:
>    code.sort { |a,b| a.line <=> b.line }.each do |stmt|

Which means the code has no line information.

> If I output the code with puts I get the following:
>    []
>    []
>    #<Puppet::Parser::AST::ResourceDefaults:0x7f1d0b836290>
>    #<Puppet::Parser::AST::ResourceDefaults:0x7f1d0b82fa30>
>    [Filebucket[local]]
> 
> I think there is something wrong but I do not know what.
> 
> Anybody an idea?

Please open a redmine ticket and include the smallest manifests that can
trigger the bug, so that we can reproduce the bug.

BTW, do you have the same issue when running in so-called html mode?
-- 
Brice Figureau
Follow the latest Puppet Community evolutions on www.planetpuppet.org!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to