<byteit101[m]>
I'm using the org.jruby.embed.ScriptingContainer api and am wondering if there is a way to set the self variable or otherwise run in a context that isn't main, a-la binding.pry?
<enebo[m]>
This broke when we started using timeout 0.3.0. I believe the problem is that it relies on threads to get cleaned up and terminated but we just let these threads terminate on their own and although the main timeout thread is on its way out our embedding API checks and it has not completed yet.
<enebo[m]>
I believe older timeout handled this properly because it forced a #join as part of cleanup
<enebo[m]>
I made spec:compiler pass using +indy today. I cleaned something up in builder but it got indy confused. I just partially reverted back to passing null vs NullBlock to fix it.
<enebo[m]>
byteit101: could you do something like: 'my_object.instance_eval { your original code }'?
byteit101[m] has joined #jruby
distant[m] has joined #jruby
k77ch7[m] has joined #jruby
lopex[m] has joined #jruby
DylanCamilleri[m has joined #jruby
headius has joined #jruby
subbu_ has joined #jruby
razetime[m] has joined #jruby
subbu_ has quit [Client Quit]
subbu_ has joined #jruby
subbu_ has quit [Changing host]
subbu_ has joined #jruby
subbu is now known as Guest4024
Guest4024 has quit [Killed (platinum.libera.chat (Nickname regained by services))]
AndyMaleh[m] has joined #jruby
JasonLunn[m] has joined #jruby
kares[m] has joined #jruby
<byteit101[m]>
enebo: possibly, but wouldn't I have to do string concatenation and/or read the inputstream first?
<enebo[m]>
I don't know what you are doing so? I do know you can change self using instance_eval though
<byteit101[m]>
Take a peek at the context url above. It's running 3rd party code. right now there is container.runScriptlet(scriptInputStream, scriptName); I'd like to avoid concatenation to keep parser errors sane and not allow accidental escapes if you have an extra }
nilsding has joined #jruby
<byteit101[m]>
I tried to look at using bindings but I couldn't figure out a way to do so with sharing two self's ($script and $current_api, deending on source) without loosing context and the input stream being an input stream
andrea[m]1 has joined #jruby
puritylake[m] has joined #jruby
subbu has quit [Quit: Leaving]
JasonMiller[m] has joined #jruby
<JasonMiller[m]>
I'm running into an issue with jRuby 9.3 and above, that isn't happening with jRuby 9.2.21. It involves loading Java libraries for Apache ActiveMQ, and then accessing a constant defined on one of its modules.
<JasonMiller[m]>
Because it works with one version of jRuby, but not the newer ones, I think I should report this as a jRuby Github issue.
<headius>
Definitely make sure it fails in the latest 9.3.7 first