PDA

View Full Version : StepStarted event not behaving as documented


Dave_Novak
08-03-2006, 06:38 AM
According to the documentation (see http://www.kinook.com/VBP/Manual/index.htm?scriptevents.htm), we are told “The StepStarted and StepDone events fire even if the step is skipped. Use conditional logic (VBScript syntax) like If Step.BuildStatus <> vbldStepStatSkipped Then ... to perform event logic only if the step was not skipped.”

I am handling the vbld_StepStartedProject() and I can tell you from experience that Step.BuildStatus is never vbldStepStatSkipped, even if the step is skipped. The only way I can find out if it is skipped is through the vbld_StepDoneProject event. Step.BuildStatus is correct in the StepDone event.

Here’s a snippet from my vbld_StepStartedProject() handler:

If Step.BuildStatus = vbldStepStatSkipped Then
' return now -- this step was skipped
Exit Sub
End If


Am I doing something wrong or is the documentation wrong?

kinook
08-03-2006, 01:32 PM
The documentation is wrong (the status in the started event was not indicating skipped). This issue has been addressed in the v6.2 beta by not firing the started/done events for steps that are skipped. See here for more details on the beta:
http://www.kinook.com/Forum/showthread.php?threadid=1973

Dave_Novak
08-03-2006, 05:42 PM
That is definitely the way it should be handled. I can't wait for 6.2 to be released . . . for many reasons. Any ETA until gold? I think I'll now take a look at the beta.

Thanks!

kinook
08-04-2006, 08:10 AM
Release Candidate would probably be more fitting. It's pretty solid, but we'd rather be proven wrong now than after the official release.