ur5us has quit [Ping timeout: 244 seconds]
aryehhillman has joined #jruby
<aryehhillman> Hi — I've had a really difficult time resolving this error:
<aryehhillman> `(LoadError) load error: psych -- java.lang.NoClassDefFoundError: Could not initialize class org.jruby.ext.psych.PsychEmitter
<aryehhillman> org.jruby.embed.EvalFailedException: (LoadError) load error: psych -- java.lang.NoClassDefFoundError: Could not initialize class org.jruby.ext.psych.PsychEmitter`
<aryehhillman> Unfortunately I don't have a simple repro but have a few observations:
<aryehhillman> I am running JRubv 1.9.17 and when I run `irb` and set `GEM_PATH` on the command line and run `require 'psych'` things are great
<aryehhillman> When I add JRuby to a gradle file and use `runScriptlet` with `require 'pscyh'` (being sure to set GEM_HOME in the script just like from irb) I get the error aboe.
<aryehhillman> * above.
<aryehhillman> It doesn't look so much like a Ruby issue, per sé, as an issue with setting up environment that I'm not doing right.
<aryehhillman> If anyone has any guidance, please let me know... I'll check back later in case any one might have any ideas of how to debug.
<aryehhillman> Only mentioning the `GEM_HOME` thing as to show that `psych` is being `required` using the same search paths as IRB (i.e. same version)
ur5us has joined #jruby
aryehhillman has quit [Ping timeout: 244 seconds]
aryehhillman has joined #jruby
aryehhillman has quit [Ping timeout: 246 seconds]
<jeremyevans> headius[m]: Weird, last Sequel test on jruby-head (4 days ago) passed: https://travis-ci.org/github/jeremyevans/sequel/jobs/678220350
<jeremyevans> headius[m]: I haven't seen the failure you posted, and I'm not sure what could cause it.
aryehhillman has joined #jruby
aryehhillman has quit [Ping timeout: 246 seconds]
<headius[m]> Probably just a glitch then
<headius[m]> jeremyevans thanks!
ur5us has quit [Ping timeout: 244 seconds]
aryehhillman has joined #jruby
aryehhillman has quit [Ping timeout: 265 seconds]
shellac has joined #jruby
aryehhillman has joined #jruby
aryehhillman has quit [Ping timeout: 244 seconds]
aryehhillman has joined #jruby
aryehhillman has quit [Ping timeout: 260 seconds]
nirvdrum has joined #jruby
Antiarc has quit [Ping timeout: 256 seconds]
aryehhillman has joined #jruby
aryehhillman has quit [Ping timeout: 244 seconds]
Antiarc has joined #jruby
xardion has quit [Remote host closed the connection]
xardion has joined #jruby
aryehhillman has joined #jruby
aryehhillman has quit [Ping timeout: 260 seconds]
shellac has quit [Ping timeout: 244 seconds]
rusk has quit [Ping timeout: 256 seconds]
lanceball has quit [*.net *.split]
ang-st has quit [*.net *.split]
aryehhillman has joined #jruby
lanceball has joined #jruby
ang-st has joined #jruby
lanceball has quit [*.net *.split]
ang-st has quit [*.net *.split]
lanceball has joined #jruby
ang-st has joined #jruby
aryehhillman has quit [Ping timeout: 256 seconds]
subbu is now known as subbu|afk
subbu|afk is now known as subbu
aryehhillman has joined #jruby
RenataFox has joined #jruby
RenataFox has quit [Client Quit]
<headius[m]> I may have cracked the module warning nut
<headius[m]> enebo: that's a template for how we can do access to these packages without triggering warnings
<headius[m]> have a look
<headius[m]> The key there is that all the core Java packages always appear to be open to the unnamed module (normal classpath) but they will still warn if you access them. I discovered that if we explicitly addOpens the warning goes away
<headius[m]> addOpens will fail if it's not actually open so that's where we fall back
ur5us has joined #jruby
aryehhillman has quit [Quit: Lost terminal]
ur5us has quit [Ping timeout: 240 seconds]
<headius[m]> kares: you probably are interested in this too
<headius[m]> I have made a PR
<headius[m]> I am generifying some of the logic so we can use it for other places where we access JDK internals
<headius[m]> this will also apply to Java integration; we should not rely on isOpen to know if we can access stuff since it lies