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

[Bug] Error loading base64 on Ruby 3.4 due to its removal from default gems #579

Open
44smkn opened this issue Feb 17, 2025 · 0 comments
Open

Comments

@44smkn
Copy link

44smkn commented Feb 17, 2025

Describe the bug

hen running the project with Ruby 3.4, an error occurs because the base64 library has been removed from the default gems. This results in a failure when attempting to require 'base64'.

To Reproduce

  1. Set up your environment using Ruby 3.4.
  2. Install coverband normally.
  3. Run your application or tests.
  4. Observe the following error message:
bundler: failed to load command: unicorn (/vendor/bundle/ruby/3.4.0/bin/unicorn)
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require': cannot load such file -- base64 (LoadError)
	from <internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
	from /vendor/bundle/ruby/3.4.0/gems/coverband-6.1.4/lib/coverband/reporters/web.rb:3:in '<top (required)>'
	from <internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
	from <internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
	from /vendor/bundle/ruby/3.4.0/gems/coverband-6.1.4/lib/coverband.rb:134:in 'Coverband::Reporters::Web#initialize'
	from /vendor/bundle/ruby/3.4.0/gems/coverband-6.1.4/lib/coverband.rb:147:in 'Class#new'
	from /vendor/bundle/ruby/3.4.0/gems/coverband-6.1.4/lib/coverband.rb:147:in 'Coverband::Reporters::Web.call'
	from config.ru:45:in 'Router#coverband'
	from config.ru:30:in 'Router#call'
...(omitted)

I think this file is related...?

Expected behavior

The application should load without errors in Ruby 3.4. It appears that adding base64 explicitly in the Gemfile (e.g., gem 'base64') could resolve this issue.

Screenshots

None

Desktop (please complete the following information):

I think it is not needed

Additional context

coverband version: v6.1.4

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

1 participant