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
Undefined method read_uint64 in JRuby. #77
Comments
Hm, worked ok with 9.2.4.0 on my Linux laptop. I'll have to wait until this evening to test it against my Mac. |
@djberg96 It fails on my Macbook when I try I gave up after it failed with both those changes. It works fine with MRI Ruby and also within a JRuby docker container running on my mac. |
@Adithya-copart Try |
With
Used FFI::StructLayout::CHAR_ARRAY here:
|
@Adithya-copart What version of ffi are you using? |
Thanks for looking into this @djberg96 . I got the same error using
|
@Adithya-copart I think we can get around the lack of I'm not sure what's going on with the char array thing yet. |
@Adithya-copart Looks like this will workaround will work for the
|
@djberg96 Thanks, can confirm that this works on JRuby. |
Fixed by #78 and part of the 1.2.2 release. Thanks for the report! |
The conditional introduced due to the lack of |
@Adithya-copart Thanks, please remind me if/when that issue is addressed. |
This will be fixed for jruby/jruby#5947 by jruby/jruby#5948. Thanks for working around it! Hopefully with the FFIs synched up we won't see these sorts of incompatibilities. |
@djberg96 https://www.jruby.org/2021/09/22/jruby-9-3-0-0.html is out and it includes the above fix @headius mentioned. |
@adi-pen Thanks. I'll probably wait a while to remove the previous changes since I imagine people will be running older versions of JRuby for a time. |
I noticed this error in my Macbook while trying to run
ProcTable.ps(:pid => Process.pid).cmdline.split(' ')
.I tried to see if I can get this working by using the alternatives suggested in the error message but it still results in an error.
Here are my environment specifics:
The text was updated successfully, but these errors were encountered: