-
Notifications
You must be signed in to change notification settings - Fork 30
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
GRAPH-775 annotation processing fix #732
Conversation
Without closing the print writer, empty message was produced.
exception.printStackTrace(new PrintWriter(baos)); | ||
PrintWriter pw = new PrintWriter(baos); | ||
exception.printStackTrace(pw); | ||
pw.close(); |
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.
This line is responsible for not seeing the root cause error message.
I've seen this type of empty message multiple times in customer reports:
[ERROR] /Users/mwang/code/mwang/scip-java-test/src/main/java/com/imc/mwang/Foo.java:[1] error: semanticdb-javac:
🤞 going forward we'll be able to get more meaningful error reports.
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.
Very clean fix. Nice work tracking this down! 👏🏻
Closes #727
Turns out we weren't handling the unary trees at all, and they're allowed to be values in annotation parameters.
This PR adds support for them.
Test plan