I’ve been holding off posting this bug for a while because it seems to occur (and resolve) at random, but it has really become quite a problem.
Our main project originally had a script package called ‘shared’, but after an update this ‘shared’ package became part of a new parent project (global) and our main project automatically became a child of global.
Our main project has a script package called ‘project’. This package has a handful of scripts, some of which make calls to functions defined in the ‘shared’ package. All our scripts seem to be working except one called ‘webservice’.
Steps to reproduce the error:
- some kind of project restart has to be done, not sure exactly what yet
- onClick of a button calls project.webservice.test(), which simply calls shared.logConst.LOGOUT (but this could be shared.<any_script>.<any_function_or_constant>). This gives the error.
- some kind of change has to be done. yesterday we copied ‘webservice’ to a new script, deleted ‘webservice’, and renamed the new script to be ‘webservice’, which worked. Today the same error occurred so we duplicated the project.webservice.test() function to project.videsDbFunctions.test(). videsDbFunctions already makes references to ‘shared’ without error so we expected this test to pass as well which it did BUT this also caused project.webservice.test() to start working. After reverting the change (ie removing test() from videsDbFunctions), webservice.test() still ran without errors.
Restarting the Designer did not bring the error back.
Restarting the Gateway did not bring the error back.
However, much like yesterday and many times before, I’m sure that at some point the error will reoccur.