-----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.ppinfo: 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| 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? Regards Klaus - -- Klaus Ethgen http://www.ethgen.de/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTMbnup+OKpjRpO3lAQp/8Af+JxugG9hPUWfayZLMDx5lziL78FMUjmHM 5OOnIN65lc8ME3fG7FzBIqMI+Q1UT9sVTgxANqA5FxP5kE9ObqPTpWfx7RHO4Rhv MjUxM1q793caDOQHlUOZGS0bNy7n0bGLbXkH2acIIdgZjnPklI6+8zhbqIWlnxMo suQrmc4YYygHIdN6llk+STwH6sEwcjXhKdvOLN+VMnSpQdcFo1IRMoS5bBHHx9cG KAJ6m8qrKLHY/Zeqa00EIweN/Tf5+0HnP7izoVpjwzU6aOBAgWAGylJdjCKhyiFb fTt+cXv1HaBZaVNeQ7GWU8I10Oc5q4sJPywE7Za7gnhcc/x/niYmCg==DDVX -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello, Am Mi den 27. Okt 2010 um 15:37 schrieb Brice Figureau:> Which means the code has no line information.Hmmm...> > 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.So you think that _is_ a bug and not a user error? ;-) I''ll try to fill the bug report.> BTW, do you have the same issue when running in so-called html mode?Fast test with »--mode html« gave: Could not parse options: Invalid output mode html And looking at the documentation gave that html is no valid option. I think I did misunderstood this question? Regards Klaus - -- Klaus Ethgen http://www.ethgen.de/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTMqZdJ+OKpjRpO3lAQrCWwgAqf6n0OMgmYDbOZKkdicqE+yrXCWCPQdM ZHESSLoKQifGRj+CPRRVlQDofGbxr3yLXnKY08e0c1fB+XHsFpNTNYGczSigUBmx LnKMhMnUWA7oKCSRWIhDpx6mRqdRnu/VuS33Z6lAAR3aVmnomiodyI5iOeAXCLPk Crq201Yhp2eCbvzQGS5cRsun6oWKJW0dsXf8ZXuqmJPt1mGZr4P6boREcZ2Dx7rT I8gOe/eOOyVOnp5+aHbCK7Qcy82MfI64n8DUrEJNI2tT2wLLwC/1tzAZKA2OAxD1 ARawld+8+Sg3pDB8g4utpDFRNK16iRCqHriHOCyhlAsIWkxJylecXA==d/U8 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Am Mi den 27. Okt 2010 um 15:37 schrieb Brice Figureau:> > 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.Hach, I find a very simple manifest to reproduce it. Just have a single site.pp with 3(!) or more imports, independent if the imported modules/files exists or not, triggers the bug. So the following site.pp is enough: import "bla" import "foo" import "gna" Regards Klaus - -- Klaus Ethgen http://www.ethgen.de/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTMqc55+OKpjRpO3lAQrJ9wf8D5ttYkQ0mvTdrHLHC/VJtqz5PTejnx9O Z2wljNkj0dsGD4CgWuUPXBHJ8kk9vGF/khBLIbQjEvr4KDsoNw0FmgGDglppsJBz 7/I/RpK3IF8qpnnnfEXDe/HFIy9Zc0O2DlD910iWhzK+OlYR0SXUkSv/G+7uJJe7 8ujarP01nS/FJWCVV0Ikq3P3DJ4T8dVWBN2m0i3h/IM3qhYiMAhatixlPwZ89r0k yfO3w/66QFtd0gfn3K0Uung9kro7mEhUqqnBrIKomCwsJuy2cgQeWbvtUd9Z3KsJ YTBypDykF1NjGZuPkPtC5VWEtWJ2ZAHlmWNXzccMFyk3me+JL/1ZAw==WoYO -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, 2010-10-29 at 10:52 +0100, Klaus Ethgen wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Hello, > > Am Mi den 27. Okt 2010 um 15:37 schrieb Brice Figureau: > > Which means the code has no line information. > > Hmmm... > > > > 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. > > So you think that _is_ a bug and not a user error? ;-) > > I''ll try to fill the bug report. > > > BTW, do you have the same issue when running in so-called html mode? > > Fast test with »--mode html« gave: > Could not parse options: Invalid output mode html > > And looking at the documentation gave that html is no valid option. I > think I did misunderstood this question?Actually I meant running in mode rdoc, but producing html (to do this, don''t give a manifest pathname on the command line, puppetdoc will use your current definition of --module-path and --manifest to find your manifests and produce a bunch of html files in the doc/ directory). -- 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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, 2010-10-29 at 11:07 +0100, Klaus Ethgen wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Am Mi den 27. Okt 2010 um 15:37 schrieb Brice Figureau: > > > 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. > > Hach, I find a very simple manifest to reproduce it. Just have a single > site.pp with 3(!) or more imports, independent if the imported > modules/files exists or not, triggers the bug. So the following site.pp > is enough: > import "bla" > import "foo" > import "gna" >Thanks, I will have a look to the issue. -- 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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Am Fr den 29. Okt 2010 um 11:14 schrieb Brice Figureau:> > And looking at the documentation gave that html is no valid option. I > > think I did misunderstood this question? > > Actually I meant running in mode rdoc, but producing html (to do this, > don''t give a manifest pathname on the command line, puppetdoc will use > your current definition of --module-path and --manifest to find your > manifests and produce a bunch of html files in the doc/ directory).That work well. So I am not sure if that is a concrete bug. :-( Regards Klaus - -- Klaus Ethgen http://www.ethgen.de/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus@Ethgen.de> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEVAwUBTMq1w5+OKpjRpO3lAQp6Kgf/WHIb7gEjhtLvLSuCXaTqGffIv7YJYgyd vSiRtbG+4LOWysWC8NA2HvNvzKK6jC//OATZQKkysS9AmGuV2ZyJoC7oUFZgbqzs /F14+7934p3EH1cKzBeoZoL03b+pCTj2ezI+CwfTHZ2Yrl6LN1kjSYUq/KknLYNJ dck7yT9+z7St0pP5nfmnD4wjwk6TdqvquBS5Fi0LEWrreQnHvIrpvWEwndRXkgwB i/nDJny6x1GZ3e3AXR4ih7+MSGW739j04Eypf/bd1ac0lpBlAIU8IktJ4CFYOu3x ktCgy9kQ2c7EZlQwaFzAMs6H5zpy0xGY9ROLXfglrJJdLAX7T0Xdrw==qw0j -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Has there been any update to this issue? Iam seeing the same thing in my environment. redhat el 5.5 2.6.18-194.11.3.el5 rhel - ruby-1.8.5-5.el5_4.8 epel - puppet-dashboard-1.0.4-1 epel - puppet-server-2.6.0-1 epel - puppet-2.6.0-1 Thanks, /Chris C -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.