You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
inky playback fails if you call an external function without a fallback #532
Given the following Ink, I expect Inky to print "We are in the start knot", but it produces "End of Story" immediately when it reaches ~ listen(...).
Does this mean we cannot use Inky to write and test when EXTERNAL functions are used?
You can. But you need to define a fallback - an inky-only version of the function (which might replicate that functions behaviour, or do nothing, depending on your needs). However, ink should report if there isn't one, rather than failing without a report.
Activity
jakesee commentedon Jun 27, 2025
Given the following Ink, I expect Inky to print "We are in the start knot", but it produces "End of Story" immediately when it reaches ~ listen(...).
Does this mean we cannot use Inky to write and test when EXTERNAL functions are used?
joningold commentedon Jun 27, 2025
You can. But you need to define a fallback - an inky-only version of the function (which might replicate that functions behaviour, or do nothing, depending on your needs). However, ink should report if there isn't one, rather than failing without a report.