This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
I have recently updated to Kony Visualizer Enterprise 8.4 and run into several problems.
One of them is that a defined method isn't found any more. How could that be? What has changed this time?
—————
Update 1:
The function is defined in a file called Master.js and to ease locating loading problems I begin and end all modules with with two log statement like this:
kony.print("+ Master"); … kony.print("- Master");
Now, the logs don't show up when starting the app. This reminds me a problem I had previous. Let me check.
-----
Update 2:
The logs are back and the functions work again:
02-20 12:37:08.139 10816 10901 D StandardLib: + Main… 02-20 12:37:08.139 10816 10901 D StandardLib: 02-20 12:37:08.139 10816 10901 D StandardLib: - Main… 02-20 12:37:08.139 10816 10901 D StandardLib: 02-20 12:37:08.149 10816 10901 D StandardLib: + Master 02-20 12:37:08.149 10816 10901 D StandardLib: 02-20 12:37:08.149 10816 10901 D StandardLib: - Master 02-20 12:37:08.149 10816 10901 D StandardLib: 02-20 12:37:08.155 10816 10901 D StandardLib: + Messaging 02-20 12:37:08.155 10816 10901 D StandardLib: 02-20 12:37:08.155 10816 10901 D StandardLib: - Messaging 02-20 12:37:08.155 10816 10901 D StandardLib: 02
But why? I haven't change anything! And unreliable build system gives me really bad feelings.
—————
Update 3:
Debugging further I found another missing function.
Of course the function isn't really missing. It's there but Visualizer won't find it.
@Onuw Gwegowy There could be possible syntax errors within the modules(this is a guess as the source isn't shared). Visualizer does syntax validations before each build and logs them to Visualizer logs. so, please attach Visualizer logs if possible.
I addressed syntax errors in «Update 1» — those kony.prints are specially added to detect syntax errors. When there was a syntax error I would get the “+” log but not the “-" log. Not to mention that Master.js is actually written in typescript and any syntax error would be caught by the typescript compiler.
Also it's a migrated project. Everything worked fine on with W8 SP3 and no changes to the JavaScript files have been made. So unless you changed the javascript engine there should be no problem.
Lastly: for reasons unknown the Master.js was eventually picked up and then worked fine. Now there is at least one more JS-file missing from the app.
No, i can rule out syntax errors with confidence. There is something else.
Actually not fixed at all. It seems that the whole build system is broken and changes in then JS code are not carried into the final app. I just added a few logs to my file (and changed existing logs for good measure) but the log output doesn't change at all.