Skip to content

Loading…

Hitting ^D at "Upload result to VimGolf? (y/n)" errors #92

Closed
Gumnos opened this Issue · 4 comments

2 participants

@Gumnos

Accidentally hit control+D (the prompt was covered by another window at a higher layer and I planned to exit the shell) and got the following:
"""
Upload result to VimGolf? (yes / no) Uh oh, something went wrong! Error: undefined method `strip' for nil:NilClass
If the error persists, please report it to github.com/igrigorik/vimgolf
"""

I'm guessing it's a pretty straightforward fix.

@igrigorik
Owner

Can't reproduce here - what platform? I'm not sure what the fix is.. if you exited Vim, them not much we can do here. :)

@Gumnos

Debian Linux. It's coming from the Ruby Vimgolf code. It looks like you're expecting a "y" or "n" for whether to upload the results to Vimgolf, but if a control+D (EOF) is received, Ruby gets something it doesn't know how to handle. I can regularly reproduce it by issuing an ^D/EOF at this prompt.

@Gumnos

It may stem from the internal Thor libraries which handle the "yes" method.

@igrigorik
Owner

Right, makes sense. Can't reproduce on OSX, wonder if there is a bug in Thor..

@igrigorik igrigorik closed this in #111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.