Search Issue Tracker
Won't Fix
Won't Fix in 6000.6.X
Votes
0
Found in
6000.0.67f1
6000.3.8f1
6000.4.0b8
6000.5.0a7
6000.6.0a1
Issue ID
UUM-134976
Regression
No
The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code
Reproduction steps:
1. Open the attached “IN-129952“ project
2. Open the Test Runner (Window > General > Test Runner)
3. Try to run the ValueDictionaryTests.CanSerialize test
4. Observe the test results
Actual result: The test runs and fails
Expected result: The code does not compile and the test can’t be ran
Reproducible with: 6000.0.68f1, 6000.3.10f1, 6000.4.0b10, 6000.5.0a7
Couldn’t test with: 2023.1.0a5 (Invalid dependencies for custom packages)
Reproducible on: Windows 11 (by reporter), macOS 26.3
Not reproducible on: No other environments tested
Note: This issue reproduces only with generic classes, with regular classes the errors are printed in the Console and prevent compilation
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Component Glyphs value is truncated and Ligature Table glyph fields become inaccessible when increasing the Component Glyphs count
- There is no “Overwrite Preset?” popup when saving a Customizable Toolbar preset with a name that already exists
- Customizable Toolbar preset does not switch to the Unity Default Preset when Reverting All Saved Presets or deleting the active Preset
- [Usability] Selected node gets unselected when undoing changes in the Graph Inspector Node Settings tab
- Search Default option for Column Format does not reset the column's format
Resolution Note:
The issue appears to stem from the source generator producing empty output, resulting in no generated code being included in the final assembly. Since the generator executes but does not emit valid content, the compiler behaves as expected and no fix is required on our side.
Resolution Note (6000.6.X):
The issue appears to stem from the source generator producing empty output, resulting in no generated code being included in the final assembly. Since the generator executes but does not emit valid content, the compiler behaves as expected and no fix is required on our side.