Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Report errors processing messages from the build host #76252

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Dec 4, 2024

Related to #75967

Previously, any errors processing messages would just cause an inifnite hang. This is updates the implementation to do two things

  1. Catch the specific string that failed to be deserialized (if any)
  2. If processing failed for any reason, report the exception to the outstanding requests and trigger disconnect.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 4, 2024
}
catch (JsonException ex)
{
var message = $"Failed to deserialize response from build host:{Environment.NewLine}{line}";
Copy link
Member Author

Choose a reason for hiding this comment

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

needed to include the specific string that failed to deserialize

@dibarbet dibarbet changed the title [WIP] Report errors processing messages from the build host Report errors processing messages from the build host Dec 4, 2024
@dibarbet dibarbet marked this pull request as ready for review December 4, 2024 00:43
@dibarbet dibarbet requested a review from a team as a code owner December 4, 2024 00:43
@CyrusNajmabadi
Copy link
Member

@jasonmalinowski ptal. Tnx

@dibarbet dibarbet merged commit 9bf65ae into dotnet:main Dec 4, 2024
25 checks passed
@dibarbet dibarbet deleted the build_host_hang branch December 4, 2024 07:33
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 4, 2024
@dibarbet dibarbet modified the milestones: Next, 17.13 P3 Jan 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants