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

Fix error reporting on 2.11 #1177

Merged
merged 2 commits into from
Jan 15, 2021
Merged

Conversation

SocksDevil
Copy link
Contributor

Description

Closes #1161 . Changed how the reporter is obtained from the MainClass, since the call to getDeclaredField is obtaining the wrong reporter for scala 2.11.

Motivation

Fixes problems regarding building for scala 2.11, where the build was exiting without flagging errors, whenever the DiagnosticsReporter was used

@google-cla google-cla bot added the cla: yes label Jan 12, 2021

static {
try {
reporterField = Driver.class.getDeclaredField("reporter"); // NoSuchFieldException
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field could be maintained to get access to the ReportableMainClass implementation on our side, but I do think this would be unnecessary added complexity.

@SocksDevil
Copy link
Contributor Author

@liucijus I'm keeping this PR as draft until we close #1176 . Do let me know what you think though!

@liucijus
Copy link
Collaborator

@andrefmrocha #1176 is merged. Let's proceed with this one?

@SocksDevil
Copy link
Contributor Author

SocksDevil commented Jan 13, 2021

@andrefmrocha #1176 is merged. Let's proceed with this one?

Should be gtg! Let me know what you think

@SocksDevil SocksDevil marked this pull request as ready for review January 13, 2021 19:32
test_version.sh Outdated Show resolved Hide resolved
@liucijus
Copy link
Collaborator

@andrefmrocha can you fix #1177 (comment) from previous PR and we can merge this one

@SocksDevil
Copy link
Contributor Author

@andrefmrocha can you fix #1177 (comment) from previous PR and we can merge this one

Was precisely doing it right now 😄 !

@ittaiz ittaiz merged commit adc7214 into bazelbuild:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Diagnostics reporter exit codes
3 participants