inky icon indicating copy to clipboard operation
inky copied to clipboard

Expect Ink to fail with error when there is no END, but inky fails silently.

Open jakesee opened this issue 6 months ago • 1 comments

Inky version: 0.15.1 ink version: 1.2.0 inkjs version: 2.2.3

Steps to reproduce:

Step 1: Start with this simple start knot

-> start
=== start ===
We have started
-> END

Step 2: Add a gather

-> start
=== start ===
We have started
- -> start
-> END

Step 3: Remove the END

-> start
=== start ===
We have started
- -> start

Issue: Somewhere between step 2 and 3, user expects infinite loop warning, but Inky fails silently. Subsequent changes to the Ink yields undefined Inky error state. Seem Inky becomes confused.

jakesee avatar Jun 30 '25 04:06 jakesee

inky does not contain any infinite loop checking. you have to avoid making them.

Should one arise, the player will stop rendering output and inky may start to chug, but compilation still continues, so you can break the loop either by deleting the cause of it, or inserting a compiler error. The most efficient way to do that is to type a single ~ on a blank line: this will fail compilation, break the loop, and inky will become fully responsive again.

joningold avatar Jun 30 '25 06:06 joningold