Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Strange problem in Rake

#3

When using a rake file to load stuff from a screen scrape into a database I ran into a problem 'stack level too deep'. After a lot of scratching around I discovered that it happened only if the rake file required 'scrubyt'. Which it does otherwise I can't do the screen scraping. To reproduce the problem do this

1) create a model and migrate up 2) put the line "require 'scrubyt'" into a rake file in lib/tasks 3) now rake db:rollback

You'll get an error 'stack level too deep', but if you take out the require it'll be ok.

The stack level too deep occurs in other places as well, such as trying to create an instance of the model inside a rake task.

So scrubyt can't be used inside rake tasks

Reported by John Small · November 25th, 2008 @ 11:54 PM

State: open
Milestone: none
Assigned to: Peter Szinek Peter Szinek

Activity

  1. Peter Szinek
    Peter Szinek
    • State changed from new to open
    • Assigned user set to Peter Szinek

    November 27th, 2008 @ 09:07 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.