Crash with IReadOnlyList PinGroup

When I have:

 public void SetIntput(
     [Pin(PinGroupKind = VL.Model.PinGroupKind.Collection, PinGroupDefaultCount = 1)]
         IReadOnlyList<float> input
 ) { }

Getting:


VL.Core.RuntimeCommandException: 'OUTDATED: o: 0(-0) p: 1(-0) testApplication
REASON: Outdated, RestoreState'

Not sure it’s a bug or missing feature… In any case have not found any PinGroupKind mentions in the The-Gray-Book

Repo
IReadOnlyListPinGroup.zip (4.4 KB)

Bonus: PinGroupKind.Dictionary also leads to same crash

Not sure maybe this even unrelated:

There are only certain types supported in combination with pin group. If you define one in the patching world we can generate proper error messages. In C# you are a bit on your own. I guess we could start thinking of an analyzer when referencing VL.Core to highlight certain pitfalls. But definitely not high up on our list.

Prolly just mentioning how-to using PinGroup section in documentation would be enough… For instance I haven’t managed to run Dictionary pin group at all like I don’t understand witch datatype I have to use in there… I mean this one of quite extensively used feature that it deserves at list mentioning in docs:

Just added a few comments about what exact types are supported to code documentation of PinAttribute class.