-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
Unity IL2CPP generic object wrapper code gen #964
Labels
Comments
I have the exact same issue... @AArnott Is there no way to tell Or just in general how can I create a formatter for such a generic wrapper? |
I don't maintain mpc. @neuecc would have to answer that question. |
thorgeirk11
added a commit
to thorgeirk11/MessagePack-CSharp
that referenced
this issue
Jul 20, 2020
thorgeirk11
added a commit
to thorgeirk11/MessagePack-CSharp
that referenced
this issue
Aug 4, 2020
- Added CollectGenericUnion method, which reads the union attributes on generic class definitions. - Formatter names are now created by using the MinimallyQualifiedFormat to support generic classes. e.g. AWrapper<IEnumerable<string>> would be called AWrapper_IEnumerable_string__Formatter This enables MessagePack-CSharp#964
This issue should now be fixed. @MetaCitizenOffical |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
Hello, I'm trying to use a generic object wrapper it works in the editor but during runtime it throws an error. I'm unsure if the code gen is supposed to work with generics. If not I'll have to figure out a workaround :( Thanks in advance for any help!
Error Message
MessagePack.MessagePackSerializationException: Failed to deserialize MyAssembly.MyDataModel value. ---> MessagePack.FormatterNotRegisteredException: MyAssembly.Wrapper"1[[System.Int32, System, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]] is not registered in resolver: MessagePack.Resolvers.StaticCompositeResolver
Repro steps
Called during edit mode and runtime returns null
GeneratedResolver.Instance.GetFormatter<WrapperGeneric<int>>()
The text was updated successfully, but these errors were encountered: