Closed koenbeuk closed 1 year ago
This would be a welcome change, thanks for suggesting it, @koenbeuk. Especially now that we have a way to surface errors to the IDE (the hacky way which we're using for now is by throwing a certain diagnostic exception, but it's of course not ideal)
Fixed in #8087
Currently, when applying
[GenerateSerializer]
on a private class (nested within), no code gets generated as this class is then silently ignored by the code generator https://github.com/dotnet/orleans/blob/4a6ddcdb059f4f113998b4ee4fcb1879a9697900/src/Orleans.CodeGenerator/CodeGenerator.cs#L340Instead, I propose we generate an error as the source generator is unable to fulfill the request.
This is currently happening within the orleans framework, e.g. here: https://github.com/dotnet/orleans/blob/4a6ddcdb059f4f113998b4ee4fcb1879a9697900/src/Orleans.EventSourcing/CustomStorage/LogViewAdaptor.cs#L76