This Question is Possibly Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
9 Replies Last post: Jan 30, 2013 9:34 AM by Oleg Sukhodolsky  
Lei Gao Newbie 8 posts since
Jan 19, 2013
Currently Being Moderated

Jan 19, 2013 10:24 PM

vendor/bundle and rubymine?

Hi I just swithced from RVM to rbenv. I use bundler to manage my gems, however, seems rubymine 5 EAP dose not recognize it.

 

Meaning if I only do bundle install, which installs all the gems under vendor/bundle, then rubymine will not show them under 'Ruby SDK and Gems' settings. Only if I do bundle install --system, they will show up. Othewise some features will not be working. Say, with vendor/bundle, I can not run spec, cucumber inside rubymine, although I can do that in console.

 

I wonder if something I did wrong. Or Rubymine purely just does not work with vendor/bundle folder?

 

Any suggestions?

Thanks

Oleg Sukhodolsky JetBrains 391 posts since
Apr 4, 2012
Currently Being Moderated
Jan 19, 2013 11:27 PM in response to: Lei Gao
Re: vendor/bundle and rubymine?

Hi,

 

if you configured bundler to install gems in vendor/bundle by-default then RM is supposed to handle this (and if it is not then this is a bug).

But if you manually point bundler the directory to use every time then RM has no way to detect this.

 

Regards, Oleg.

Oleg Sukhodolsky JetBrains 391 posts since
Apr 4, 2012
Currently Being Moderated
Jan 21, 2013 3:42 PM in response to: Lei Gao
Re: vendor/bundle and rubymine?

Hi,

 

we are supposed to handle BUNDLE_PATH in user's config.

Could you please describe how you have configure bundler to install gems in vendor/bundle by-default (which env.variables you have set, which config file you have changed and what have you added to them)

 

Regards, Oleg

Oleg Sukhodolsky JetBrains 391 posts since
Apr 4, 2012
Currently Being Moderated
Jan 22, 2013 12:17 PM in response to: Lei Gao
Re: vendor/bundle and rubymine?

Hi,

 

I think I've identified the problem in our code and filed ticket about it (http://youtrack.jetbrains.com/issue/RUBY-12913).

In a mean time you can workaround it by using local bundler's config (which is located in project's directory)

 

As for your other suggestion I think this is a good idea - feel free to file feature request in our tracker (http://youtrack.jetbrains.com/issues/RUBY)

 

Regards, Oleg.

Rick Schmitty Newbie 8 posts since
Mar 6, 2012
Currently Being Moderated
Jan 30, 2013 7:04 AM in response to: Oleg Sukhodolsky
Re: vendor/bundle and rubymine?

Hi Oleg, should a local .bundle/config also work for IntelliJ with the Ruby plugin installed?

Oleg Sukhodolsky JetBrains 391 posts since
Apr 4, 2012
Currently Being Moderated
Jan 30, 2013 9:34 AM in response to: Rick Schmitty
Re: vendor/bundle and rubymine?

Well, it is supposed to if it doesn't then this is a bug.

 

Oleg.

More Like This

  • Retrieving data ...