-
Notifications
You must be signed in to change notification settings - Fork 284
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
Logspew when building #1364
Comments
Hi @ptarjan, long time! I am 95% sure that all but:
are due to bazel and not related to these rules. But the warning on deprecation should indeed not just print to screen I think. That said if you want to be unblocked scala 2.12 and 2.13 allows configuring warnings: so, you silence on your end by passing the right args to the compiler in the toolchain setup I believe. If you are using scala 2.11 you can do more work (turn on a compiler plugin): https://github.com/ghik/silencer I agree that the "right" solution is for that not to be sent back, but I'm not 100% sure it will be easy. Maybe we just throw away the compiler output, or make it one of the build outputs, in the success case, but in the failure case send all the stdout and stderr back to bazel? I haven't thought too much about it, just thinking off the cuff now. (note: I handed over maintenance of these rules to others 2 years ago, I'm just answering to try to be helpful since I recognized your name). |
relevant bazel thread: bazelbuild/bazel#4867 points to: https://docs.bazel.build/versions/main/command-line-reference.html#flag--ui_event_filters |
@johnynek Thanks Oscar. Indeed, long time, hope you're doing well. Thanks for answering, it was lovely to see your name again. I'm happy to wait to see if the current maintainer can help me out here. I'll look at passing those command flags to Your suggestion is exactly the approach they went with in |
Hi @ptarjan registered scala_toolchain is used to compile |
We do use a custom I'l update the rules to current |
We currently use |
The other source of deprecation-related log spam is from the scalapb aspect compilation itself. Scalapb creates files which simultaneously "produce code marked Alas, there's not a way to add silencing lint suppression via scalacopts to the aspect currently. Thoughts on either making this cusomizable, or outright suppressing deprecation warnings here directly? |
bazel
commands shouldn't print anything on success. Can you suppress or fix these warnings please?The text was updated successfully, but these errors were encountered: