Hi all, I''ve just tried to re-generate my site, and got this error: Error while creating a node from </notes/feed.feed> with Webgen::SourceHandler::Feed: super called outside of method /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/feed.rb:30 /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/feed.rb:37:in `[]'' /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/feed.rb:37:in `create_node'' /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler.rb:237:in `create_nodes'' ? This is strange, as this is the current online revision, that was compiled fine a few days ago. The only thing I can think of would be gem updates (but I don''t see what), or maybe the recent update to ruby 1.8.7 in macports. Also the error message does not really help, I can''t see why ruby would think this super is not in the create_node method. Or does it actually mean the lambda was stored and invoked after create_method returned ? -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet
> This is strange, as this is the current online revision, that was > compiled fine a few days ago. > The only thing I can think of would be gem updates (but I don''t see > what), or maybe the recent update to ruby 1.8.7 in macports. > > Also the error message does not really help, I can''t see why ruby > would think this super is not in the create_node method. Or does it > actually mean the lambda was stored and invoked after create_method > returned ?I have tried to reproduce the error but it works fine here. Did you try deleting the cache file? -- Thomas
On Wed, Feb 3, 2010 at 18:54, Thomas Leitner <t_leitner at gmx.at> wrote:> I have tried to reproduce the error but it works fine here. Did you try > deleting the cache file?Actually it seems to fail before the cache is created. There is no cache file and none gets created? I''ll try reverting ruby to the previous version (1.8.7-p174 instead of -p249)? -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet
On Wed, Feb 3, 2010 at 22:17, Damien Pollet <damien.pollet at gmail.com> wrote:> On Wed, Feb 3, 2010 at 18:54, Thomas Leitner <t_leitner at gmx.at> wrote: >> I have tried to reproduce the error but it works fine here. Did you try >> deleting the cache file? > > Actually it seems to fail before the cache is created. There is no > cache file and none gets created? > I''ll try reverting ruby to the previous version (1.8.7-p174 instead of -p249)?I don''t understand japanese, but this looks familiar, and the test file does reproduce it here. http://redmine.ruby-lang.org/issues/show/2537 -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet
On Wed, Feb 3, 2010 at 23:50, Damien Pollet <damien.pollet at gmail.com> wrote:>> I''ll try reverting ruby to the previous version (1.8.7-p174 instead of -p249)? > > I don''t understand japanese, but this looks familiar, and the test > file does reproduce it here. > http://redmine.ruby-lang.org/issues/show/2537And indeed, running rake with /usr/bin/ruby instead of the newer macports version doesn''t exhibit the bug. Hopefully they fix it soon? -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet
On Thu, 4 Feb 2010 00:05:21 +0100, Damien Pollet wrote:> On Wed, Feb 3, 2010 at 23:50, Damien Pollet <damien.pollet at gmail.com> > wrote: > >> I''ll try reverting ruby to the previous version (1.8.7-p174 > >> instead of -p249)? > > > > I don''t understand japanese, but this looks familiar, and the test > > file does reproduce it here. > > http://redmine.ruby-lang.org/issues/show/2537 > > And indeed, running rake with /usr/bin/ruby instead of the newer > macports version doesn''t exhibit the bug. > Hopefully they fix it soon?Thanks for investigating! The bug report mentions that it is already fixed, so a new 1.8.7 patch release will have this fix! -- Thomas
I used webgen-0.5.12 and kramdown-0.9.0 and ruby1.8.7.249-1 on Ubuntu and I got the following error (see also quoted message below): An error has occurred: Error while creating a node from </feed.feed> with Webgen::SourceHandler::Feed: super called outside of method I googled and it seems to be a bug in ruby1.8.7.249-1. See both links: https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/600568 http://redmine.ruby-lang.org/issues/show/2537 So I switched over to ruby 1.9.1p378, which worked. BUT after I upgraded to webgen-0.5.13 and kramdown-0.10.0, it does not even work with ruby 1.9.1p378. I don''t know how I can circumvent this except with this narrow configuration of versions. Michael On 02/01/2010 01:14 PM, Damien Pollet wrote:> Hi all, > > I''ve just tried to re-generate my site, and got this error: > > Error while creating a node from</notes/feed.feed> with > Webgen::SourceHandler::Feed: > super called outside of method > /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/feed.rb:30 > /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/feed.rb:37:in > `[]'' > /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/feed.rb:37:in > `create_node'' > /Users/damien/.gem/ruby/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler.rb:237:in > `create_nodes'' > ? > > This is strange, as this is the current online revision, that was > compiled fine a few days ago. > The only thing I can think of would be gem updates (but I don''t see > what), or maybe the recent update to ruby 1.8.7 in macports. > > Also the error message does not really help, I can''t see why ruby > would think this super is not in the create_node method. Or does it > actually mean the lambda was stored and invoked after create_method > returned ? >