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

[release/6.0] Provide locations for src-gen diagnostic output #61614

Merged
merged 3 commits into from Nov 16, 2021

Conversation

layomia
Copy link
Contributor

@layomia layomia commented Nov 15, 2021

Backport of #61430 to release/6.0

Customer Impact

Provides locations for diagnostics emitted by the JSON source generator to allow users to navigate to warning/error sites in VS and view them in the command line. Lack of this support was reported in #60314.

Regression

Not a regression but regarded as an important enhancement for users of the source generator.

Testing

There are tests for the locations of the emitted diagnostics included.

Risk

Low, there are defensive checks to insure we don't leak exceptions while trying to fetch the locations from Roslyn metadata.

@layomia layomia added this to the 6.0.0 milestone Nov 15, 2021
@layomia layomia self-assigned this Nov 15, 2021
@ghost
Copy link

ghost commented Nov 15, 2021

Tagging subscribers to this area: @dotnet/area-system-text-json
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #61430 to release/6.0

Customer Impact

Provides locations for diagnostics emitted by the JSON source generator to allow users to navigate to warning/error cites in VS and view them in the command line. Lack of this support was reported by a customer in #60314.

Regression

Not a regression but regarded as an important enhancement for users of the source generator.

Testing

There are tests for the locations of the emitted diagnostics included.

Risk

Low, there are defensive checks to insure we don't leak exceptions while trying to fetch the locations from Roslyn metadata.

Author: layomia
Assignees: layomia
Labels:

area-System.Text.Json

Milestone: 6.0.0

@layomia layomia added the Servicing-consider Issue for next servicing release review label Nov 15, 2021
@layomia layomia added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 16, 2021
@layomia
Copy link
Contributor Author

layomia commented Nov 16, 2021

Approved by Tactics via email.

@Anipik Anipik merged commit fd61aef into dotnet:release/6.0 Nov 16, 2021
@mmitche
Copy link
Member

mmitche commented Nov 16, 2021

@ericstj
Copy link
Member

ericstj commented Nov 17, 2021

@safern knows about this failure. It's actually due to the 6.0 SDK update. I believe it should be fixed with #61697

@safern
Copy link
Member

safern commented Nov 17, 2021

Yes it should be fixed by: #61697

@layomia layomia deleted the Diagnostics6.0 branch November 18, 2021 20:30
@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants