-
-
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
Suppress Compiler Warnings (kernel) #4187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the cleanup!
0e8b0bd
to
5b4714f
Compare
Seems there can be some issues with Perhaps, it may make sense to make use of |
The other option is we continue to keep fatal warnings disabled on Scala 3 😕 |
I don't think it's going to help... Scala 3.0 silently ignores unused parameters along with any kind of |
5b4714f
to
80bd35b
Compare
Added more thoughts on how to overcome the compatibility issue: http4s/http4s#6300 (comment) I'm considering to take that approach, but sincerely open to discussion :) |
80bd35b
to
3fc74ea
Compare
36e7c5b
to
a706cd0
Compare
aefb660
to
dd60816
Compare
cf285b6
to
9838018
Compare
852eca7
to
4d0f9a7
Compare
9adfe9f
to
04d1541
Compare
Hi @armanbilge. I realized that warnings for Scala 2.12 for unused .. well, everything .. were suppressed entirely in sbt-typelevel:
So.. I wonder – was it made intentionally and can we assume now that the warnings regarding unused stuff will never show up for Scala 2.12? |
Oh, interesting 😅 sbt-typelevel inherited those settings from sbt-spiewak which derived them from sbt-tpolecat. So probably intentional. In any case, it's what all the builds are using now, and many were using before too, so it probably works just fine. |
That's fine... Just curious though – is it just because 2.12 is sunsetting and no one likes messing around with it? Or is it something more special... |
Here's the original commit. djspiewak/sbt-spiewak@95a45d0 |
Oh that's interesting... It was introduced even before Scala 2.13.0 was released. Seems like Daniel just didn't like that sort of warnings at all 😄 |
d2d6a03
to
92ee266
Compare
0747425
to
1783112
Compare
6389bd4
to
66188ad
Compare
@satorg I'm sorry, I haven't forgotten about this PR. The truth is I've been hesitating, because I'm weighing what I think are fairly straightforward changes here with the fact it requires putting Cats on an sbt-typelevel milestone. There are some non-trivial changes coming to sbt-typelevel and I'd rather not have to worry about accidentally breaking the Cats build (the fact that Cats Effect is stuck on the milestone is stress enough!).
In theory we could backport your scalac warning fixes to sbt-tl 0.4.x. However if you're eager to work on that what I'd actually love help with is integrating with the scalac-options library for 0.5.x. |
@armanbilge yeah, no worries. I also feel a bit hesitant about pushing this work out. Because before continuing it would be better to stabilize the build system itself.
Ah ok, I think I can help with that. Thanks. |
66188ad
to
378b310
Compare
Converted to "Draft" to put on hold until work on scalac compiler options is stabilized. |
378b310
to
0f40b93
Compare
0f40b93
to
558772c
Compare
I arrived via good first issues [sic]. I know about options on Scala 2 and somewhat on Scala 3, and I generally endorse using |
@satorg @som-snytt if there are folks motivated to work on this, I'm thinking we should just update Cats to the sbt-typelevel milestone to unblock this work. In #4187 (comment) I was worried about too many changes happening in sbt-typelevel, but besides the Laika upgrade the other objectives have been dormant, and I don't think that they are going to land in 0.5 after all. That's okay 🙁 |
@armanbilge @som-snytt if I remember correctly, there are quite a few warnings that are handled differently in different Scala versions (i.e. 2.12, 2.13, 3). And that is what we tried to address with scalac-compat. I think, it could come handy for Cats too. Are we fine with bringing it in there? |
Yes, scalac-compat has been wonderful! We are using it in Cats Effect now as well. |
scala/scala3#20536 (for reference) |
Superseded by #4614. |
This is an ongoing effort for suppressing compiler warnings that keep plaguing the project.
Suppresses the warnings in kernel* modules for all Scala versions.