enginex icon indicating copy to clipboard operation
enginex copied to clipboard

already activated: activesupport

Open cmeiklejohn opened this issue 14 years ago • 11 comments

When running:

enginex new_engine

I'm getting this:

`raise_if_conflicts': can't activate activesupport-3.0.3, already activated activesupport-3.0.9

cmeiklejohn avatar Jul 19 '11 00:07 cmeiklejohn

Can you please post the full backtrace? Smells like a rubygems bug.

josevalim avatar Jul 19 '11 02:07 josevalim

Here it is:

/home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1600:in `raise_if_conflicts': can't activate activesupport-3.0.3, already activated activesupport-3.0.9 (Gem::LoadError)
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:737:in `activate'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:51:in `block in require'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:in `each'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:in `require'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/gems/enginex-0.8.1/lib/enginex.rb:2:in `<top (required)>'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/cmeiklejohn/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/gems/enginex-0.8.1/bin/enginex:4:in `<top (required)>'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/bin/enginex:19:in `load'
from /home/cmeiklejohn/.rvm/gems/ruby-1.9.2-p136/bin/enginex:19:in `<main>'

cmeiklejohn avatar Jul 19 '11 02:07 cmeiklejohn

I'm having the same issue. Versions:

ruby: 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] gem: 1.8.6 rvm: 1.6.31 enginex: 0.8.1

The "already activated" error only seems to show up in a project directory controlled by an .rvmrc. I'm not sure of the interaction there.

Regardless, it is a problem that seems worthwhile to solve since RVM usage is only increasing.

contentfree avatar Jul 27 '11 05:07 contentfree

@cmeiklejohn: The temporary workaround is to edit the local enginex gemspec. Should be at .rvm/gems/<gemset>/specifications/enginex-0.8.1.gemspec – If you change the gemspec to use ~> 3.0.9 then it'll work for now.

contentfree avatar Jul 27 '11 05:07 contentfree

Thanks. Yeah, I changed the gemspec as well.

cmeiklejohn avatar Jul 27 '11 15:07 cmeiklejohn

This is very weird. What is worse is that it can only be reproduced if you are have a .rvmrc file?

josevalim avatar Jul 28 '11 06:07 josevalim

I can't prove that, but I went through various projects testing the command and that was a common feature of those that failed. However... today's a new day... and I'm no longer getting the failure (?!)

contentfree avatar Jul 28 '11 06:07 contentfree

i have this same issue, and i am not using rvm

reasonbock avatar Jul 30 '11 17:07 reasonbock

ruby: 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] gem: 1.85 rvm: not installed enginex: 0.8.1

reasonbock avatar Jul 30 '11 17:07 reasonbock

So it seems everyone is using at least rubygems 1.8.5?

josevalim avatar Jul 30 '11 17:07 josevalim

Sure seems that way.

cmeiklejohn avatar Jul 30 '11 17:07 cmeiklejohn