Skip to content
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

Updating JRuby from 1.7.4 #5152

Closed
pdhimal1 opened this issue Apr 27, 2018 · 6 comments
Closed

Updating JRuby from 1.7.4 #5152

pdhimal1 opened this issue Apr 27, 2018 · 6 comments

Comments

@pdhimal1
Copy link

We are stuck in the past, 1.7.4 to be specific. When we tried to update to the newer versions on JRuby we get compile errors:
TextAreaReadline cannot be resolved to a type.

This is more of a question then an issue. I couldn't find any documentations or forum out there that answers my question. Was the class renamed, moved, or replaced by another class?

Appreciate your support.
Thanks,
Prakash

@headius
Copy link
Member

headius commented Apr 27, 2018

TextAreaReadline was dependent on the implementation of our readline library, and as such it was pulled out to a separate jar file, lib/ruby/stdlib/readline.jar, with its jline dependency under lib/ruby/stdlib/jline/jline//jline-.jar.

If you are compiling directly against that class we'll have to figure out a way to make it available to you, perhaps by pushing a maven artifact for the JRuby readline jar (cc @mkristian). May I ask what you are using TextAreaReadline for?

@headius headius added this to the JRuby 9.2.0.0 milestone Apr 27, 2018
@mkristian
Copy link
Member

yes, we can publish the old readline jar as jruby-readline.jar or so if this helps.

@pdhimal1 not clear to which version of jruby you are trying to upgrade ?

@pdhimal1
Copy link
Author

@headius @mkristian thank you both for quick replies.

Tab completion does not work with our current version 1.7.4. Shooting for 1.7.27 if the update is smooth. Any version that supports tab completion will be fine.

If you can publish the old readline jar as jruby-readline.jar, that will be great!

Let me know of any updates.

//Prakash

@pdhimal1
Copy link
Author

According to this https://stackoverflow.com/questions/13381560/how-to-enable-irb-tab-completion-in-jruby, tab complete stopped working with 1.7.0?

Is there a way to fix tab complete in 1.7.4? This will the easiest way to fix my problem for the moment. I would still like to be able to update though.

Thanks,
Prakash

@mkristian
Copy link
Member

@pdhimal1 you could try jruby-1.7.27 and install one of the older jruby-readline gems from here: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22rubygems%22%20AND%20a%3A%22jruby-readline%22
but I can not tell you where and if the tab-completion works with any of these

@pdhimal1
Copy link
Author

@mkristian thank you for the solution. I will close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants