Welcome, Hansjoerg,
> Warning: Hint: Unknown global symbol referenced: getSelectionModel
> (QXticket.Application:367)
> Warning: Hint: Unknown global symbol referenced: StatusButton
> (QXticket.Application:816)
> Warning: Hint: Unknown global symbol referenced: getSelectionModel
> (QXticket.statusview:53)
>
> For the first warning in Application.js this is the line
> getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION);
getSelectionModel is a bare reference. It's not a method on any object,
and, if our scope analysis works correctly, it's not a symbol created
with either
var getSelectionModel = function ...;
or
function getSelectionModel(...;
in the current scope chain (current function or enclosing function(s) or
top-level), right?! So it must be a top-level symbol outside the current
file, which is not picked up by the generator. Hence it warns about it
as unknown global reference. If this analysis is not correct, please let
us know. Otherwise, you can ignore the warning if you know the symbol
will be available at run time.
> Warning: No resource matched
> #asset(icon/${qx.icontheme}/16/apps/utilities-dictionary.png)
> (QXticket.Application)
> Warning: No resource matched
> #asset(icon/${qx.icontheme}/22/apps/utilities-dictionary.png)
> (QXticket.Application)
>
> In Application.js there is:
>
> #asset(icon/${qx.icontheme}/16/apps/utilities-dictionary.png)
> #asset(icon/${qx.icontheme}/22/apps/utilities-dictionary.png)
For one thing, you have to give a full resource id to the #asset hint,
and resource id's always start with a name space, like
#asset(qx/icon/...)
so you need to prepend "qx/" to your hints.
Then, if you still get these warnings, there might be a problem with
${qx.icontheme} not being expanded. "qx.icontheme" is an asset macro
that needs to be expanded. There is a default value for it if you run
default jobs or jobs that inherit from them. I would need to see your
config.json to verify this. But you can try providing a value in your
config.json, in the global "let" section add:
"QXICONTHEME" : [ "Tango" ]
which would be expanded in the #asset hints in your Application.js. But
if you plan to use only one icon theme for your app, you could just as
well hard-code it in your Application.js, like:
#asset(qx/icon/Tango/16/apps/utilities-dictionary.png)
> In other posts I have seen something like to add "Ignore" to avoid these
> warnings.
Unfortunately, this is currently only working for "generate.py lint"
runs. Normal generator runs cannot suppress these warnings.
> But is this the right way or what else can I do?
For the #asset hints, correct them and potentially your config, and you
should be fine. As for the unknown global symbols, you will have to take
up with the warnings.
T.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel