Skip to content

Conversation

@antonsviridov-src
Copy link
Contributor

@antonsviridov-src antonsviridov-src commented Aug 5, 2024

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

  • New snapshot test

@antonsviridov-src antonsviridov-src marked this pull request as ready for review August 6, 2024 09:10
exception.printStackTrace(new PrintWriter(baos));
PrintWriter pw = new PrintWriter(baos);
exception.printStackTrace(pw);
pw.close();
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 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.

Copy link
Contributor

@olafurpg olafurpg left a 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! 👏🏻

@antonsviridov-src antonsviridov-src merged commit 8602980 into main Aug 6, 2024
@antonsviridov-src antonsviridov-src deleted the GRAPH-775-annotation-processing-fix branch August 6, 2024 10:03
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

Successfully merging this pull request may close these issues.

error: semanticdb-javac:

3 participants