#3 open
John Small

Strange problem in Rake

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

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

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A simple to learn and use, yet powerful web scraping toolkit written in Ruby.

People watching this ticket

Pages