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

Update the CustomMarshallerAttributeFixer to support adding missing methods for stateless marshaller shapes #72869

Merged
merged 5 commits into from
Jul 28, 2022

Conversation

jkoritzinsky
Copy link
Member

One test is disabled against a bug in the Roslyn SDK that I found.

@jkoritzinsky jkoritzinsky added area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature labels Jul 26, 2022
@ghost ghost assigned jkoritzinsky Jul 26, 2022
@ghost
Copy link

ghost commented Jul 26, 2022

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

Issue Details

One test is disabled against a bug in the Roslyn SDK that I found.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, source-generator

Milestone: -

}

private static ITypeSymbol? GetManagedTypeInAttributeSyntax(Location locationInAttribute, INamedTypeSymbol? attributedTypeSymbol)
=> (ITypeSymbol)attributedTypeSymbol.GetAttributes().First(attr =>
Copy link
Member

Choose a reason for hiding this comment

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

Isn't attributedTypeSymbol nullable? Was this checked somewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

I need to figure out what's going on here in our infra. I feel like the nullable warnings have been suppressed for some reason. I've been getting weird stuff like this for a bit (where obvious places for warnings aren't showing up)

Copy link
Member Author

Choose a reason for hiding this comment

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

I haven't had a chance to investigate what's going on with our infrastructure. In the meantime, I've updated the nullability annotations here based on usage to be more accurate and added a comment explaining why we don't need to worry about nulls here.

@jkoritzinsky
Copy link
Member Author

TImeouts are a known issue.

@jkoritzinsky jkoritzinsky merged commit cf3bf7a into dotnet:main Jul 28, 2022
@jkoritzinsky jkoritzinsky deleted the stateless-shape-code-fix branch July 28, 2022 18:37
@ghost ghost locked as resolved and limited conversation to collaborators Aug 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime.InteropServices source-generator Indicates an issue with a source generator feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants