-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error: undefined method 'wait_readable' for TCPSocket (compile-time type is TCPSocket+) #22
Comments
Yeah it’s due to the new reactor stuff in Crystal 1.15 Ssh2 relies on this to be non blocking I think so we’ll need to work out an alternative going forward. Also might be possible to add windows support- but it might be awhile before I get around to patching this |
@stakach Due to the way that eventpolling was updated, I'm not actually sure you need to call these private methods at all -> https://github.com/crystal-lang/crystal/blob/master/src/crystal/event_loop/polling.cr I think they get called internally now so you might be able to fix this by just removing this method: private def waitsocket
flags = block_directions
@socket.wait_readable if flags.inbound?
@socket.wait_writable if flags.outbound?
end And other calls to the |
Hi, is there a workaround for this? I am having a hard time building a binary on macOS with Github Actions and the homebrew formula has been updated to Crystal 1.15. Thanks |
Only workaround is to continue using crystal 1.14 for now Might be able to use select to perform the check on a file descriptor |
I am getting the following compile time error when using crystal-lang
v1.15.0
The text was updated successfully, but these errors were encountered: