Skip to content

Drop an awaited ConfigureAwait from a call which does not bind - #175

Merged
virzak merged 2 commits into
masterfrom
fix/configureawait-unbound
Oct 6, 2026
Merged

virzak merged 2 commits into
masterfrom
fix/configureawait-unbound

Conversation

@virzak

@virzak virzak commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

await JsonSerializer.DeserializeAsync(stream, Ctx.Default.ListByte, ct).ConfigureAwait(false) kept the ConfigureAwait and did not compile (CS1929). The call cannot bind because its argument comes from another generator's output, and the removal ran off the bound symbol; it now also drops an awaited ConfigureAwait by its shape, as the Async suffix already is.

Reported from dotnet/SqlClient against 2.0.56.

Generated with Claude Code

virzak added 2 commits October 6, 2026 15:53
A call whose argument another generator supplies cannot bind, since
generators do not see each other's output, and the removal ran off the
bound symbol. Reported from dotnet/SqlClient, where the argument came
from the System.Text.Json generator.

Generated with Claude Code
@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.65%. Comparing base (da628aa) to head (003b870).

Files with missing lines Patch % Lines
...rc/Zomp.SyncMethodGenerator/AsyncToSyncRewriter.cs 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #175      +/-   ##
==========================================
- Coverage   91.67%   91.65%   -0.02%     
==========================================
  Files           6        6              
  Lines        1273     1282       +9     
  Branches      306      308       +2     
==========================================
+ Hits         1167     1175       +8     
  Misses         38       38              
- Partials       68       69       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@virzak
virzak merged commit b59dfd3 into master Oct 6, 2026
10 checks passed
@virzak
virzak deleted the fix/configureawait-unbound branch October 6, 2026 20:10
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.

1 participant