Error: Rails gem isn't activated in Gem Manager for module 'foo'

Hi.  I'm successfully enjoying RM 1.1.1 on 4 of my 5 dev machines (all Win7/Vista) without any problems.  Alas, on my last system (which isn't supposed to be any different), I get:

"Error running Development: foo: Rails gem isn't activated in Gem Manager for module 'foo'"

When I visit the RM settings for Gems, this is what I see:

rubymine.PNG

Note the absense of gems...  However, gem list from the command line says:

actionmailer (2.3.3)
actionpack (2.3.3)
activerecord (2.3.3)
activeresource (2.3.3)
activesupport (2.3.3)
builder (2.1.2)
chronic (0.2.3)
columnize (0.3.0)
fxri (0.3.6)
fxruby (1.6.12)
haml (2.2.2)
hoe (2.3.2)
hoe-seattlerb (1.2.0)
hpricot (0.8.1, 0.6)
linecache (0.43)
log4r (1.0.5)
minitest (1.4.2)
rack (1.0.0)
rails (2.3.3)
rake (0.8.7, 0.7.3)
RedCloth (4.2.2)
rspec (1.2.8)
rspec-rails (1.2.7.1)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubyforge (1.0.4)
rubygems-update (1.3.5)
rufus-scheduler (2.0.1)
sanitize (1.0.8)
session (2.4.0)
sources (0.0.1)
sqlite3-ruby (1.2.3)
tmail (1.2.3.1)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
win32console (1.2.0)
windows-api (0.2.0)
windows-pr (0.7.2)
ZenTest (4.0.0)

Which seems pretty much right (these were installed via rake gems:install, btw).  I've reinstalled ruby and RM from scratch, since I had such success on other systems - but alas, nothing seems to eliminate the error.

Could it be that RM has a different place its looking for gems?  Some problem with PATH or one of the Windows environment variables (like RUBYOPT)?

Help very much appreciated - I'm stuck.

6 comments
Comment actions Permalink

Hello Eric,

Make sure that you have the correct interpreter selected. If you have multiple
Ruby installations, RubyMine may have picked the wrong one by default.

Hi. I'm successfully enjoying RM 1.1.1 on 4 of my 5 dev machines (all
Win7/Vista) without any problems. Alas, on my last system (which
isn't supposed to be any different), I get:

*"Error running Development: foo: Rails gem isn't activated in Gem
Manager for module 'foo'"*

When I visit the RM settings for Gems, this is what I see:

Image:rubymine.PNG

Note the absense of gems... However, gem list from the command line
says:

actionmailer (2.3.3)
actionpack (2.3.3)
activerecord (2.3.3)
activeresource (2.3.3)
activesupport (2.3.3)
builder (2.1.2)
chronic (0.2.3)
columnize (0.3.0)
fxri (0.3.6)
fxruby (1.6.12)
haml (2.2.2)
hoe (2.3.2)
hoe-seattlerb (1.2.0)
hpricot (0.8.1, 0.6)
linecache (0.43)
log4r (1.0.5)
minitest (1.4.2)
rack (1.0.0)
rails (2.3.3)
rake (0.8.7, 0.7.3)
RedCloth (4.2.2)
rspec (1.2.8)
rspec-rails (1.2.7.1)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubyforge (1.0.4)
rubygems-update (1.3.5)
rufus-scheduler (2.0.1)
sanitize (1.0.8)
session (2.4.0)
sources (0.0.1)
sqlite3-ruby (1.2.3)
tmail (1.2.3.1)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
win32console (1.2.0)
windows-api (0.2.0)
windows-pr (0.7.2)
ZenTest (4.0.0)
Which seems pretty much right (these were installed via rake
gems:install, btw). I've reinstalled ruby and RM from scratch, since
I had such success on other systems - but alas, nothing seems to
eliminate the error.

Could it be that RM has a different place its looking for gems? Some
problem with PATH or one of the Windows environment variables (like
RUBYOPT)?

Help very much appreciated - I'm stuck.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5242228#5242228

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

"Error running Development: foo: Rails gem isn't activated in Gem Manager for module 'foo'"

Please check which gems are "attached"(activated) for RubyMine code insight. See File | Settings | Ruby SDK and Gems Manager.Picture 1.png

0
Comment actions Permalink

Alas, no gems are listed in the attach gems.. dialog.  In the idea.log file RubyMine is throwing an exception from the gem manager so I think there is a bug in RM triggered by something environmental on this particulat system.

I've reinstalled the Ruby SDK, RubyMine 1.1.1, tried RM 1.5 EAP, etc. - all exactly the same behavior.  RM just doesn't see ANY of the gems in the SDK, even tho "gems list", Netbeans and my app (from the console) run just fine!

I'm guessing (wild guess) that it is an environment variable, directory permission or something oddball which is choking RM.

0
Comment actions Permalink

For the record, the problem was HOME environment variable specified on Windows platform pointing to the Unix style directory "/users/foo". It looks like HOME has higher priority than HOMEPATH for Ruby. With this setting Ruby is providing IDEA incorrect paths for gems (/user/foo/.gem ...).

Removing the HOME environment variable has fixed the problem.

0
Comment actions Permalink

Just wanted to thank you all for your help on this one.  I'm (once again) a very happy RubyMine user!

0

Please sign in to leave a comment.