Page MenuHomeFeedback Tracker

Broken command "waitUntil"
Closed, ResolvedPublic

Description

As the title says, the "waitUntil" command is no longer functioning
correctly, I believe the issue came in after the last update a couple
of days ago and I hope this can be resolved soon,

Thanks.

Details

Legacy ID
3867307657
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Go into the editor and in the debug console type the following:
waitUntil{false}; hint "Hello World";

The result will be a hint box popping up with the
text "Hello World", and you will also get the following
message in your RPT file:

Suspending not allowed in this context
Error in expression <waitUntil{false}; hint "Hello World";>

Error position: <false};  hint "Hello World";>
Error Generic error in expression

Event Timeline

jacob88 edited Steps To Reproduce. (Show Details)Aug 24 2014, 1:09 PM
jacob88 edited Additional Information. (Show Details)
jacob88 set Category to Scripting.
jacob88 set Reproducibility to Always.
jacob88 set Severity to None.
jacob88 set Resolution to No Bug.
jacob88 set Legacy ID to 3867307657.May 7 2016, 7:18 PM
jacob88 added a subscriber: jacob88.

I was just looking for a temporary workaround for this issue
and I discovered that the "while" command seems to be having
some similar trouble, its some fairly odd behavior.

Waituntil needs to be executed in scheduled environment, which debug console execution field is not. Use spawn for that matter from debug console:

  • spawn {t = time + 3; waitUntil {time > t}; hint "Alright!"};