A
A
Alexey Kolesnikov2016-02-07 11:44:31
ruby
Alexey Kolesnikov, 2016-02-07 11:44:31

Why doesn't RubyMine 7 see bundler gems?

hello, I ran into trouble - if you install a gem from a certain bundler branch, then rubymine does not see it, swears that it is not in the current SDK, but everything works fine.
for example:

  • gem 'spree', '3.0.4' works and everything is cool
  • gem 'spree', github: 'spree/spree', branch: '~> 3.1.0. can't see gem

I tried to add the path to such gems to the environment using export, and also tried to edit the rvm environment by adding the path there.
If you display the environment paths in RubyMine, then the path to the gems is in the
Sdk Gem paths list:
~/.rvm/gems/ruby-2.2.2/bundler/gems
~/.rvm/gems/ruby-2.2.2/gems
~/ .rvm/gems/[email protected]/gems
What could be the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
CapeRatel, 2016-02-07
@CapeRatel

Are you sure that version 3.1 exists?
The docks only have
To avoid confusion, you need to use gemset.

A
Alexey Kolesnikov, 2016-02-07
@0xdeface

Oops, she has already become master https://github.com/spree/spree/blob/master/SPREE_V...
but that doesn't change the question.

V
vsuhachev, 2016-02-08
@vsuhachev

RubyMine in the project displays gems from Gemfile.lock, maybe you haven't updated it? And what exactly is "does not see", if the hints do not work, then this is due to the indexing of the project sources, which sometimes falls off or freezes and only restarting RubyMine helps. In general, I often do the same as you and did not notice any special problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question