igrigorik / vimgolf

Real Vim ninjas count every keystroke - do you?
http://www.vimgolf.com/
MIT License
678 stars 65 forks source link

error Bad file descriptor - <STDIN> with ruby installer 3.2.2 #378

Closed zuloloxi closed 1 year ago

zuloloxi commented 1 year ago

Hello, I tried this challenge : https://www.vimgolf.com/challenges/9v0064903c5d000000000253 but have the error: Bad file descriptor - ,with ruby installer --version ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt]

$ vimgolf put 9v0064903c5d000000000253
Downloading Vimgolf challenge: 9v0064903c5d000000000253
Launching VimGolf session for challenge: 9v0064903c5d000000000253

Here are your keystrokes:
fSXPpPiIP<Esc>qw+17|f-lyeT|i10.80.1.<C-R>"<C-R>-<Esc>q9@w7khXZZ

Success! Your output matches. Your score: 47
[w] Upload result and retry the challenge
[x] Upload result and quit
[r] Do not upload result and retry the challenge
[q] Do not upload result and quit
Choice> Uh oh, something went wrong! Error: Bad file descriptor - <STDIN>
If the error persists, please report it to github.com/igrigorik/vimgolf
zuloloxi commented 1 year ago

Hello, I have the error : Bad file descriptor with ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x64-mingw-ucrt] and vim that come with git version 2.39.1.windows.1.

But, when used with ruby 3.2.2 (2023-03-30 revision e51014f9c0) [i386-mingw32] and VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 18 2023 10:29:25) MS-Windows 32-bit console version Included patches: 1-3570 vimgolf is working :

C:\Users\test>vimgolf put 9v0064a68333000000000254
 Downloading Vimgolf challenge: 9v0064a68333000000000254
 Launching VimGolf session for challenge: 9v0064a68333000000000254

Here are your keystrokes:
qe<C-End>Yi0<Esc>Pq7@eZZ        
                                                                                                                                                                                                                Success! Your output matches. Your score: 14                                                                           
[w] Upload result and retry the challenge                                                                               
[x] Upload result and quit                                                                                              
[r] Do not upload result and retry the challenge                                                                        
[q] Do not upload result and quit                                                                                       
Choice> w                                                                                                               
Uploading to VimGolf...                                                                                                 
Uploaded entry.                                                                                                        

Happy golfing!