Bug: return from include script broken in batch build
Posted: Thu Dec 01, 2016 7:36 am
Tests:
This is a simple project sample (one drive): https://1drv.ms/u/s!Aow6Mhpjb5xisXrmJTSUcsAA_ROH
It contains a readme.txt with detailed informations, but I ll give some here for future readers:
I founded a very strange bug with the return from include script function.
In some conditions,the function is not fired : no value returned, and code after the function is executed.
Conditions:
The "strange" thing is it occurs only when command line build...
Bug occurs when there is nested scripts (more than one level: mainScript-script1-script2(fail)), also if you have disabled code by commenting it or with compiler var...
So the trick is to instanciate a var in the included script and call this var in parent script, and not use return with values.
I want to focus IA team on differences with IDE build and command line build, not the first time I face to it, detailed on this previous topic.
- InstallAware X5 -build 8.4.2016
- windows 10 - 1607
This is a simple project sample (one drive): https://1drv.ms/u/s!Aow6Mhpjb5xisXrmJTSUcsAA_ROH
It contains a readme.txt with detailed informations, but I ll give some here for future readers:
I founded a very strange bug with the return from include script function.
In some conditions,the function is not fired : no value returned, and code after the function is executed.
Conditions:
- Nested include scripts (more than one level)
- Build by command line (=/= build inside IDE)
The "strange" thing is it occurs only when command line build...
Bug occurs when there is nested scripts (more than one level: mainScript-script1-script2(fail)), also if you have disabled code by commenting it or with compiler var...
So the trick is to instanciate a var in the included script and call this var in parent script, and not use return with values.
I want to focus IA team on differences with IDE build and command line build, not the first time I face to it, detailed on this previous topic.