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

Ctrl-D causes infinite loop of line prompt #1227

Open
lucifer1004 opened this issue Sep 18, 2022 · 0 comments · May be fixed by #1228
Open

Ctrl-D causes infinite loop of line prompt #1227

lucifer1004 opened this issue Sep 18, 2022 · 0 comments · May be fixed by #1228

Comments

@lucifer1004
Copy link

function nonempty_line_prompt(name, msg; outs=stdout, kwargs...)
while true
val = line_prompt(name, msg; outs=outs, kwargs...)
if isempty(val)
printstyled(outs, "$(name) may not be empty!\n", color=:red)
continue
end
return val
end
end

To reproduce:

  • Run the wizard
  • Go to step 2
  • When the prompt asks you to enter a URL, press Ctrl-D
  • Infinite loop starts
lucifer1004 added a commit to lucifer1004/BinaryBuilder.jl that referenced this issue Sep 18, 2022
@lucifer1004 lucifer1004 linked a pull request Sep 18, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants