Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7027801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:17:47+00:00 2026-05-28T00:17:47+00:00

I recently started getting this error while running gems or bundler. The only thing

  • 0

I recently started getting this error while running gems or bundler.
The only thing i can recall that I changed recently was upgrade my git version.

I am using MINGW32 as the shell, and this has been working perfectly for over a year.

I have made sure that git is in my PATH and am now not sure what to look for next.

What would be the next thing I could to to troubleshoot this issue?

Here is an example of the output i get. This example shows the heroku gem, but I get the same results when running bundle install

$ heroku console
openpath: pathname too long (ignored)
        Directory ""
        File "chcp"
openpath: pathname too long (ignored)
        Directory ""
        File "git"
c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/helpers.rb:111:in ``': No such file or directory -  git --version  (Errno::ENOENT)
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/helpers.rb:111:in `has_git?'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/helpers.rb:116:in `git'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/command/base.rb:192:in `git_remotes'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/command/base.rb:170:in `extract_app_in_dir'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/command/base.rb:162:in `extract_app'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/command/run.rb:72:in `console'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/lib/heroku/command.rb:114:in `run'
        from c:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.14.0/bin/heroku:14:in `<top (required)>'
        from c:/Ruby192/bin/heroku:19:in `load'
        from c:/Ruby192/bin/heroku:19:in `<main>'

and here is the line 111 in helpers.rb referenced above.

def has_git?
  %x{ git --version } #this is 111
  $?.success?
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:17:48+00:00Added an answer on May 28, 2026 at 12:17 am

    This error message comes from the dln_find.c file in Ruby, which throws this error when it tries to generate a path that’s longer than the MAXPATHLEN value on the system.

    As per this MSDN reference, the maximum path length for a number of functions in the Windows API is only 248 characters — thus, I would guess that MAXPATHLEN is defined as 248 in the Ruby-for-Windows sources. (Alternately, the dln_find.c sources define it as 1024 if it is not otherwise defined.)

    There are a number of ways you might be able to solve this within the program if you were the programmer, but the solution at the user level is probably that you have to use a directory with a shorter name.

    (So, what directory needs to be shorter? Well, there’s the clue that the error message tells you what file it’s trying to load, which is chcp and git. Perhaps your git upgrade changed its directory name to something excessively long, and you need to move it somewhere with a shorter name? Or … it looks like this find code may be iterating over each entry in your PATH environment variable and checking in it and throwing a “too long” error if any given possibility is too long — perhaps your PATH is corrupt or has a new very long entry?)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started getting this error while posting to facebook newsfeed stream of
I recently migrated to new version of protobuf-net, and i started getting this error
Recently I've switched to Ninject 2.0 release and started getting the following error: Error
Very recently, I started getting the SQL max user connections limit reached error. I
Ok, so I've only recently started getting serious about learning how to program, and
I've recently started getting into Git on a personal project, and I can see
I've recently started reading up on Rails and while getting my development environment ready
We recently started getting the following error message in TFS 2010 automatedd builds: C:\Builds\1\MyProject\MyProject
Recently (in the last couple hours or so) I started getting this exception stack:
This morning, I started getting that message when I attempt to open a file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.