-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does --warnings_allowlist_file works? I tried many ways but no luck #4163
Comments
Could you give an example of how your file is currently formatted?
The file name should match how it's reported in the compiler error message. |
Yes, I just tried changing the file path to exactly match the compiler output error, this is the error:
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.
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. |
Does this work?
|
No luck, I tried with (?) character also. For the record the class is more like X.Y.Z not sure if that is important. |
Can you try pasting the warning message from JSCompiler exactly how it appears. i.e. |
I remember I tried that, just in case I tried all these, none works:
|
Hello,
I'm trying to use --warnings_allowlist_file to dismiss this warning type:
warning JSC_UNRECOGNIZED_TYPE_ERROR: Bad type annotation. Unknown type XYZ
I know it is reading my file because if it doesn't find the file the compiler just crash with:
java.lang.RuntimeException: java.io.FileNotFoundException: pallowlist.txt (The system cannot find the file specified)
Is the path absolute, relative?, what is the format of the line? I feel my warning is not correct or not accepted, but no error is shown
The text was updated successfully, but these errors were encountered: