Generating http\client\structure\client-operation-group
> npx tsp compile C:\Users\jorgerangel\Development\AzureSdk\azure-sdk-for-net\eng\packages\http-client-csharp\node_modules\@azure-tools\azure-http-specs\specs\client\structure\client-operation-group\client.tsp --trace @azure-typespec/http-client-csharp --emit C:\Users\jorgerangel\Development\AzureSdk\azure-sdk-for-net\eng\packages\http-client-csharp\eng/.. --option @azure-typespec/http-client-csharp.emitter-output-dir=C:\Users\jorgerangel\Development\AzureSdk\azure-sdk-for-net\eng\packages\http-client-csharp\generator\TestProjects\Spector\http\client\structure\client-operation-group --option @azure-typespec/http-client-csharp.save-inputs=true --option @azure-typespec/http-client-csharp.new-project=true
TypeSpec compiler v1.11.0
✔ Compiling
× @azure-typespec/http-client-csharp 1732ms ../generator/TestProjects/Spector/http/client/structure/client-operation-group/
Diagnostics were reported during compilation:
error @typespec/http-client-csharp/general-error: Failed to generate the library. Exit code: 1.
An item with the same key has already been added. Key: cachedGroup3
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at System.Linq.Enumerable.SpanToDictionary[TSource,TKey](ReadOnlySpan`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at Microsoft.TypeSpec.Generator.ClientModel.Providers.ClientProvider.BuildMethods()
at Microsoft.TypeSpec.Generator.SpecTypeProvider.BuildMethods()
at Microsoft.TypeSpec.Generator.Providers.TypeProvider.get_Methods()
at Microsoft.TypeSpec.Generator.ClientModel.ScmOutputLibrary.BuildClient(InputClient inputClient, HashSet`1 types)
at Microsoft.TypeSpec.Generator.ClientModel.ScmOutputLibrary.BuildClientTypes()
at Microsoft.TypeSpec.Generator.ClientModel.ScmOutputLibrary.BuildTypeProviders()
at Azure.Generator.AzureOutputLibrary.BuildTypeProviders() in C:\Users\jorgerangel\Development\AzureSdk\azure-sdk-for-net\eng\packages\http-client-csharp\generator\Azure.Generator\src\AzureOutputLibrary.cs:line 20
at Microsoft.TypeSpec.Generator.OutputLibrary.get_TypeProviders()
at Microsoft.TypeSpec.Generator.CSharpGen.ExecuteAsync()
at Microsoft.TypeSpec.Generator.GeneratorRunner.RunAsync(CommandLineOptions options)
at Microsoft.TypeSpec.Generator.Program.Run(CommandLineOptions options, GeneratorRunner runner)
Found 1 error.
With the latest tcgc bump to 0.67.0 there is now a crash in the client-operation-group spec most likely related to the breaking changes in tcgc. We should fix how we aggregate the clients following the breaking change guidance for the tcgc bump.
Stack trace: