[webgen-users] Bug with the feed source handler

4 views
Skip to first unread message

Damien Pollet

unread,
Feb 1, 2010, 7:14:32 AM2/1/10
to webgen-users
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
_______________________________________________
webgen-users mailing list
webgen...@rubyforge.org
http://rubyforge.org/mailman/listinfo/webgen-users

Thomas Leitner

unread,
Feb 3, 2010, 12:54:04 PM2/3/10
to webgen...@rubyforge.org
> 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

Damien Pollet

unread,
Feb 3, 2010, 4:17:27 PM2/3/10
to webgen...@rubyforge.org
On Wed, Feb 3, 2010 at 18:54, Thomas Leitner <t_le...@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

Damien Pollet

unread,
Feb 3, 2010, 5:50:16 PM2/3/10
to webgen...@rubyforge.org
On Wed, Feb 3, 2010 at 22:17, Damien Pollet <damien...@gmail.com> wrote:
> On Wed, Feb 3, 2010 at 18:54, Thomas Leitner <t_le...@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

unread,
Feb 3, 2010, 6:05:21 PM2/3/10
to webgen...@rubyforge.org
On Wed, Feb 3, 2010 at 23:50, Damien Pollet <damien...@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…

Thomas Leitner

unread,
Feb 4, 2010, 2:30:58 AM2/4/10
to webgen...@rubyforge.org
On Thu, 4 Feb 2010 00:05:21 +0100, Damien Pollet wrote:
> On Wed, Feb 3, 2010 at 23:50, Damien Pollet <damien...@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

Michael Franzl

unread,
Jul 19, 2010, 5:57:56 AM7/19/10
to webgen...@rubyforge.org
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 ?
>

_______________________________________________

Reply all
Reply to author
Forward
0 new messages