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
'check_version_conflict': using 'rails new', with a version, when Rails 5.1.X installed #29113
Comments
Just run into this too. But it seems like a |
I just had the same problem with Ruby 2.3.1-p112 but with 2.3.3-p222 it worked. |
I just had this problem as well. I use rbenv on OSX. On Ruby 2.4.1 I get this error message: $ gem list | grep "^rails ("
rails (5.1.1, 5.0.2, 5.0.1)
$ rails _5.0.2_ new test-50
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb:2278:in `check_version_conflict': can't activate activesupport-5.1.1, already activated activesupport-5.0.2 (Gem::LoadError)
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb:1404:in `activate'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:89:in `block in require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:88:in `each'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:88:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent.rb:15:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/logger_silence.rb:3:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support/logger.rb:1:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.0.2/lib/active_support.rb:27:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/generators.rb:6:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/commands/application.rb:1:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/lib/rails/cli.rb:14:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
from /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.0.2/exe/rails:9:in `<top (required)>'
from /usr/local/opt/rbenv/versions/2.4.1/bin/rails:22:in `load'
from /usr/local/opt/rbenv/versions/2.4.1/bin/rails:22:in `<main>' |
Yeah, this seems to be a RubyGems problem. AFAICS there are two things in play:
Throwing: return true if already = Gem.loaded_specs[name] and not already.version == version into |
Issue is closed, but I haven't understood how to solve to problem... |
Agreed, any reproducible fix? |
@a-barbieri I did the following and it worked. Re-install So it could very well be an rbenv / rubygems issue. I tried just remove RubyGems and starting over and that didn't work. Only when I re-installed the rbenv distro did it work. Hope that helps. |
Thanks @kent, I'm using RVM, but I guess this won't make any difference. I'll go through the re-installation process as soon as I have some spare time. At the moment I simply avoided using |
A simple 'gem update rails' solved this problem for me. |
That did it for me as well. |
The same problom for me. I fix it by use |
'gem update rails' also worked for me! |
'gem update rails' does not work for me! |
@YaEvan It works for me! |
gem update rails - way to go ! |
just tried |
Steps to reproduce
Make sure Rails 5.0.3 is installed on the system. Uninstall Rails 5.1.0 and Rails 5.1.1 (along with all of their component gems). Run
Everything works fine. Now install Rails 5.1.1. Run the same command
Expected behavior
rails new
should be to create a Rails 5.0.3 application.Actual behavior
rails new
crashes with the following error in the console.../.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:2278:in `check_version_conflict': can't activate activesupport-5.1.1, already activated activesupport-5.0.3 (Gem::LoadError)
System configuration
Rails version: See above
Ruby version: Tested with Ruby 2.3.4 and 2.3.3.
The text was updated successfully, but these errors were encountered: