coverage data provided by Coverage exceeds number of lines
> jruby -v
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.6.0_29) [darwin-i386-java]
> bundle exec rspec spec/
Warning: coverage data provided by Coverage [40] exceeds number of lines in /Users/dnagir/proj/neo4j/spec/../lib/neo4j/core_ext/class/inheritable_attributes.rb [37]
There is a resolved issue, but it seems to be a different one.
Is there any way to fix it?
I'm getting the same error on a half a dozen files or so. It just started yesterday after I did a gem update. Any ideas ? What do you need from me to diagnose? Thanks in advance
Hey guys, unfortunately Jruby is not supported as the Coverage library there is not compatible with MRI 1.9's one. Check out #86 for further info.
So do we just have to live with long lists of warnings on JRuby? Is there a way to (safely; that is, specifically this warning only) turn these warnings off, at least? See https://github.com/colszowka/simplecov/issues/86#issuecomment-15880858 (@BrandonMathis) for another report of this. Should I [...] EDIT: just remove that message output when defined?(JRUBY_VERSION) or could that mask real issues?: https://github.com/colszowka/simplecov/blob/03e5124fc4aeb2491ddab84f1e5c14a26f4de593/lib/simplecov/source_file.rb#L90 ? Thanks.
I have the same problem with current jruby 1.7.10
Warning: coverage data provided by Coverage exceeds ...
+1 for same problem jruby 1.7.12
+1 for same problem using ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
@x-itec @moofish32 This issue was closed on Jan 27, 2012 due to issues with JRuby that persist. See the above referenced issue #86
@timnovinger same points as above, except also
- I need more info.. are you perhaps using a preloader just as zeus or spring? (Are you on Rails 4?)
- Have you tried clearing your /coverage directory (or renaming it, and running again)?
- If that's not it, please create a new issue and see https://github.com/colszowka/simplecov/blob/master/CONTRIBUTING.md#reporting-issues
I can confirm that emptying the contents of your coverage folder will fix this problem.
Seeing this in 2023 now after enabling enable_coverage_for_eval after support for eval coverage was introduced in version 0.22.0:
https://github.com/simplecov-ruby/simplecov/pull/1037
If I remove/disable enable_coverage_for_eval then these messages go away.
I'm adding it here as an easy reference point for others seeing this in the latest release.