-
-
Notifications
You must be signed in to change notification settings - Fork 184
Failed codegen errors now tells you what failed #942
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
base: main
Are you sure you want to change the base?
Conversation
How does this compare to the codegen improvements in 4.6.10? Not everything
is captured, but most cases are now.
…On Sat, Jul 19, 2025, 3:58 PM Lucidiac ***@***.***> wrote:
Improved codegen error messages to show which member is failing and its
type. Was getting tired of the wild goose chase to figure out what wasn't
working.
------------------------------
You can view, comment on, or merge this pull request online at:
#942
Commit Summary
- 7a331bd
<7a331bd>
Failed codegen errors now tells you what failed
File Changes
(5 files <https://github.com/FirstGearGames/FishNet/pull/942/files>)
- *A* Assets/FishNet/CodeGenerating/Helpers/GeneratorHelper.cs
<https://github.com/FirstGearGames/FishNet/pull/942/files#diff-cebcd6d09d4c6c92451c0b3cf731b25e3c14008f606a077532e32592978cbc65>
(261)
- *A* Assets/FishNet/CodeGenerating/Helpers/GeneratorHelper.cs.meta
<https://github.com/FirstGearGames/FishNet/pull/942/files#diff-4077891b7d1d26d427dc4f16d93091a2f1902668f3d2bef96522a403a380ec5b>
(18)
- *M* Assets/FishNet/CodeGenerating/Processing/ReaderProcessor.cs
<https://github.com/FirstGearGames/FishNet/pull/942/files#diff-ada7d05ba966dad818c98d3d58aa7cbc9c80e500aad4060451904f5e07e83a50>
(639)
- *M* Assets/FishNet/CodeGenerating/Processing/Rpc/RpcProcessor.cs
<https://github.com/FirstGearGames/FishNet/pull/942/files#diff-08c60423387ec76494ae04f5cacfc20fefad3eeffed05c1b8255b8809ec7226a>
(316)
- *M* Assets/FishNet/CodeGenerating/Processing/WriterProcessor.cs
<https://github.com/FirstGearGames/FishNet/pull/942/files#diff-6151f4e29edc5f121fabf789cc33f076dccfb9469ee264447416f90eeb838949>
(584)
Patch Links:
- https://github.com/FirstGearGames/FishNet/pull/942.patch
- https://github.com/FirstGearGames/FishNet/pull/942.diff
—
Reply to this email directly, view it on GitHub
<#942>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGPJC3SH4YYYWKU6H3HMD3D3JKPPJAVCNFSM6AAAAACB47CS2WVHI2DSMVQWIX3LMV43ASLTON2WKOZTGI2DKNRQGY3DSOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I was on 4.6.2 but the scripts I modified had no diffs so I assumed the feature untouched. Let me check out latest version and see if this was for nothing 😂 |
Also I think my implementation here still has some false positives but its like 90% there. Edit: Seems to be working correctly now |
Okay so I just compared against a more recent fishnet version to ensure I didn't reimplement anything but to answer your question the difference is that instead of this:
You get this, and know specifically what is failing, beyond just which type it is.
|
Can you show me your test code? I used this... using System;
using FishNet.CodeGenerating;
namespace TheNamespace
{
[IncludeSerialization]
public class SomeParentClass
{
public ItemDefinition ItemInstance;
}
public struct ItemDefinition
{
public IntPtr Pointer;
}
} And got the following on 4.6.12 (detailed logging introduced in 4.6.10).
|
Let me take a look, I was primarily testing with UnityEngine.Object types as members of a serialized class but it may not be running correctly for things serialized via the attribute. |
I know we discussed this but I do not recall what we determined entirely. Was it that yours covers some sections mine didn't? |
Improved codegen error messages to show which member is failing and its type. Was getting tired of the wild goose chase to figure out what wasn't working.