#FIXED: Collections package comes with compile error.

1 messages · Page 1 of 1 (latest)

terse frigate
#

Collections 2.1.4 has a critical compilation error that says this in console:

Library\PackageCache\com.unity.collections@2.1.4\Unity.Collections\UnsafeUtilityEx.cs(90,20): error CS0103: The name 'ILSupport' does not exist in the current context

My editor version is 2022.3.20. I use the latest Windows 11 Professional.
Does anyone know why this is happening? I'm sorry if this forum is wrong place to ask about it.

feral radish
#

i think your collections version is quite out of date

median lark
#

Is there a reason you're not on latest 2.4?

feral radish
#

2.3/2.4 is pre

#

but you can at least be on 2.2

median lark
feral radish
#

definitely, some people just don't like prerelease packages

terse frigate
#

2.1.4 was the latest (not preview) collections package shown in my package manager

feral radish
#

no idea why 2.2.1 doesn't show but it's a full release

terse frigate
feral radish
#

no

terse frigate
#

I’ll check package manager again

#

Thank you so much

feral radish
#

yeah it might show up there, might just have ot manually install

#

looking at the actual error though i'm a bit confused by it

#

at least in 2.4 ILSupport is a dll included with the collections package

#

hmm and looking at the version you're on

#

2.1.4

#

it exists there as well

median lark
median lark
feral radish
#

yeah it doesn't seem related to version

median lark
#

Even not library nuke but just package cache

terse frigate
#

I installed 2.4.0-pre.2 and I’m going to delete library and restart everything

feral radish
#

could be an overaggressive virus scanner

median lark
#

Library\PackageCache\com.unity.collections@2.1.4 enough to remove

feral radish
#

just check if that file exists

terse frigate
feral radish
#

so that wont actually help

#

packages download to a cache in the appdata folder

#

and your project just copies this in

#

if it's deleted/changed in that cache folder

#

it will affect all projects

terse frigate
#

Ok I’ll try removing cache in appdata

median lark
#

Not remove - exclude from virus scanner )

terse frigate
#

Already excluded

#

@feral radish @median lark
I fixed it by installing latest collections package, deleting Library folder, package cache in AppData and restarting editor.
Thank you for replies.