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

Executing an endless loop hangs Ronin - no way to stop execution? #92

Open
AsbjornOlling opened this issue Jul 29, 2019 · 1 comment
Open

Comments

@AsbjornOlling
Copy link

The reason for this is almost always just me being dumb - but it happens (more often that I'd like to admit) that I forget to include a base-case in my recursive functions, and end up executing code equivalent to this:

(defn rec () (rec))
(rec)

This hangs ronin, and I have to force-shut it, losing whatever progress I made since last save.

This is also an issue when I run a function that takes much longer to execute than I expect (too big limits, poor algorithms, etc).

Maybe this could be fixed by implementing some kind of "halt execution" keyboard shortcut?

Of course this has an obvious workaround (save often, kill and restart Ronin whenever this happens), so it's not an issue that's critical to me - but it would be much nicer to just stop execution.

@neauoire
Copy link
Member

Honestly, I get that too, at least 5 times a day.
I'll try and add something like a halt shortcut :)

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