Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rcov failing with "`+': nil can't be coerced into Fixnum (TypeError)" #42

Closed
evanworley opened this issue Jan 7, 2010 · 5 comments
Closed

Comments

@evanworley
Copy link

/usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:160:in +': nil can't be coerced into Fixnum (TypeError) from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:160:inblock (2 levels) in aggregate_data'
from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:160:in each' from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:160:ineach_with_index'
from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:160:in block in aggregate_data' from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:158:ineach_pair'
from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:158:in aggregate_data' from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/differential_analyzer.rb:112:inraw_data_relative'
from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/differential_analyzer.rb:52:in remove_hook' from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/lib/rcov/code_coverage_analyzer.rb:124:inremove_hook'
from /usr/local/lib/ruby/gems/1.9.1/gems/relevance-rcov-0.9.2.1/bin/rcov:425:in `block in <top (required)>'

@evanworley
Copy link
Author

I'm running it with the following command...

rcov --rails -Itest test/unit/__test.rb test/functional/__test.rb test/integration/*_test.rb --no-rcovrt --aggregate coverage/aggregate.data

@abedra
Copy link
Contributor

abedra commented Jan 7, 2010

You are using an old version of RCov. The current version is 0.9.7.1. Please update and make sure the error still exists for you

@abedra
Copy link
Contributor

abedra commented Jan 7, 2010

You can do so by adding gemcutter to your gem sources and running gem install rcov.

@evanworley
Copy link
Author

Ah GemCutter! Thanks Abedra! I will do that now, I was using the gems.github.com source that's listed in the rdoc

@evanworley
Copy link
Author

Thanks Abedra, I am good to go now!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants