Missing references in the Collections package

Hi,

Running Unity 2019.3.0f6 under Linux, I’m trying to import packages to try the ECS/DOTS stuff… And I’m facing an issue on the Collections package.

Here are the four errors displayed in the console :

Library/PackageCache/com.unity.collections@0.7.0-preview.2/Unity.Collections/CollectionHelper.cs(9,19): error CS0234: The type or namespace name ‘CompilerServices’ does not exist in the namespace ‘Unity.Burst’ (are you missing an assembly reference?)

Library/PackageCache/com.unity.collections@0.7.0-preview.2/Unity.Collections/NativeList.cs(8,19): error CS0234: The type or namespace name ‘CompilerServices’ does not exist in the namespace ‘Unity.Burst’ (are you missing an assembly reference?)

Library/PackageCache/com.unity.collections@0.7.0-preview.2/Unity.Collections/CollectionHelper.cs(172,18): error CS0246: The type or namespace name ‘AssumeRangeAttribute’ could not be found (are you missing a using directive or an assembly reference?)

Library/PackageCache/com.unity.collections@0.7.0-preview.2/Unity.Collections/CollectionHelper.cs(172,18): error CS0246: The type or namespace name ‘AssumeRange’ could not be found (are you missing a using directive or an assembly reference?)

I have no idea at all on how to fix these …

Here is a screenshot of the list of all the packages installed in my project. All up to date.

Please help !

5590723--577732--packages.png

1 Like

Have the same errors, Windows Entities 0.80 Unity 2019.3.5f1


You meed to update burst to i think it is 1.3 now. It has a new version if you expand it, but it doesnt show the update icon.

3 Likes

This happened to me because I was using Newtonsoft.Json.dll and it seems one of the new packages also uses it. Deleting the dll from my assets folder fixed the issue, although what was missing was Unity.UI and Unity.Entities for me

You will also need to close and open the Unity Editor after doing so, alternatively, moving the packages from Library/PackageCache to /Packages back and forth a few times might also work

That dll file isn’t present in my project subdirectories :confused:

Yes, thank you, that did it for me. Had to expand Burst → See all versions
5591164--577795--upload_2020-3-15_15-47-11.png
Update got stuck, so I had to remove Burst and reapply it, but now it works.
Last 2 DOTS updates went a little rough for me, hope they get that process running smoothly again like before.

7 Likes

GRACIAS!!! (Desde Argentina)

1 Like

Thanks a lot !

Exact same problem. Thanks!

Absolute life saver, thanks!

If you don’t want to move to a preview release of Burst, downgrading Collections is also an option. I fixed this by going back to 0.5.2. I’m not sure if that’s the latest one that works.

I’m a little bit disappointed by the package manager here. Isn’t it meant to manage dependencies for us? At the very least I would expect a clear error explaining that there’s a version mismatch, and I think the manager should probably have prompted me to download the version compatible with my Burst version by default. I assumed that it was doing that correctly, so it took me a little while to diagnose the problem.

4 Likes

In case someone else stumbles across this because NativeList etc. is not found even with the newest versions of everything:
Downgrade Collections to 0.5 and then back to the newest by clicking upgrade (still when focused on 0.5). For whatever reason that fixed it for me.

updating to Burst 1.3.0 fixed the issue for me, thanks!