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
NameError: uninitialized constant Errno::ENOMEDIUM #5257
Comments
I compared the result of Ruby 2.5.1: https://gist.github.com/junaruga/9f455234c81cff7580b0ffd65085fb8d Some of the Errno codes are not included in the JRuby. |
|
The constants for Errno come from the https://github.com/jnr/jnr-constants project, and JRuby just generates from there. These additional constants should be added there with reasonable defaults and the files regenerated on supported platforms. Maybe you can help us there? |
@headius Thanks for the information! As I usually do not use Java now, I would like to delegate someone for the help. |
@headius I fixed this and some other missing parts https://github.com/jnr/jnr-constants/pulls should I regenerate them too? If so, let me know. |
@ahorek thank you for the working! 😃 |
I believe this was fixed by jnr/jnr-constants#46 which seems to be the last time we regenerated the Linux constants. That would have been included in JRuby 9.1.14.0 at least. |
Environment
Provide at least:
jruby -v
) and command line (flags, JRUBY_OPTS, etc)uname -a
)Other relevant info you may wish to add:
Expected Behavior
Errno::ENOMEDIUM::Errno
object exists.Actual Behavior
About below test case,
https://github.com/mongodb/mongo-ruby-driver/blob/master/spec/mongo/socket_spec.rb#L21
I got
NameError: uninitialized constant Errno::ENOMEDIUM
https://api.travis-ci.org/v3/job/406430973/log.txt
I did grep on HEAD of master branch. Then I could not find the implementation.
The text was updated successfully, but these errors were encountered: