Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

0.50.1

0.51.0

Issue ID

ECSB-83

Regression

No

No error is being logged when using Lambda expression with Entities.ForEach

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the user-attached project
2. Add the Entities package to the project (Window → Package Manager → + → Add package from git URL)
3. Enter Play Mode

Expected result: “error DC0013: Entities.ForEach Lambda expression writes to captured variable ‘currentIslandIdSingleton' that is then read outside. This is only supported when you use .Run().” is thrown
Actual result: Expected error is not thrown

Reproducible with: 0.50.1-preview.2 (2020.3.38f1), 0.51.1-preview.21 (2020.3.38f1, 2021.3.8f1)
Couldn’t test with: 0.17.0-preview.42 - Deprecation of version gets hard-set to 0.50.1-preview.2

Reproduced on: macOS Monterey 12.0.1

Note: To add the Entities package, when doing step 2 in the field that shows up write “com.unity.entities”

  1. Resolution Note:

    We're only fixing 0.51 bugs in special cases - if this bug is reproducible in a supported version 1.0.0, we will address it there.

Add comment

Log in to post comment