Error when serializing base types in hierarchies
- Dominant language
- C#
- Stars
- 10.9k
- Forks
- 2.1k
- Avg merge
- 13h 56m
- Merged PRs (30d)
- 351
Description
Hello,
I am trying to run a simple TestClusterBuilder, like this:
```c#
var builder = new TestClusterBuilder();
var cluster = builder.Build();
cluster.Deploy();
```
```c#
[GenerateSerializer]
public sealed class MyIds : Collection
{
}
[GenerateSerializer]
public sealed record MyId(Guid Value)
{
}
```
and I am getting:
System.Collections.Generic.KeyNotFoundException : Could not find a base type serializer for type System.Collections.ObjectModel.Collection`1[namespace.....MyId].
Do you have any idea why this might be happening?
I tried removing the "sealed" keyword too and it didn't change anything.
Contributor guide
Research direction
Start by reproducing the failure with the TestClusterBuilder, MyIds, and MyId example in the issue. Trace the serializer handling for Collection and its base type, then verify that the cluster can build and deploy without the base type serializer KeyNotFoundException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100