bundler not working

Hi,

 

I am running the latest EAP and checked my project out of github into RubyMine. Next thing I see;

I am brand new to this IDE and Ruby so I need some help please. Thanks.

 

C:\Users\paul\development\Ruby22-x64\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\Users\paul\development\Ruby22-x64\bin/bundle install
--- ERROR REPORT TEMPLATE -------------------------------------------------------
- What did you do?

I ran the command `C:\Users\paul\development\Ruby22-x64\bin/bundle install`

- What did you expect to happen?

I expected Bundler to...

- What happened instead?

Instead, what actually happened was...


Error details

Errno::ENOENT: No such file or directory - git cat-file -e 97b3f397fc7b77900882b1db1487e1f9d95ca8e8
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git/git_proxy.rb:133:in ``'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git/git_proxy.rb:133:in `block in git'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:71:in `call'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:71:in `with_clean_git_env'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git/git_proxy.rb:133:in `git'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git/git_proxy.rb:140:in `block in has_revision_cached?'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:53:in `chdir'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:53:in `block in chdir'
C:/Users/paul/development/Ruby22-x64/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:52:in `chdir'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git/git_proxy.rb:178:in `in_path'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git/git_proxy.rb:140:in `has_revision_cached?'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git/git_proxy.rb:72:in `checkout'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/source/git.rb:153:in `specs'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:209:in `block (2 levels) in index'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:207:in `each'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:207:in `block in index'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/index.rb:9:in `build'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:204:in `index'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:198:in `resolve'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:137:in `specs'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/definition.rb:126:in `resolve_remotely!'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/installer.rb:194:in `resolve_if_need'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/installer.rb:69:in `run'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/installer.rb:21:in `install'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/cli/install.rb:105:in `run'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/cli.rb:172:in `install'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/cli.rb:10:in `start'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/exe/bundle:19:in `block in <top (required)>'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/exe/bundle:17:in `<top (required)>'
C:/Users/paul/development/Ruby22-x64/bin/bundle:23:in `load'
C:/Users/paul/development/Ruby22-x64/bin/bundle:23:in `<top (required)>'
-e:1:in `load'
-e:1:in `<main>'

Environment

Bundler 1.11.2
Rubygems 2.4.5.1
Ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
GEM_HOME C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0
GEM_PATH C:/Users/paul/development/Ruby22-x64/lib/ruby/gems/2.2.0;C:/Users/paul/.gem/ruby/2.2.0
Git not installed
--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=No+such+file+or+directory+-+git+cat-file+-e+97b3f397fc7b77900882b1db1487e1f9d95ca8e8&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new

Process finished with exit code 1

2 comments
Comment actions Permalink

on further investigation I think the error is because RubyMine thinks git is not installed.

 

But it is - it is in my path in env vars and I can run git from cmd.

It is also set up correctly under Files/Settings/Version Control/git

0
Comment actions Permalink

OK - if git is installed under a path containing a space, bundler can't find it.

http://stackoverflow.com/questions/29986289/git-problems-git-not-installed

 

 

0

Please sign in to leave a comment.