-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
IRB doesn't start on jRuby 9.1.16.0 #5104
Comments
Are you certain you're not mixing environments? We addressed this issue during 9.1.16.0 cycle, but if you have 9.1.16.0 for whatever reason picking up 9.1.15.0's gems it might still happen. |
I'm using the jruby-gradle-plugin to build an artifact jar containing jruby and all of my gems, and I blow it away and rebuild it from scratch. |
@mkristian Any idea why this would still be happening? |
Just looking at the stack trace, the only way I can see this happening if somehow jline 2.x was somehow being loaded. That's when |
@headius That's exactly what's happening. Here's a the result of running
Here it is for 9.1.15.0:
|
I tracked down the problem, not sure how to resolve it. My project uses Apache Curator 2.x, which depends on ZooKeeper 3.4.8... which depends on jline 0.9.94. Luckily, none of my code touches any parts of ZK that depend on jline (most likely command-line utilities). |
Ok, I was able to fix this by excluding jline from my runtime configuration in my build.gradle. Nothing to see here, move along! |
great this got resolved. this exactly the reason we try to get rid of jline altogether in jruby. |
Environment
jruby 9.1.16.0 (2.3.3) 2018-02-21 8f3f95a Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +indy +jit [darwin-x86_64]
Darwin heretic 14.5.0 Darwin Kernel Version 14.5.0: Mon Aug 29 21:14:16 PDT 2016; root:xnu-2782.50.6~1/RELEASE_X86_64 x86_64
(Mac OS X Yosemite)Behavior
Trying to run
irb
raises an exception:java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
, full stack trace is here: https://gist.github.com/raelik/f8e73b2ab46b46b3fcde231d4fc0cbdbThis error doesn't occur on 9.1.15.0 and prior.
The text was updated successfully, but these errors were encountered: