Nicolas Raoul
Nicolas Raoul

Reputation: 60213

Heroku on Windows: No such file or directory - C:\Users\田中/.heroku (Errno::ENOENT)

Following Heroku's indications, I installed RailsInstaller on Windows.

Everything worked fine, including the gem install heroku command, but the next step fails:

$ heroku list
<enter credentials>
c:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:1231:in `chmod': No such file or directory - C:\Users\田中/.heroku (Errno::ENOENT)

I tried both from RailsInstaller's Command Prompt with Ruby on Rails and Git bash consoles, same result.

To try the solution described here and here, I typed gem install heroku -v=2.0.4 and it installed fine, but still same problem.

The error appears just after I enter the credentials. If I enter wrong credentials, another error message is shown.

What is going wrong?
The directory C:\Users\田中\.heroku actually exists and is visible from the consoles.

Upvotes: 0

Views: 998

Answers (1)

Nicolas Raoul
Nicolas Raoul

Reputation: 60213

It seems to be a bug in the Heroku gem.

I have found a quick-and-dirty solution that works for me, here is the patch I wrote:
https://github.com/nicolas-raoul/heroku/commit/d45d2a9

After applying this fix, the commands go smooth and I am able to use Heroku+git normally.

Upvotes: 1

Related Questions