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

impossible(?) to kill infinite loop w/ reactor #839

Open
shriram opened this issue Aug 23, 2016 · 3 comments
Open

impossible(?) to kill infinite loop w/ reactor #839

shriram opened this issue Aug 23, 2016 · 3 comments

Comments

@shriram
Copy link
Member

shriram commented Aug 23, 2016

I wrote an infinite loop of the form

fun main-loop() block:
  play-word(pick-word())
  main-loop()
end

where play-word launches a reactor w/ a to-draw. As soon as the reactor finishes, the loop kicks off a fresh reactor. I have not been able to click Stop in-between. Since the pop-up window masks the rest of the screen, while the reactor is running I can see the Stop window but not click on it.

I've tried to hover over the Stop with the mouse, his Esc, and click really soon, but have not yet succeeded. I'm really not sure what to do here other than kill my window and start again.

@jpolitz
Copy link
Member

jpolitz commented Aug 23, 2016

Hold ESC and click rapidly on Stop.

Good argument for bringing Stop above the overlay, or having ESC mean "Stop" when a big-bang window is open.

@shriram
Copy link
Member Author

shriram commented Aug 23, 2016

Okay, that did the trick. Fortunately, auto-saving had worked too…

I think it's better to bring Stop above than to have Esc mean Stop. Esc should just mean "close this window", not "kill the entire rest of the computation" (which may intentionally involve a series of world windows — imagine a multi-stage game, the user hits Esc, and the whole game stops…).

@jpolitz
Copy link
Member

jpolitz commented Aug 24, 2016

This issue I haven't fixed, and requires moving around some UI components. This was related to #841

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

2 participants