what is proper diagnostic procedure for installing gems using rm?

I continue to have problems with RM when I am installing gems.

It seems to me that to successfully install gems in the RM 'install gems' dialog, I still have to know everything about the gem, the sdk version, the gem version and some other unknown facts.

That is, it seems that to succeed with the dialog, I need to know more than if I were running the gem command from a command line.

For example, to install the sqlite3-ruby gem, I continue to get the error that the dialog or something cannot validate the name of the gem, and then the install fails.

Could someone please publish on the Rubymine site a list of the RM versions and which versions of the ruby SDK is supported by each one?

Or if there is a specific way to accurately and dependably line up the RM version the SDK version, the gem version and the gem web source and whatever else is needed, could you please put it here in the forum as a sticky?

The online docs only tell you the happy path so they are useless for this.

Thanks,

K.

0
1 comment

Hello Kimball,

For example, to install the sqlite3-ruby gem, I continue to get the error that the dialog or something cannot validate the name of the gem, and then the install fails.


Which version of RubyMine do you use? Please attach a screenshot of error message, probably it is just a RubyMine bug.

Could someone please publish on the Rubymine site a list of the RM versions and which versions of the ruby SDK is supported by each one?


In general all RubyMine versions should support all sdks. Problems may occur only with SDKs which aren't fully compatible with MRI command line interface (e.g. something like IronRuby). All bug requests are welcome.

It seems to me that to successfully install gems in the RM 'install gems' dialog, I still have to know everything about the gem, the sdk version, the gem version and some other unknown facts.


It is not clear what do you mean or expect. RubyMine just provide UI interface for rubygems and scans for gems which may be required to your project on run-time. E.g. RubyMine shows already installed gems ("attach gem" button), allows to install new gems ("install" button) and shows which gems are out of date. If application uses bunlder (contains Gemfile and bundler gem is installed) RubyMine will look for gems dependencies only in Gemfile. If your application is Rails 2.x application - RubyMine will scan only gems mentioned in environments. In other cases RubyMine will scan all ruby source files in your project and will fetch dependencies according to "gem" ruby calls. Also RM provide several inspections which suggests missing gems according to database.yml settings or unresolved files in "require" calls or missed debugger gems.

You need attach gems in RubyMine only to tell RubyMine that such gems should be indexed and support for corresponding frameworks (e.g. rspec, cucumber, spork, etc.) should be enabled. With Bundler gem our "attach gem" concept becomes more confusing. So most likely we will remove the concept in future RubyMine versions and RM will look for gems dependencies only in Gemfile.

0

Please sign in to leave a comment.