Skip to content

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

@AsbjornOlling

Description

@AsbjornOlling

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions