Explicitly loading active_record prevents an error using sidekiqswarm #420
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explicitly require active_record to prevent loading error using sidekiqswarm:
$> sidekiqswarm
[swarm] Preloading Bundler groups ["default"]
bundler: failed to load command: sidekiqswarm (/Users/pcreux/.rbenv/versions/2.6.6/bin/sidekiqswarm) NameError: uninitialized constant Scenic::SchemaDumper::ActiveRecord
/Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/scenic-1.5.4/lib/scenic/schema_dumper.rb:30:in
<module:SchemaDumper>' /Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/scenic-1.5.4/lib/scenic/schema_dumper.rb:5:in
module:Scenic'/Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/scenic-1.5.4/lib/scenic/schema_dumper.rb:3:in
<top (required)>' /Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/scenic-1.5.4/lib/scenic.rb:6:in
<top (required)>'/Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in
require' /Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in
block (2 levels) in require'/Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in
each' /Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in
block in require'/Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in
each' /Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in
require'/Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler.rb:114:in
require' /Users/pcreux/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sidekiq-ent-2.2.0/bin/sidekiqswarm:40:in
<top (required)>'/Users/pcreux/.rbenv/versions/2.6.6/bin/sidekiqswarm:23:in
load' /Users/pcreux/.rbenv/versions/2.6.6/bin/sidekiqswarm:23:in
<top (required)>'