Search Issue Tracker

Fixed in pre 0.50.0

Votes

0

Found in [Package]

0.16.0-preview.21

Issue ID

1299250

Regression

No

[ECS] Meaningful error not thrown when an interpolated string is used in .WithName in a Job

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the attached project "ECS.zip"
2. Observe line 61 in "rteg.cs"

Expected results: WithName affects the output of the compilation, so it has to be something constant and it should also respect the naming conventions of C# identifiers. So a meaningful error is thrown describing this.
Actual result: "Unexpected error while post-processing lambdas in SpottingSystem:OnUpdate. Please report this error." is thrown

Reproducible with: 2019.4.17f1, 2020.1.17f1, 2020.2.1f1, 2021.1.0a10, 2021.2.0a1 (ECS 0.11.2-preview.1 - 0.16.0-preview.21)
Could not test with: 2018.4.30f1 (Errors downgrading)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.