okkez / coveralls-lcov

lcov support for coveralls.io
MIT License
26 stars 11 forks source link

converter.rb:63:in `initialize': No such file or directory #19

Open Nic30 opened 4 years ago

Nic30 commented 4 years ago

I was using coveralls-lcov for long time now. https://coveralls.io/github/Nic30/hdlConvertor?branch=master

But 2020-03-31 something happen and it seems to me that this library does not work any more.

I am trying to upload the coverage report but i am receiving this error. https://travis-ci.org/github/Nic30/hdlConvertor/jobs/682075188#L8263

(last working build https://travis-ci.org/github/Nic30/hdlConvertor/jobs/669444996#L160)

$ lcov --compat-libtool --directory . --capture --output-file coverage.info.raw
after_success.2
$ lcov --remove coverage.info.raw -o coverage.info '/usr/*' './_skbuild/*'
after_success.3
$ coveralls-lcov coverage.info

/home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/converter.rb:63:in `initialize': No such file or directory @ rb_sysopen - /home/travis/build/Nic30/hdlConvertor/_skbuild/linux-x86_64-3.7/cmake-build/hdlConvertor/(tree fragment) (Errno::ENOENT)
    from /home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/converter.rb:63:in `open'
    from /home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/converter.rb:63:in `generate_source_file'
    from /home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/converter.rb:16:in `block in convert'
    from /home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/converter.rb:15:in `each'
    from /home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/converter.rb:15:in `convert'
    from /home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/lib/coveralls/lcov/runner.rb:80:in `run'
    from /home/travis/.rvm/gems/ruby-2.6.5/gems/coveralls-lcov-1.6.0/bin/coveralls-lcov:5:in `<top (required)>'
    from /home/travis/.rvm/gems/ruby-2.6.5/bin/coveralls-lcov:23:in `load'
    from /home/travis/.rvm/gems/ruby-2.6.5/bin/coveralls-lcov:23:in `<main>'
    from /home/travis/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `eval'
    from /home/travis/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `<main>'

I am not sure why it want something from _skbuild/* when it should be excluded.