Rubymine can't find gems.

Hi Folks,

My trial of Rubymine is coming to an end, and to be fair I've had a pretty underwhelming experience so far.  

I usually use RVM and a text editor to build my ruby scripts, but I thought I'd give Rubymine a spin because I'd head so much good about it.  I'll hold my hands up and say I'm pretty new to ruby and largely self-taught so I probably don't do things the 'ruby way' which might be the root of my problems.  

When I create a new project, I'll create an RVM gemset for it and define the default ruby interpreter.  I'll then install a bunch of gems which I know I'm going to need and then start a new project in Rubymine.

Rubymine will detect the correct version of the interpreter to use (from .ruby-version) and the gemset from (.ruby-gemset) but regardless what I do, the code editor will always underline the require 'gem-xxx' with the tooltip "no such file to load".

Obviously, any calls to methods I use from these gems are then subsequently highlighted as not being found too.

However, the code executes fine, both from the command line and from within rubymine, it's just the IDE that is having problems.

I've done quite a bit of reading about this on stack overflow and this forum, and some people seemed to have been having similar problems a few years ago, but it was claimed fixed.  I've not seen anything recently that would suggest it's a known issue, so I can only assume it's down to how I'm using rubymine/RVM.  I haven't ever used bundler (I don't do rails development), I just manage everything with RVM, which is probably something to do with it.  

Anyone got any pointers or suggestions for getting the IDE to find the gems?  

thanks

Jim

 

0
1 comment

As we've discussed in a similar thread, a possible reason is the following issue:

https://youtrack.jetbrains.com/issue/RUBY-20361

So please check how it goes in case you create Gemfile and place gems in question there. 

0

Please sign in to leave a comment.