-
Notifications
You must be signed in to change notification settings - Fork 330
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
doesn't read stdin on Cygwin #32
Comments
Hi @VladimirAlexiev! Thanks for raising an issue :) I'm afraid I don't own a Windows machine and I'm not massively familiar with cygwin so I might struggle to reproduce this. Can you answer a few things for me?
If that last one works then this might be a workaround for now:
A did a little bit of digging and found that cygwin and windows binaries can be a little odd, and that this might help: https://github.com/rprichard/winpty - but again I don't have a way to test it. Sorry I can't be more help! If the winpty thing doesn't resolve the issue then I'll try my best to get a Windows VM up and running so I can debug things more easily. |
Hi @tomnomnom, thanks for looking into this!
I read about winpty but can't figure out how it can help because I don't know what is Do you use STDIN in some unusual way? I got many cygwin programs that handle Cheers! |
@VladimirAlexiev: no problem :) I think the strangest thing here is that Before we go any further, can you give this build a try and see if it works: gron-go1.10-build.zip? It might be a little bit of a long-shot, but it's an easy one to test. I found an issue in the version of Go that was used to build the binary you're using that sounds as though it may be related, so I've built one with a newer version of Go. Let me know if you have any luck with that, and if not I'll go and get myself a Windows VM :) |
This may be related to golang/go#22024 |
Thanks @joekyo! The version I posted above was built with Go 1.10, which should work too in theory! If it does I'll cut a release built with 1.10 so the latest release works for everyone |
gron-go1.10-build.zip works fine. Thanks!!! |
@VladimirAlexiev fantastic! I'll cut a new release now so others don't hit the same issue :) |
I've released v0.5.2 built with Go 1.10; so all should be well with the world! Thanks again! |
I got https://github.com/tomnomnom/gron/releases/download/v0.5.1/gron-windows-amd64-0.5.1.zip.
cmd
(though need to specify-m
to avoid the colors, or use a better terminal like conemu)The text was updated successfully, but these errors were encountered: