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

readline does not work with ruby 3.3 #270

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Nov 26, 2024

readline is making the prompt disappear when enabled, disable for now until we can get to highline 3.0+ where they switch to reline.

Unfortunately this breaks the ability for users to use the arrow keys to fix typos in prompts, but it does make the prompts visible until we have the time to get to highline 3.0+.

It's making the prompt disappear when enabled, disable for now until we can
get to highline 3.0+ where they switch to reline.
@@ -212,7 +212,6 @@ def ask_with_menu(prompt, options, default = nil, clear_screen_after = true)

def just_ask(prompt, default = nil, validate = nil, error_text = nil, klass = nil)
ask("Enter the #{prompt}: ", klass) do |q|
q.readline = true
Copy link
Member

@jrafanie jrafanie Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set it explicitly to false so we can easily update it "true" after we fix it / upgrade to newer highline

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷🏻‍♂️

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine either way.

@Fryguy Fryguy merged commit c79ac4c into ManageIQ:master Nov 27, 2024
5 of 6 checks passed
Fryguy added a commit that referenced this pull request Nov 27, 2024
Changed:
Readline does not work with ruby 3.3 [#270]
@bdunne bdunne deleted the readline_ruby33 branch November 27, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants