-
Notifications
You must be signed in to change notification settings - Fork 44
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
JRuby Support #12
Comments
No support sorry, I dont think the jruby runtime is capable of supporting a general |
JRuby could certainly support binding_of_caller...it just can't do it when optimizations are enabled. So basically, if you pass the right flags to JRuby, all caller binding information would be available. |
@headius Thanks for the info! I'm not familiar enough with jruby to know what you're referring to, though. Would you mind giving an example (or gist)? |
It's possible to do everything in current JRuby, but the data structures involved are buried a bit deeply. Here's a patch + trivial IRB session to show a trivial Binding.of_caller working: https://gist.github.com/headius/4773409 |
Oh, and the details about optimization versus non-optimized. Here's the same example run as a file (which JRuby compiles and will optimize away the binding for 'foo':
|
Thanks for the example, @headius! Helps me understand bindings a bit better, too. |
@kowal That patch was applied and is in the master branch. You should be able to use it in interpreted mode. However, no version was released to rubygems yet. |
the gem still contains C extensions, which can't be built under jruby. thanks |
@badosu is it ready to release? |
any update here? Still not able to use this gem with jruby. |
@edatrix Specifying version |
no dice with |
using
|
Looks like this issues is still in progress. Maybe it should be reopened? |
@badosu any plan to release 0.7.3? |
@donv The release process is usually performed by @banister. I don't know even if it's worth it to release like this, because we had already a pretty strict set of conditions to use b_o_c with JRuby, and now we are not compatible with JRuby 9000. As @headius said, we probably even won't be able to implement b_o_c for JRuby 9000. |
is there any chance of getting B_O_C running with JRuby9000? |
Just came across this project from
better_errors
. I would love to be able to use it, however we're stuck on JRuby and cannot use it since it has C extensions.I don't even know how to write a jruby compatible version or whatever, but is there any movement to support JRuby?
The text was updated successfully, but these errors were encountered: