App export error

Hi,
i’ve updated an old project made with 2021.3.3 to latest gamma version 5.3.0001, and everything good so far, and never had any problem exporting it.

Now with the 5.3.0001, exporting the app i get this error.

Generating project files (this may take up to a few minutes)
VL.Harmony.MusicTheory.vl
VL.Music.MIDI.Utils.vl
VL.OSC.Manager.vl
VL.Pulsar.vl
VL.Editor.Utils.vl
VL.Pulsar.MidiMapper.EditorSimple.vl
VL.Pulsar.Editor.vl
Pulsar_App
Building projects
dotnet publish -c Release --self-contained false /clp:ErrorsOnly /nologo "D:\Projects\Pulsar_App\src\Pulsar_App\Pulsar_App.csproj"
Unable to build D:\Projects\Pulsar_App\src\Pulsar_App\Pulsar_App.csproj. Reason:
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42727,69): error CS0229: Ambiguity between 'ICollection.Count' and 'IReadOnlyCollection<T>.Count' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42728,37): error CS0019: Operator '>=' cannot be applied to operands of type 'IReadOnlyList<T>' and 'int' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42729,71): error CS0229: Ambiguity between 'ICollection.Count' and 'IReadOnlyCollection<T>.Count' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42730,38): error CS0019: Operator '>=' cannot be applied to operands of type 'IReadOnlyList<T>' and 'int' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42733,69): error CS0019: Operator '>' cannot be applied to operands of type 'IReadOnlyList<T>' and 'int' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42733,99): error CS0019: Operator '%' cannot be applied to operands of type 'int' and 'IReadOnlyList<T>' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42734,73): error CS0019: Operator '>' cannot be applied to operands of type 'IReadOnlyList<T>' and 'int' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]
D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.cs(42734,105): error CS0019: Operator '%' cannot be applied to operands of type 'int' and 'IReadOnlyList<T>' [D:\Projects\Pulsar_App\src\VL.Pulsar.vl\VL.Pulsar.vl.csproj]

----
There was a problem exporting your Application.
Please report the problem by clicking "Copy To Clipboard" to copy the above details to your clipboard and pasting it to us via forum or chat.

You’ll need to send us some patch to reproduce on our end. You can try to open that generated cs file with a text editor and navigate to those lines the c# compiler complains about. That should give you somewhat of an idea what patch it is - look a few lines above, you should be able to find some names you recognise. Once you know what patch it is it should be easier to isolate.

Lines from 42727 to 42734

                var __auto_Count_6 = (n13.IReadOnlyList<T>)Input_In.Count;
                var __safeGuard_7 = __auto_Count_6 >= Output_4;
                var __auto_Count_9 = (n13.IReadOnlyList<T>)Input_2_In.Count;
                var __safeGuard_10 = __auto_Count_9 >= Output_4;
                for (var i_5 = 0; i_5 < Output_4; i_5++)
                {
                    var splicer_8 = __safeGuard_7 ? Input_In[i_5] : __auto_Count_6 > 0 ? Input_In[i_5 % __auto_Count_6] : default(T);
                    var splicer_11 = __safeGuard_10 ? Input_2_In[i_5] : __auto_Count_9 > 0 ? Input_2_In[i_5 % __auto_Count_9] : default(T);

Fixed one of the errors, there was a problem calculating the spreadmax of a IReadOnly list.
Now i get a new error.

Generating project files (this may take up to a few minutes)
VL.Harmony.MusicTheory.vl
VL.Music.MIDI.Utils.vl
VL.OSC.Manager.vl
VL.Pulsar.vl
VL.Editor.Utils.vl
VL.Pulsar.MidiMapper.EditorSimple.vl
VL.Pulsar.Editor.vl
Pulsar_App
Building projects
dotnet publish -c Release --self-contained false /clp:ErrorsOnly /nologo "D:\Projects\Pulsar_App\src\Pulsar_App\Pulsar_App.csproj"
Unable to build D:\Projects\Pulsar_App\src\Pulsar_App\Pulsar_App.csproj. Reason:
D:\Projects\Pulsar_App\src\VL.Pulsar.Editor.vl\VL.Pulsar.Editor.vl.cs(64855,29): error CS1503: Argument 1: cannot convert from 'System.Collections.Generic.IReadOnlyDictionary<string, object>' to 'VL.Lib.Collections.Spread<float>' [D:\Projects\Pulsar_App\src\VL.Pulsar.Editor.vl\VL.Pulsar.Editor.vl.csproj]

----
There was a problem exporting your Application.
Please report the problem by clicking "Copy To Clipboard" to copy the above details to your clipboard and pasting it to us via forum or chat.

Both errors should be fixed in latest preview.

1 Like