-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Labels
bugSomething isn't workingSomething isn't workinglib:tcgcIssues for @azure-tools/typespec-client-generator-core libraryIssues for @azure-tools/typespec-client-generator-core library
Description
Describe the bug
JS dependency version - https://github.com/Azure/azure-sdk-for-js/blob/main/eng/emitter-package.json.
JS generation failed with TCGC error and here is the spec pr - Azure/azure-rest-api-specs#35728 and here is the spec - https://github.com/Azure/azure-rest-api-specs/blob/main/specification/healthdataaiservices/HealthDataAIServices.DeidServices/main.tsp.
× Running @azure-tools/typespec-ts...
Emitter "@azure-tools/typespec-ts" crashed! This is a bug.
Please file an issue at https://github.com/Azure/autorest.typescript/issues
TypeError: Invalid value used as weak map key
at WeakMap.set (<anonymous>)
at cacheVersion (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+versioning@0.71.0_@typespec+compiler@1.1.0/node_modules/@typespec/versioning/src/versioning.ts:106:16)
at getVersions (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+versioning@0.71.0_@typespec+compiler@1.1.0/node_modules/@typespec/versioning/src/versioning.ts:159:14)
at getAvailableApiVersions (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.57.3_pillrqslu7t2kqp4xbactja574/node_modules/@azure-tools/typespec-client-generator-core/src/internal-utils.ts:260:5)
at getSdkModelPropertyTypeBase (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.57.3_pillrqslu7t2kqp4xbactja574/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:1226:23)
at getSdkModelPropertyType (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.57.3_pillrqslu7t2kqp4xbactja574/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:1377:35)
at getSdkOperationReference (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.57.3_pillrqslu7t2kqp4xbactja574/node_modules/@azure-tools/typespec-client-generator-core/src/methods.ts:633:35)
at getStatusMonitorStep (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.57.3_pillrqslu7t2kqp4xbactja574/node_modules/@azure-tools/typespec-client-generator-core/src/methods.ts:611:15)
at getServiceMethodLroMetadata (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.57.3_pillrqslu7t2kqp4xbactja574/node_modules/@azure-tools/typespec-client-generator-core/src/methods.ts:551:24)
at getSdkLroServiceMethod (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.57.3_pillrqslu7t2kqp4xbactja574/node_modules/@azure-tools/typespec-client-generator-core/src/methods.ts:495:20)
Reproduction
NA
Checklist
- Follow our Code of Conduct
- Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the TypeSpec repo
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglib:tcgcIssues for @azure-tools/typespec-client-generator-core libraryIssues for @azure-tools/typespec-client-generator-core library