WCCOACtrl with -syntax flag does complain about some undefined Control \"native\" functions

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
ChristianGoehring
Posts:14
Joined: Fri Feb 24, 2017 9:29 am

WCCOACtrl with -syntax flag does complain about some undefined Control \"native\" functions

Post by ChristianGoehring »

Hi!

When I run the WCCOACtrl manager with the -syntax flag it seems like it does not recognize the WCCOA Control "native" functions, for example "myUiName()" etc.

For example when I call the following command (replaced project specifics with example placeholders)

Code: Select all

WCCOACtrl -loadAllCtrlLibs -log +stderr -syntax -proj ExampleProject example.ctl 2>&1
Gives the following output:

Code: Select all

WCCOACtrl    (0), 2018.07.05 14:42:25.290, CTRL, SEVERE,     72, Function not defined, example.ctl    Line: 123, shapeExists
Same happens for setValue, addSymbol, myModuleName, myPanelName, etc. but not the dp.. methods etc. Seems like those are all the functions related to UI functionality. However, I am not checking a UI file but a normal Control library (.ctl) file.

Does it need an additional flag to recognize these Control functions?

EDIT:
So the documentation states: A Control manager cannot check scripts running in a User interface
My question is: does this relate to the metnioned problems? Does the effect just include the non-found functions or are there further caveats? Otherwise one could just filter out the non-found functions with a keyword list.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: WCCOACtrl with -syntax flag does complain about some undefined Control \"native\" functions

Post by mkoller »

Yes, it's related. The CTRL manager does not know the UI-only functions.
You can run the UI manager with the -syntax flag. Check ui -help output

ChristianGoehring
Posts:14
Joined: Fri Feb 24, 2017 9:29 am

Re: WCCOACtrl with -syntax flag does complain about some undefined Control \"native\" functions

Post by ChristianGoehring »

Thanks a lot!

3 posts • Page 1 of 1