Skip to content
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

Drop -Ywarn-unused:privates for 2.12 #250

Open
majk-p opened this issue Jan 10, 2025 · 0 comments
Open

Drop -Ywarn-unused:privates for 2.12 #250

majk-p opened this issue Jan 10, 2025 · 0 comments

Comments

@majk-p
Copy link

majk-p commented Jan 10, 2025

When working with an sbt plugin with sbt-tpolecat I came across an issue caused by -Ywarn-unused:privates. It produces false positives in some cases. Combined with fatal warnings this breaks my build for no reason. Run following gist with scala-cli (or latest scala) for reproduction: https://gist.github.com/majk-p/9d6dfffce77688c835ddd148fcc3af77

It's caused by a bug in Scala 2.12 discussed scala/bug#9294 and as stated by the maintainers it won't be fixed.

I'd like to suggest not including this flag for 2.12 sbt modules to avoid confusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant