Coder Social home page Coder Social logo

Comments (12)

colszowka avatar colszowka commented on July 27, 2024

Very odd, everything works fine for me. I'll have a look - thanks for the report.

from simplecov-html.

colszowka avatar colszowka commented on July 27, 2024

Hi, I double-checked against a couple of my projects: Rails with Shoulda, Gems with Shoulda and RSpec, 0.4.0 works properly for me.

Could you please double-check the versions of simplecov and simplecov-html in your Gemfile? They should both be 0.4.0. If they're not, please post what they are so I can check out the version incompabilities.

from simplecov-html.

javierv avatar javierv commented on July 27, 2024

I've just installed simplecov and I've got the same problem. Using Ruby 1.9, Rails 3.0.4 and RSpec 2.5 on Ubuntu 10.10. My Gemfile.lock is as follows:

$ grep simplecov Gemfile.lock 
  simplecov (0.4.0)
    simplecov-html (~> 0.4.0)
  simplecov-html (0.4.0)
simplecov

from simplecov-html.

javierv avatar javierv commented on July 27, 2024

Just wanted to add that I get the same error with Ruby 1.8.7 as well.

from simplecov-html.

jimmycuadra avatar jimmycuadra commented on July 27, 2024

I'm seeing the same issue as well. Ruby 1.9.2-p136, Rails 3.0.3, RSpec/RSpec-Rails 2.5.0, Mac OS X 10.6.6.

 $ grep simplecov Gemfile.lock 
    simplecov (0.4.0)
      simplecov-html (~> 0.4.0)
    simplecov-html (0.4.0)
  simplecov (~> 0.4.0)

from simplecov-html.

colszowka avatar colszowka commented on July 27, 2024

diegorv has submitted this issue to simplecov as well, see https://github.com/colszowka/simplecov/issues/issue/21

He's submitted a patch for the loadpath of th version file, which should fix this issue.

Version 0.4.2 is released (I managed to mess up on 0.4.1), so everyone affected please do a bundle update simplecov-html. Hope this fixes the problem for you, please report back!

As everyone affected seems to be using Rails in conjunction with RSpec, it seems that rspec-rails does something differently with load paths than test unit and even plain RSpec... Very odd indeed :/

from simplecov-html.

diegorv avatar diegorv commented on July 27, 2024

Well...

After 0.4.2 i get this:

/Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/simplecov-html-0.4.2/lib/simplecov-html.rb:10:in `require': no such file to load -- simplecov (LoadError)
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/simplecov-html-0.4.2/lib/simplecov-html.rb:10:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/simplecov-0.4.0/lib/simplecov.rb:122:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/diegorv/Documents/rails/work/phenix/spec/spec_helper.rb:5:in `block in <top (required)>'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/spork-0.8.4/lib/spork.rb:23:in `prefork'
from /Users/diegorv/Documents/rails/work/phenix/spec/spec_helper.rb:4:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/diegorv/Documents/rails/work/phenix/spec/helpers/admin/admin_helper_spec.rb:3:in `<top (required)>'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `load'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `block in load_spec_files'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `map'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `load_spec_files'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18:in `run'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:in `run_in_process'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in `run'
from /Users/diegorv/.rvm/gems/ruby-1.9.2-p136@rails3/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in `block in autorun'

I think we need take look in paths again... :/

from simplecov-html.

javierv avatar javierv commented on July 27, 2024

Same as diegorv here.

from simplecov-html.

javierv avatar javierv commented on July 27, 2024

By removing that line (require 'simplecov') everything works fine.

from simplecov-html.

colszowka avatar colszowka commented on July 27, 2024

Dammit, that's a problem I introduced myself on the way because I was having weird test errors. Should be ultimately resolved with 0.4.3, which is being pushed to gemcutter right now, and should be availabe in a couple minutes.

Sorry for that mess, I hope this ultimately resolves the trouble!

from simplecov-html.

javierv avatar javierv commented on July 27, 2024

Hehe, fixing things for machines you don't have access to is so funny :-).

Everything is working fine here with version 0.4.3.

Thanks!

from simplecov-html.

gernotkogler avatar gernotkogler commented on July 27, 2024

0.4.3 works for me, too.

Btw: Thanks for the great gem!

from simplecov-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.