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

Handle diagnostics without source #2064

Closed
wants to merge 2 commits into from

Conversation

schlosna
Copy link
Contributor

@schlosna schlosna commented Jan 7, 2021

In some cases, compiler diagnostics may not have an associated source,
and for testing whether suggested fixes compile these should be treated
as originating from the same compilation unit of the suggested fix.

Fixes #1873

In some cases, compiler diagnostics may not have an associated source,
and for testing whether suggested fixes compile these should be treated
as originating from the same compilation unit of the suggested fix.
Copy link
Contributor

@Stephan202 Stephan202 left a comment

Choose a reason for hiding this comment

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

Just a suggestion :)

…ixes.java

Co-authored-by: Stephan Schroevers <stephan202@gmail.com>
@schlosna
Copy link
Contributor Author

schlosna commented Jan 7, 2021

@cushon Is there anything I need to do to trigger the merge here? From other PRs it looks like copybara-service bot typically handles this, so does this need a label or trigger?

@cushon
Copy link
Collaborator

cushon commented Jan 8, 2021

Is there anything I need to do to trigger the merge here?

I have everything I need to finish the merge. I'm just waiting for another human to look at it, and then the bot will merge it. Thanks for the fix!

@schlosna
Copy link
Contributor Author

schlosna commented Jan 8, 2021

Thanks @cushon !

@copybara-service copybara-service bot closed this in 886ed1c Jan 8, 2021
stevie400 pushed a commit to HubSpot/error-prone that referenced this pull request Jan 15, 2021
In some cases, compiler diagnostics may not have an associated source,
and for testing whether suggested fixes compile these should be treated
as originating from the same compilation unit of the suggested fix.

Fixes google#1873

Fixes google#2064

COPYBARA_INTEGRATE_REVIEW=google#2064 from schlosna:ds/1873-SuggestedFixes-NPE ddd042b
PiperOrigin-RevId: 350812718
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.

NullPointerException in SuggestedFixes.compilesWithFix
3 participants