-
Notifications
You must be signed in to change notification settings - Fork 49
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
Disable fatal warnings on 2.12 if cross-building? #378
Comments
I think It would be nice to have a plugin to automate silencing by version, but you're silencing "parameter ... is never used". Or there are "categories" for each flavor. |
@armanbilge just to clarify: you mean sbt-typelevel |
Oh they are! I completely forgot about that 😂 now I feel silly. But ok, we still need to think about this for 0.5.x then. |
I don't use the dis- word anymore, but it would be nice to activate ALL the warnings (insert meme) all the time. Probably that will be in the form of a But maybe it must have the form of |
Oh yeah, I do think about it. But the thing is that if we'd like to switch to
Right... There's a great draft proposal in Then, if we manage to add a possibility to tune |
thanks, I'll look up |
@som-snytt it would be great if you could take a look at typelevel/scalac-options#9 |
@armanbilge is this thread related to your initial concern? |
I commented on the linked ticket that it should be trivial to use a less-trivial but trivially efficient syntax. |
Hmm this one is interesting - so just to state the actual problem clearly, the issue is that:
I guess the only solution is to add |
The solution on the I started looking at why the check for unused It seems that having unused |
@satorg has implemented Scala-version-specific |
I think scala-compat solves this problem handily. Thank you Sergey! |
At least a few Typelevel projects are affected by the changes in scala/scala#9890 (particularly those containing JS facades / Native bindings). Actually that PR improves warnings, but the problem is it is a significant divergence from 2.12. This makes cross-compiling across 2.12/2.13 with fatals enabled on both no longer possible, at least with the default sbt-typelevel-settings.
Some random ideas:
@nowarn212
,@nowarn213
, and@nowarn3
annotations to help navigate this mess./cc @satorg @DavidGregory084 my resident scalac option experts :)
The text was updated successfully, but these errors were encountered: