I have gems, so why is the "Attach Gems" button is disabled?

Hi,

I'm a NetBeans user who has just today downloaded and installed your product. So far I must say it is pretty impressive. I have created a simple Rails project and it runs, which means the Rails and Mongrel and MySQL gems in my Ruby directory are known to the IDE.

My problem: I have several other gems installed in my Ruby directory (e.g. RSpec, Cucumber), yet when I fire up "Settings > Ruby SDK and Gems" the "Attach Gems" button is disabled, thus preventing me from using (i.e. attaching) gems I have already downloaded and installed (and successfully used from within NetBeans).

I searched the forum and could only find one related post. It suggested doing a "Remove SDK" and then re-adding it. I tried this but it did not work.

Can someone please help me with this?

Thanks,
Larry

0
5 comments

I figured out what was going on, so I thought I'd post the solution in case anyone else runs across this problem...

I couldn't attach gems, so I tried to install a gem to see what would happen. I got the list of gems (File > Settings > Ruby SDK and Gems > Install Gems) and selected one, but when I clicked "Install" nothing happened. So it appeared my gems functionality was hosed.

It turned out to be a permissions problem. I have Ruby installed in my /opt directory, which is owned by root. So I changed the write privileges for my Ruby gems directory (and all of its subdirectories):

cd /opt/ruby/lib/ruby/gems/1.8

sudo chmod -R a+w gems

restarted the IDE, and now I can both install and attach gems.

-- Larry

P.S. The installation instructions for this product are almost non-existant (e.g. you have to search the forums to find out that you should modify the rubymine.sh file to set JDK_HOME). Is there a "best practices" document or blog anywhere that discusses what people normally do when installing RubyMine on Linux so they don't run into problems?

0

Hello Larry,

cd /opt/ruby/lib/ruby/gems/1.8

sudo chmod -R a+w gems

Actually I don't understand why such fix helped you. For attaching gems read permissions should be enough. As for installing rubygems is able to install gems in ~/.gem folder.
1. Which verison of rubygems do you use?
2. Also please attach ~/.RubyMine10/system/logs/idea.log

0

Hi Roman,

My RubyGems version is 1.3.2. I have attached the log file as you requested.

Thanks,
Larry



Attachment(s):
idea.log
0

Thank you for log, it helped us to fix some exception related to Gem Manger

0

My pleasure, Roman. Glad my problem turned out to be useful to you guys.

-- Larry

0

Please sign in to leave a comment.