You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently updated the cli-ui gem for a project I have and I've noticed SpinGroups have stopped working when used inside of a CLI::UI::Prompt.ask block.
I'm not entirely sure which version exactly it stopped working. I'll try to do some additional testing and narrow it down if possible.
Old cli-ui version where this still worked:
1.5.1
New cli-ui version where this no longer works:
2.2.3
Minimal example to reproduce:
require'cli/ui'CLI::UI::StdoutRouter.enabledefmy_spinnerCLI::UI::SpinGroup.newdo |sg|
sg.add('pending'){ |spinner|
result={'message'=>'mock api result'}sleep(0.5)spinner.update_title(result['message'])}endend# Worksmy_spinner# Hangs foreverCLI::UI::Prompt.ask('What do you want to do?')do |handler|
handler.option('Watch a spinner spin'){my_spinner}end
The text was updated successfully, but these errors were encountered:
I recently updated the cli-ui gem for a project I have and I've noticed SpinGroups have stopped working when used inside of a
CLI::UI::Prompt.ask
block.I'm not entirely sure which version exactly it stopped working. I'll try to do some additional testing and narrow it down if possible.
Old cli-ui version where this still worked:
1.5.1
New cli-ui version where this no longer works:
2.2.3
Minimal example to reproduce:
The text was updated successfully, but these errors were encountered: