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

Please remove gem 'meta_search' and try again. #3926

Closed
dchapman1988 opened this Issue May 2, 2015 · 19 comments

Comments

Projects
None yet
@dchapman1988

dchapman1988 commented May 2, 2015

This problem occurs when adding activeadmin (with or w/out the meta_search gem) to the Gemfile and running bundle

$ bundle
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove gem 'meta_search' and try again.

My Gemfile:

source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.1'
# Use Postgres as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks                                                                                                    
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

gem 'activeadmin'
gem "meta_search", '>= 1.1.0.pre'

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'

  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
end

And Gemfile.lock:

GEM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
  remote: https://rubygems.org/
  specs:
    actionmailer (4.2.1)
      actionpack (= 4.2.1)
      actionview (= 4.2.1)
      activejob (= 4.2.1)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 1.0, >= 1.0.5)
    actionpack (4.2.1)
      actionview (= 4.2.1)
      activesupport (= 4.2.1)
      rack (~> 1.6)
      rack-test (~> 0.6.2)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    actionview (4.2.1)
      activesupport (= 4.2.1)
      builder (~> 3.1)
      erubis (~> 2.7.0)
      rails-dom-testing (~> 1.0, >= 1.0.5)
      rails-html-sanitizer (~> 1.0, >= 1.0.1)
    activejob (4.2.1)
      activesupport (= 4.2.1)
      globalid (>= 0.3.0)
    activemodel (4.2.1)
      activesupport (= 4.2.1)
      builder (~> 3.1)
    activerecord (4.2.1)
      activemodel (= 4.2.1)
      activesupport (= 4.2.1)
      arel (~> 6.0)
    activesupport (4.2.1)
      i18n (~> 0.7)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.3, >= 0.3.4)
      tzinfo (~> 1.1)
    arel (6.0.0)
    binding_of_caller (0.7.2)
      debug_inspector (>= 0.0.1)
    builder (3.2.2)
    byebug (4.0.5)
      columnize (= 0.9.0)
    coffee-rails (4.1.0)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.9.1.1)
    columnize (0.9.0)
    debug_inspector (0.0.2)
    erubis (2.7.0)
    execjs (2.5.2)
    globalid (0.3.5)
      activesupport (>= 4.1.0)
    i18n (0.7.0)
    jbuilder (2.2.13)
      activesupport (>= 3.0.0, < 5)
      multi_json (~> 1.2)
    jquery-rails (4.0.3)
      rails-dom-testing (~> 1.0)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    json (1.8.2)
    loofah (2.0.1)
      nokogiri (>= 1.5.9)
    mail (2.6.3)
      mime-types (>= 1.16, < 3)
    mime-types (2.5)
    mini_portile (0.6.2)
    minitest (5.6.1)
    multi_json (1.11.0)
    nokogiri (1.6.6.2)
      mini_portile (~> 0.6.0)
    pg (0.18.1)
    rack (1.6.0)
    rack-test (0.6.3)
      rack (>= 1.0)
    rails (4.2.1)
      actionmailer (= 4.2.1)
      actionpack (= 4.2.1)
      actionview (= 4.2.1)
      activejob (= 4.2.1)
      activemodel (= 4.2.1)
      activerecord (= 4.2.1)
      activesupport (= 4.2.1)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.2.1)
      sprockets-rails
    rails-deprecated_sanitizer (1.0.3)
      activesupport (>= 4.2.0.alpha)
    rails-dom-testing (1.0.6)
      activesupport (>= 4.2.0.beta, < 5.0)
      nokogiri (~> 1.6.0)
      rails-deprecated_sanitizer (>= 1.0.1)
    rails-html-sanitizer (1.0.2)
      loofah (~> 2.0)
    railties (4.2.1)
      actionpack (= 4.2.1)
      activesupport (= 4.2.1)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.4.2)
    rdoc (4.2.0)
    sass (3.4.13)
    sass-rails (5.0.3)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.1)
      sprockets (>= 2.8, < 4.0)
      sprockets-rails (>= 2.0, < 4.0)
      tilt (~> 1.1)
    sdoc (0.4.1)
      json (~> 1.7, >= 1.7.7)
      rdoc (~> 4.0)
    spring (1.3.5)
    sprockets (3.0.3)
      rack (~> 1.0)
    sprockets-rails (2.2.4)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (>= 2.8, < 4.0)
    thor (0.19.1)
    thread_safe (0.3.5)
    tilt (1.4.1)
    turbolinks (2.5.3)
      coffee-rails
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uglifier (2.7.1)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    web-console (2.1.2)
      activemodel (>= 4.0)
      binding_of_caller (>= 0.7.2)
      railties (>= 4.0)
      sprockets-rails (>= 2.0, < 4.0)

PLATFORMS
  ruby

DEPENDENCIES
  byebug
  coffee-rails (~> 4.1.0)
  jbuilder (~> 2.0)
  jquery-rails
  pg
  rails (= 4.2.1)
  sass-rails (~> 5.0)
  sdoc (~> 0.4.0)
  spring
  turbolinks
  uglifier (>= 1.3.0)
  web-console (~> 2.0)

Again, it does not matter if I remove meta_search from the Gemfile or not; I get the same error.

@dchapman1988

This comment has been minimized.

Show comment
Hide comment
@dchapman1988

dchapman1988 May 2, 2015

Never mind. I don't read. Refer to README

dchapman1988 commented May 2, 2015

Never mind. I don't read. Refer to README

@mercypatin

This comment has been minimized.

Show comment
Hide comment
@mercypatin

mercypatin May 23, 2015

I have the same problem! ¿What did you do????

mercypatin commented May 23, 2015

I have the same problem! ¿What did you do????

@timoschilling

This comment has been minimized.

Show comment
Hide comment
@timoschilling

timoschilling May 26, 2015

Member

If you use Rails >= 4, you need to use activeadmin >= 1 from github and remove metasearch

Member

timoschilling commented May 26, 2015

If you use Rails >= 4, you need to use activeadmin >= 1 from github and remove metasearch

@manshu

This comment has been minimized.

Show comment
Hide comment
@manshu

manshu Jun 3, 2015

Could not find gem 'activeadmin (>= 1) ruby' in any of the gem sources listed in your Gemfile or available on this
machine.

manshu commented Jun 3, 2015

Could not find gem 'activeadmin (>= 1) ruby' in any of the gem sources listed in your Gemfile or available on this
machine.

@fwshun8023

This comment has been minimized.

Show comment
Hide comment
@fwshun8023

fwshun8023 Jun 4, 2015

use: gem 'activeadmin', github: 'activeadmin'
It work! Reference: http://webral.net/active-admin-part1

fwshun8023 commented Jun 4, 2015

use: gem 'activeadmin', github: 'activeadmin'
It work! Reference: http://webral.net/active-admin-part1

@kayoshi

This comment has been minimized.

Show comment
Hide comment
@kayoshi

kayoshi Jun 15, 2015

Thanks @fwshun8023. It helped me!

kayoshi commented Jun 15, 2015

Thanks @fwshun8023. It helped me!

@gespinha

This comment has been minimized.

Show comment
Hide comment
@gespinha

gespinha Jul 17, 2015

So ActiveAdmin >= 1.0.0 doesnt require "meta_search"? Because they say its required on their Documentation

gespinha commented Jul 17, 2015

So ActiveAdmin >= 1.0.0 doesnt require "meta_search"? Because they say its required on their Documentation

@gwkerr

This comment has been minimized.

Show comment
Hide comment
@gwkerr

gwkerr Sep 21, 2015

Right now active admin is in 1.0.0pre1, so use the following snippet of code...

gem 'activeadmin', '1.0.0.pre1'

works like a charm :) I ran into the same issue. Moreover, I am writing this on Sep 21st 2015, so if someone looks at this post in the future it might not work anymore

gwkerr commented Sep 21, 2015

Right now active admin is in 1.0.0pre1, so use the following snippet of code...

gem 'activeadmin', '1.0.0.pre1'

works like a charm :) I ran into the same issue. Moreover, I am writing this on Sep 21st 2015, so if someone looks at this post in the future it might not work anymore

@LukasBombach

This comment has been minimized.

Show comment
Hide comment
@LukasBombach

LukasBombach Dec 15, 2015

@timoschilling thanks for your huge ass comment 👍

LukasBombach commented Dec 15, 2015

@timoschilling thanks for your huge ass comment 👍

@timoschilling

This comment has been minimized.

Show comment
Hide comment
@timoschilling
Member

timoschilling commented Dec 15, 2015

@saroar

This comment has been minimized.

Show comment
Hide comment
@saroar

saroar Dec 22, 2015

thanks works :)

saroar commented Dec 22, 2015

thanks works :)

@kkoci

This comment has been minimized.

Show comment
Hide comment
@kkoci

kkoci Jan 5, 2016

Awesome, thanks!

kkoci commented Jan 5, 2016

Awesome, thanks!

@MaxPleaner

This comment has been minimized.

Show comment
Hide comment
@MaxPleaner

MaxPleaner Jan 18, 2016

Ok so the README says the solution ... but activeadmin.info does not bring this up.

Please update activeadmin.info/docs

MaxPleaner commented Jan 18, 2016

Ok so the README says the solution ... but activeadmin.info does not bring this up.

Please update activeadmin.info/docs

oveits added a commit to oveits/ProvisioningEngine that referenced this issue Feb 3, 2016

Gemfile: added "gem 'activeadmin', '1.0.0.pre2'"
Note that activeadmin without specified version has lead to
Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove gem 'meta_search' and try again.

after issuing 'bundle install'
see activeadmin issue activeadmin/activeadmin#3926 for details.
@steady-daddy

This comment has been minimized.

Show comment
Hide comment
@steady-daddy

steady-daddy Apr 24, 2016

That helped @fwshun8023 thank you.

steady-daddy commented Apr 24, 2016

That helped @fwshun8023 thank you.

@maniempire

This comment has been minimized.

Show comment
Hide comment
@maniempire

maniempire Jul 19, 2016

gem 'activeadmin', '1.0.0.pre2' - Specifying like this solved the issue for me.
Thanks

maniempire commented Jul 19, 2016

gem 'activeadmin', '1.0.0.pre2' - Specifying like this solved the issue for me.
Thanks

@patniharshit

This comment has been minimized.

Show comment
Hide comment
@patniharshit

patniharshit Sep 15, 2016

Thanks, bro that solved my issue.

patniharshit commented Sep 15, 2016

Thanks, bro that solved my issue.

@palakc

This comment has been minimized.

Show comment
Hide comment
@palakc

palakc Oct 26, 2016

I am using activeadmin 1.0.0.pre4 and getting NoMethodError for search_methods. What can be done?
Thanks

palakc commented Oct 26, 2016

I am using activeadmin 1.0.0.pre4 and getting NoMethodError for search_methods. What can be done?
Thanks

@timoschilling

This comment has been minimized.

Show comment
Hide comment
@timoschilling

timoschilling Oct 26, 2016

Member

@palakc search_methods is method from the meta_search gem, ActiveAdmin 1.x don't work with this gem anymore. Take a look on the ransack gem and move your code to it.

Member

timoschilling commented Oct 26, 2016

@palakc search_methods is method from the meta_search gem, ActiveAdmin 1.x don't work with this gem anymore. Take a look on the ransack gem and move your code to it.

@palakc

This comment has been minimized.

Show comment
Hide comment
@palakc

palakc Oct 26, 2016

Thanks. It worked

palakc commented Oct 26, 2016

Thanks. It worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment