-
Notifications
You must be signed in to change notification settings - Fork 104
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
WinRTTypeWriter generator fails with NullReferenceException #1369
Comments
@manodasanW I've investigated this some more (with help from @hez2010 to create a local package from #1377 so I could also debug the generator), and think we've figured out what the problem is). The With the symbol being of type Now, of course, this is not a valid WinRT type. The reason issue is this type shouldn't have been processed at all. What's happening is that my type is implementing this However, having this attribute makes the WinRT generator treat this type as a projected type, which of course isn't valid: CsWinRT/src/Authoring/WinRT.SourceGenerator/Helper.cs Lines 180 to 184 in 1aa6f96
It seems the WinRT authoring scenario when there's also mixed classic COM interfaces is just broken (also related to #1283). Any thoughts on how to fix it? I'm thinking a possible approach could be to add a That's just an idea, I'm sure there's other possible solutions too. What do you think? |
Fixed by #1394, closing this. |
Describe the bug
It seems there's a NRE bug in the "WinRTTypeWriter" generator, at least in some scenarios.
Might be fixed already with all the changes in the AOT branch, but figured I'd report just for tracking 🙂
To Reproduce
ComputeSharp.NativeLibrary.WinRT
projectIt's failing for me both when building from VS and when trying to build with
msbuild
from a developer command prompt.Expected behavior
Project should build correctly.
Version Info
The text was updated successfully, but these errors were encountered: