WildernessLabs / Meadow_Issues

Public repo for bugs and issues with Meadow
15 stars 0 forks source link

VS Extension suppresses linker errors #694

Open ctacke opened 1 month ago

ctacke commented 1 month ago

Following the bug repro for #693 but instead of using the CLI to build, try to deploy the app from VS 2022. With the CLI v1 extensions installed, you will get an error:

17:00:59:505    1>An error occurred during the App deployment process.
17:00:59:505    1>Error:
17:00:59:505    1>An item with the same key has already been added. 
17:00:59:505    1>Stack Trace :
17:00:59:505    1>   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
17:00:59:505    1>   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
17:00:59:505    1>   at Meadow.CLI.Core.Devices.MeadowLocalDevice.<>c__DisplayClass83_1.<<DeployApp>g__AddFile|3>d.MoveNext()

This error is a follow-on to the fact that the linker has failed but without providing any information to the VS UI. This makes it seem like the error is somewhere other than in the linker

CartBlanche commented 1 month ago

@ctacke I'll give this is try tomorrow morning.

adrianstevens commented 1 month ago

This is fixed in v2.x

CartBlanche commented 1 month ago

@adrianstevens was the fix extension side or Meadow.CLI side?