-
Notifications
You must be signed in to change notification settings - Fork 21
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
Wconf
/nowarn
do not work for compiler plugins
#12258
Comments
That's because the compiler plugins emit warnings in the old way, which the warning configuration system cannot see/tweak. Compiler plugins need to be adapted to call the overload of To be able to write this in a source-compatible way with all versions of the compiler API, they can use the following hacks: |
@sjrd This could be supported on the backend, too though, since |
It doesn't require a category, but it requires a |
Makes sense, |
this seems like something for which @som-snytt might have insight |
Is this issue still valid? |
@preveen-stack it would be helpful if you attempted to verify that yourself. Has kind-projector been modified to follow this advice?:
If it has been, are there still warnings coming from the plug-in that can't be suppressed, as @neko-kai's comment above seems to indicate? Are you able to reproduce that? |
reproduction steps
using Scala 2.13.4,
https://scastie.scala-lang.org/epxMf0GETwKx2sOIp9rkKA
problem
This produces a warning
Despite
nowarn
annotation filtering it. The same applies to-Wconf:msg=kind-projector:silent
expectation
Expected compiler-plugin generated warnings to also be ignored
The text was updated successfully, but these errors were encountered: