Git Product home page Git Product logo

Comments (6)

lauraharker avatar lauraharker commented on June 2, 2024

Could you give an example of how your file is currently formatted?

From https://github.com/google/closure-compiler/wiki/Flags-and-Options#warning-and-error-management:

A file containing warnings to suppress. Each line should be of the form
<file-name>:<line-number>? <warning-description> (default: )

The file name should match how it's reported in the compiler error message.

from closure-compiler.

bamtang-dev avatar bamtang-dev commented on June 2, 2024

Could you give an example of how your file is currently formatted?

Yes, I just tried changing the file path to exactly match the compiler output error, this is the error:

swit/js/swit/phys/PhysBody.js:9:13: WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type XYZ

I edited the name for clarity, the type doesn't exist because it is just legacy old code and this is the only warning on our code.
I'm trying now with:

swit/js/swit/B2D/B2DBody.js:9? JSC_UNRECOGNIZED_TYPE_ERROR

but I also tried pasting the whole line exactly, not luck, maybe it is just something dumb I'm missing. I'm using v20240317 version of the compiler.

from closure-compiler.

lauraharker avatar lauraharker commented on June 2, 2024

Does this work?

swit/js/swit/phys/PhysBody.js:9 Bad type annotation. Unknown type XYZ

from closure-compiler.

bamtang-dev avatar bamtang-dev commented on June 2, 2024

Does this work?

swit/js/swit/phys/PhysBody.js:9 Bad type annotation. Unknown type XYZ

No luck, I tried with (?) character also. For the record the class is more like X.Y.Z not sure if that is important.
Does this work for you? In the mean time we added an exception in our build scripts and are ignoring this warning, it was getting annoying. Thanks.

from closure-compiler.

rishipal avatar rishipal commented on June 2, 2024

Can you try pasting the warning message from JSCompiler exactly how it appears. i.e. swit/js/swit/phys/PhysBody.js:9:13: WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type XYZ

from closure-compiler.

bamtang-dev avatar bamtang-dev commented on June 2, 2024

Can you try pasting the warning message from JSCompiler exactly how it appears. i.e. swit/js/swit/phys/PhysBody.js:9:13: WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type XYZ

I remember I tried that, just in case I tried all these, none works:

swit/js/swit/B2D/B2DBody.js:9:13: WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type XYZ

swit/js/swit/B2D/B2DBody.js:9:13? WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type XYZ

swit/js/swit/B2D/B2DBody.js:9? WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type XYZ

swit/js/swit/B2D/B2DBody.js:9 WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type XYZ

swit/js/swit/B2D/B2DBody.js:9? Bad type annotation. Unknown type XYZ

from closure-compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.