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
_______________________________________________
webgen-users mailing list
webgen...@rubyforge.org
http://rubyforge.org/mailman/listinfo/webgen-users
I have tried to reproduce the error but it works fine here. Did you try
deleting the cache file?
-- Thomas
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
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
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 ?
>
_______________________________________________