New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keeps asking question when closing vim #94
Comments
Here's a video of it happening: http://d.pr/v/Gflj |
Whoa, that's bizzarre. How are you exiting vim? |
I'm exiting with ZZ but the same thing happends if I exit it using :wq I've tried running vimgolf put 4ff83e9749534f000100003f in both iTerm2 and Terminal in OS X. I've installed a seperate (from osx default) vim using homebrew and I've checked :version when in vimgolf and it's using the homebrew installed vim. |
Perhaps an issue with Thor? Which version are you on, and can you try updating? gem update thor.. |
Updated Thor but still getting the same problem. I tried vimgolf on my other laptop, it had an earlier version which it told me to update so I did and then I tried and I'm getting the exact same problem on that laptop. Here's the log on updating thor:
|
Can't reproduce here.. Upgraded to latest also, works fine. =/
|
I thought it could've been something in my .bashrc or .inputrc but I removed them and the result is the same. I also tried changing my PATH so that vimgolf used the default OS X installation of vim but the same thing happend. Very weird. |
I have the same issue here. If there's any helpful info I can provide, let me know. Here's my vim info for a start
|
I don't think this is a Vim issue, this is likely a bug we may have introduced in the recent CLI refactoring: 14a69fd /cc @fgalassi Would one of you guys be willing to instrument your clients and print out what exactly what's happening in there? The code we're after is likely in: https://github.com/igrigorik/vimgolf/blob/master/lib/vimgolf/ui.rb#L53 Can you add some extra logging in there to see what input you're actually getting? Perhaps it's the EOF rescue? |
Yup, I'm seeing the |
Can you try replacing the body of that method with older version and see if that fixes it?
|
Would love to help but unfortunately I don't know what to do to "instrument my client"? |
Adding |
With your code above, I get
|
guys, which version of ruby do you have? |
|
I get the same error message when I switch the code and I also have
|
ok, i can reproduce the problem. It looks like it could be stock ruby on snow leopard and the highline ruby library, which vimgolf uses. I am going to look into this, but if you wanna try in the meantime i think installing ruby with homebrew gonna fix this |
@marlun If you add |
@michaelmior like this:?
|
yes it works. Need to look around on the web if there's some possible problem with that and check no regressions on linux, then i think i can pull. ok Ilya? |
@marlun yes |
@fgalassi @michaelmior Yes, adding that and having the original ask_question content seem to solve the problem :) |
Ok works for me, pulled, thank you all. (and never trust apple stock ruby) |
Great, thanks for the help all of you! Now I can get back to fine tuning my vim skills. |
Awesome, thanks for figuring this out guys! @fgalassi pull looks good, left a quick note about an additional message on exception. |
Hi,
When I'm finished golfing and close vim there seems to be a loop asking me if I want to see a diff, retry or quit and the only way I can stop it is hitting ctrl-c. Looks like thiss:
If I try hitting d, r or q nothing happends, it just keeps asking. I'm on OSX 10.7.4.
The text was updated successfully, but these errors were encountered: