RubyMine getting "You need to install git to be able to use gems from git repositories", but git is installed

I upgraded Ruby version to 2.0.0p451 and RubyMine version to 6.3.  The new ruby version is correctly installed and on command line I can run bundle install for my project without any problem.  However, when I try to run the application inside RubyMine I get an error.  It looks like bundler can not find git.  I looked around in settings, but could not find a clue.  By the way RubyMine can see git and I see changes pane.

Below is the stack trace:

"C:\Program Files (x86)\JetBrains\RubyMine 6.3\bin\runnerw.exe" E:\Ruby\Ruby200\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) E:/Ruby/projects/rgstonaj/script/rails server -b -p 3000 -e development
E:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.1/lib/bundler/source/git/git_proxy.rb:43:in `initialize': You need to install git to be able to use gems from git repositories. For help installing git, please refer to GitHub's tutorial at (Bundler::Source::Git::GitNotInstalledError)
 from E:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.6.1/lib/bundler/source/git.rb:283:in `new'

Comment actions Permalink


I'd suggest to check if git is added to path in a regular command line (as far as I know git may also installe a scepial link for command line with
git included into path but RubyMine is supposed to use environment similar to a regular cmd).
Than if git has been installed after RubyMine has been started you should try to restart it, in case this will not help I'd even restart Windows since this is the
only way (for me) to be sure that all changed environment variable are available for all programs.

Hope this helps,  Oleg.

Comment actions Permalink

Hi Oleg,

As you suggested, I added git to my regular command line and the issue is resolved.  Thanks!


Please sign in to leave a comment.