Hello, we’ve been using the current beta of Unity but have found any version after 2022.1.0b6 throws the following error when reimporting after switching versions.
Library\PackageCache\com.unity.jobs@0.7.0-preview.17\Unity.Jobs\IJobParallelForDefer.cs(77,85): error CS8377: The type ‘U’ must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter ‘T’ in the generic type or method ‘NativeList’
I’ve attached a copy of my manifest if that helps narrow anything down.
Same issue here, when attempting to upgrade from Unity 2021.3.0f1 to either 2021.3.1f1 or 2021.3.2f1:
Library\PackageCache\com.unity.jobs@0.7.0-preview.17\Unity.Jobs\IJobParallelForDefer.cs(77,85): error CS8377: The type 'U' must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter 'T' in the generic type or method 'NativeList<T>'
Unfortunately users won’t be able to find the Jobs package using the Package Manager unless they click on Project Settings → Package Manager → Show Dependencies (this wasn’t enabled by default for me). Even after selecting Show Dependencies the latest Jobs package available for me is 0-50.0-preview9. Before I go installing that version, @LeonhardP can you (or someone else at Unity) please confirm that 0-50.0-preview9 will fix the issue?
I’m facing this issue too after attempting to update to the newest unity version from the previous one. No clue how to even update this jobs stuff - let alone find it in the package manager. The show dependencies hint left by kayroice (thanks kayroice) unfortunately doesn’t show it.