Skip to content
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

[Question] Windows supported? #15

Open
tan-wei opened this issue Jun 8, 2019 · 2 comments
Open

[Question] Windows supported? #15

tan-wei opened this issue Jun 8, 2019 · 2 comments

Comments

@tan-wei
Copy link

tan-wei commented Jun 8, 2019

  • OS: WInsows 10
  • Ruby: 2.5.5 x32

It fails after require 'lightio', error messages are shown below:

ArgumentError: unsupported backend:
from C:/Ruby25/lib/ruby/gems/2.5.0/gems/nio4r-2.3.1/lib/nio/selector.rb:17:in `initialize'
Caused by LoadError: cannot load such file -- lightio
from C:/Ruby25/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
@tan-wei
Copy link
Author

tan-wei commented Jun 8, 2019

Maybe I should set the backend in ENV just like

set LIGHTIO_BACKEND=epoll

How to set the backend with an available one? Thanks!

@tan-wei
Copy link
Author

tan-wei commented Jun 8, 2019

It seems that the only valid input for NIO::Selector.new is :ruby (a symbol but not a string). When I set LIGHTIO_BACKEND in ENV, it is always a string. For example, when I set LIGHTIO_BACKEND to ruby, it will also fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant