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

Bullet gem does not support Mongoid 9.0.3 #732

Open
merouaneamqor opened this issue Feb 6, 2025 · 0 comments
Open

Bullet gem does not support Mongoid 9.0.3 #732

merouaneamqor opened this issue Feb 6, 2025 · 0 comments

Comments

@merouaneamqor
Copy link

Description

Bullet gem does not support Mongoid 9.0.3, causing initialization errors when attempting to use the gem with this version of Mongoid.

Environment

  • Ruby version: 3.4.0
  • Rails version: 8.0.1
  • Bullet version: 8.0.0
  • Mongoid version: 9.0.3

Error Message

5:27:11 web.1  | started with pid 22
15:27:11 web.1  | Starting server initialization...
15:27:11 web.1  | Starting web initialization...
15:27:11 web.1  | ✓ Loaded environment variables from .env
15:27:11 web.1  | Starting services in development environment
15:27:11 web.1  | Cleaning up existing process files...
15:27:11 web.1  | ✓ Directory structure verified
15:27:11 web.1  | Using port: 3000
15:27:11 web.1  | Starting Rails server...
15:27:11 web.1  | ✓ Rails server started on port 3000 with PID 32
15:27:11 web.1  | Waiting for Rails server to be ready...
15:27:21 web.1  | /usr/local/bundle/gems/bundler-2.4.22/lib/bundler/runtime.rb:63:in 'block (2 levels) in Bundler::Runtime#require': There was an error while trying to load the gem 'bullet'. (Bundler::GemRequireError)
15:27:21 web.1  | Gem Load Error is: Bullet does not support mongoid 9.0.3 yet
15:27:21 web.1  | Backtrace for gem load error is:
15:27:21 web.1  | /usr/local/bundle/gems/bullet-8.0.0/lib/bullet/dependency.rb:60:in 'Bullet::Dependency#mongoid_version'

Steps to Reproduce

  1. Add bullet gem to Gemfile
  2. Configure bullet in development environment
  3. Start Rails server
  4. Observe initialization error

Expected Behavior

Bullet should initialize successfully with Mongoid 9.0.3

Additional Context

This appears to be a compatibility issue with newer versions of Mongoid. It would be helpful to have support for Mongoid 9.x added to the gem.

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