Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.
Original prompt
This section details on the original issue you should resolve
<issue_title>[area-Tools-ILLink]: The given key 'Maui.Health.Services.HealthService/d__17`1' was not present in the dictionary</issue_title>
<issue_description>### Description
When publishing a .NET MAUI iOS app in Release (trimming enabled by default for iOS publish), ILLink crashes with an internal exception (IL1012)
The crash is a KeyNotFoundException for a compiler-generated async state machine type of a generic method:
Maui.Health.Services.HealthService/<GetHealthDataAsync>d__12\1`The problem is in the Maui.Health dependency
Related to:
Reproduction Steps
Kebechet.Maui.Healthversion2.0.0(or any version that contains the same public generic async method shape).For some reason even local publish worked but it was still crashing in the pipeline
Expected behavior
Pipeline should succeed and the liner should crash on analysis of:
public async partial Task<List<TDto>> GetHealthData<TDto>(HealthTimeRange timeRange, CancellationToken cancellationToken)and
public async partial Task<bool> WriteHealthData<TDto>(TDto data, CancellationToken cancellationToken) where TDto : HealthMetricBaseActual behavior
The linker crashes with