danmayer / coverband

Ruby production code coverage collection and reporting (line of code usage)
https://github.com/danmayer/coverband
MIT License
2.5k stars 161 forks source link

Syntax error while running coverband coverage server #455

Closed carmageddon888 closed 2 years ago

carmageddon888 commented 2 years ago

Describe the bug Got syntax error while executing the rake task for coverage server

To Reproduce Steps to reproduce the behavior:

  1. Added coverband gem to Gemfile gem 'coverband'
  2. Did bundle install. Coverband gem with version 5.1.0 got installed.
  3. Ran this command: bundle exec rake coverband:coverage_server

Expected behavior Expect server to run.

Screenshots Screenshot from 2022-07-19 09-58-37

Desktop (please complete the following information):

Additional context Same issue observed with other versions of gem 5.0.1 and 4.2.7 And also while running rails server rails s Executed rake task from within docker container. We run rails app inside docker container. Host OS on which docker is running is Ubuntu 18.04.6 LTS After server is run, I need to check coverband web UI.

Thanks!

danmayer commented 2 years ago

It looks like you are trying to run on a version of Ruby we no longer support. We match the versions supported by heroku.

https://devcenter.heroku.com/articles/ruby-support#supported-runtimes

so 2.7.6 is the last version of the 2.x.x line we support and you are trying to run on 2.1.5p273. If you upgrade to anything past 2.3.x I believe it would work

carmageddon888 commented 2 years ago

@danmayer okay, upgrade is not possible soon. will try with older version.