Rake error

When I run rake test:units I get this error:

292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc…]

This error just showed up yesterday — I have no idea how I caused
it. Here is my gem list in case that helps:

actionmailer (2.3.2, 2.2.2)
actionpack (2.3.2, 2.2.2)
activerecord (2.3.2, 2.2.2)
activeresource (2.3.2, 2.2.2)
activesupport (2.3.2, 2.2.2)
authlogic (2.1.1)
bcrypt-ruby (2.0.5)
builder (2.1.2)
calendar_date_select (1.15)
capistrano (2.5.8)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
columnize (0.3.0)
cucumber (0.3.11)
daemons (1.0.10)
devver (2.3.0)
diff-lcs (1.1.2)
engineyard-eycap (0.4.12)
eventmachine (0.12.8)
faker (0.3.1)
fastercsv (1.5.0)
fastthread (1.0.7)
flay (1.3.0)
flog (2.1.2)
gchart (0.5.0)
gem_plugin (0.2.3)
haml (2.2.0)
highline (1.5.1)
hoe (2.3.2)
hpricot (0.8.1)
javan-whenever (0.3.1)
jscruggs-metric_fu (1.1.1)
linecache (0.43)
memcache-client (1.7.4)
metaid (1.0)
mini_magick (1.2.5)
mislav-will_paginate (2.3.11)
mocha (0.9.7)
mojombo-chronic (0.3.0)
money (2.1.3)
mongrel (1.1.5)
mysql (2.7)
net-scp (1.0.2)
net-sftp (2.0.2)
net-ssh (2.0.11)
net-ssh-gateway (1.0.1)
nokogiri (1.3.2)
notahat-machinist (1.0.3)
polyglot (0.2.6)
prawn (0.5.0.1)
prawn-core (0.5.0.1)
prawn-format (0.2.0.1)
prawn-layout (0.2.0.1)
rails (2.3.2, 2.2.2)
rake (0.8.7)
rcov (0.8.1.2.0)
RedCloth (4.2.2)
relevance-rcov (0.8.3.4)
rmagick (2.10.0)
rspec (1.2.7)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby_parser (2.0.3)
rubyforge (1.0.3)
searchlogic (2.1.2)
sexp_processor (3.0.2)
term-ansicolor (1.0.3)
termios (0.9.4)
thoughtbot-shoulda (2.10.2)
topfunky-gruff (0.3.5)
treetop (1.2.6)
unicode (0.1)
uuidtools (2.0.0)
webrat (0.4.4)

Thanks for any help!

Hey

Could you paste the full trace and error?

I doubt this is an error with your gem versions.

Gavin

http://handyrailstips.com

Here it is:

292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc…]
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in sh' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:incall’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in sh' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:insh’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1029:in
ruby' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:inruby’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/testtask.rb:
117:in define' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1112:inverbose’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/testtask.rb:
102:in define' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_chain’
/usr/local/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load’
/usr/local/bin/rake:19

Anyone have this problem before?

jko170 wrote:

When I run rake test:units I get this error:

292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc…]

This error just showed up yesterday — I have no idea how I caused
it. Here is my gem list in case that helps:

What happens when you do this from the shell?

$ /usr/local/bin/ruby

Nothing is outputted. It just loads forever.

On Jul 20, 4:10 pm, James B. [email protected]

I enter the command and press enter and nothing happens.

On Jul 20, 5:56 pm, James B. [email protected]

jko170 wrote:

Nothing is outputted. It just loads forever.

What exactly do you mean by, “It just loads forever”. Status 1 from a
ba shell means that the returning processed failed for some reason. If
your ruby binary has had its permissions changed, or it has been moved,
or corrupted in some way then this could be your problem.

jko170 wrote:

I enter the command and press enter and nothing happens.

On Jul 20, 5:56�pm, James B. [email protected]

Then the ruby vm is not starting properly, and as Rake is a ruby script
it fails in consequence. Resolve what has happened with your ruby
installation and the Rake problem is likely resolved as well.

On Jul 20, 7:19 pm, James B. [email protected]
wrote:

Then the ruby vm is not starting properly, and as Rake is a ruby script
it fails in consequence. Resolve what has happened with your ruby
installation and the Rake problem is likely resolved as well.

Entering /usr/local/bin/ruby without any arguments will always “hang”,
because it is waiting for input. Ruby’s default behavior without
arguments is to wait for commands on STDIN.

Try
$ ruby --version

or

$ ruby -e ‘puts “hello”’

If you want the Ruby executable to do something and then exit.


Avdi

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs