Unfortunately, the lint and build modules of the generator have diverged 
from each other.

@lint hints, as the name implies, are only evaluated by the lint job, 
not the build jobs. You can silence the build jobs by adding a

#ignore(chrome)

compiler hint at the top of the file. This should also suffice for 
anybody using your lib.

lint, on the other hand, is a tool for developing the local library, so 
it acts on the local classes alone. That's why it doesn't know about 
external libraries.

T.

On 01/12/2011 11:13 PM, Greg Hellings wrote:
> I have been trying to suppress spurious Lint warnings from my code
> interacting with the Chrome browser plugin framework.  The
> documentation I have found on the qooxdoo website appears to be out of
> date regarding lint and its warnings.  When the code was integrated
> with my application I was able to suppress the warnings both at build
> time and while running lint by using two different commands:
>
> @lint ignoreUndefined(chrome)
> @lint ignoreGlobal(chrome.extension)
>
> However, now that I have segregated that portion of my code into a
> separate "library" those two lint directives are again being ignored
> and the code generates a warning during build and lint time.  The line
> in question reads
>> chrome.extension.sendRequest(backArgs);
> and the warning message while building says
>> Warning: Hint: Unknown global symbol referenced: chrome.extension 
>> (qxchrome.backend.Service:84)
> and during lint the lint parser cannot even resolve the external
> library, so it complains about the line
>> extend : qxchrome.backend.Service
> by saying
>> SupplierService.js (13,17): Use of undefined or global identifier 'qxchrome'.
>
> Any suggestions on how to suppress the warning during build, so that
> the contrib library does not produce warnings for someone using it?
>
> --Greg
>
> ------------------------------------------------------------------------------
> 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
>
>

------------------------------------------------------------------------------
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

Reply via email to