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

coverage data provided by Coverage exceeds number of lines #98

Closed
dnagir opened this issue Dec 14, 2011 · 9 comments
Closed

coverage data provided by Coverage exceeds number of lines #98

dnagir opened this issue Dec 14, 2011 · 9 comments

Comments

@dnagir
Copy link

dnagir commented Dec 14, 2011

> 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?

@mpestritto
Copy link

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

@colszowka
Copy link
Collaborator

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.

@likethesky
Copy link

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 #86 (comment) (@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.

@likethesky likethesky mentioned this issue Jun 3, 2013
@x-itec
Copy link

x-itec commented Mar 3, 2014

I have the same problem with current jruby 1.7.10

Warning: coverage data provided by Coverage exceeds ...

@moofish32
Copy link

+1 for same problem jruby 1.7.12

@timnovinger
Copy link

+1 for same problem using ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]

@bf4
Copy link
Collaborator

bf4 commented Aug 1, 2014

@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

  1. I need more info.. are you perhaps using a preloader just as zeus or spring? (Are you on Rails 4?)
  2. Have you tried clearing your /coverage directory (or renaming it, and running again)?
  3. If that's not it, please create a new issue and see https://github.com/colszowka/simplecov/blob/master/CONTRIBUTING.md#reporting-issues

@rbwendt
Copy link

rbwendt commented Mar 29, 2016

I can confirm that emptying the contents of your coverage folder will fix this problem.

@joshuapinter
Copy link
Contributor

Seeing this in 2023 now after enabling enable_coverage_for_eval after support for eval coverage was introduced in version 0.22.0:

#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.

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

10 participants