Curious error from Rake

Discussion in 'Ruby' started by Daniel Berger, Apr 7, 2007.

  1. Hi,

    Ruby 1.8.6

    I accidentally made a rake task a prerequisite of itself like so:

    task :foo => [:foo] do
    puts "hello"
    end

    And I got this output:

    stopping only thread
    note: use sleep to stop forever

    No complaints really. Just thought it was an odd error, and I got zero
    hits when I searched the ruby-talk archives. Anyone have an
    explanation?

    Regards,

    Dan
    Daniel Berger, Apr 7, 2007
    #1
    1. Advertising

  2. On 4/7/07, Daniel Berger <> wrote:
    > Hi,
    >
    > Ruby 1.8.6
    >
    > I accidentally made a rake task a prerequisite of itself like so:
    >
    > task :foo => [:foo] do
    > puts "hello"
    > end
    >
    > And I got this output:
    >
    > stopping only thread
    > note: use sleep to stop forever


    Maybe an infinite loop causing a stack overflow?
    Leslie Viljoen, Apr 9, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Van Dyk
    Replies:
    2
    Views:
    102
    Damphyr
    Jan 31, 2006
  2. peppermonkey
    Replies:
    1
    Views:
    237
    Gregory Brown
    Feb 10, 2007
  3. Adam Anderson
    Replies:
    1
    Views:
    129
    Adam Anderson
    Sep 19, 2007
  4. James Mead
    Replies:
    0
    Views:
    141
    James Mead
    Jan 15, 2008
  5. thufir
    Replies:
    3
    Views:
    214
    Thufir
    Apr 12, 2008
Loading...

Share This Page