Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TCGC error on easm commit=11dd0dbfb9bec989f3a9a3536ae526407ff17c78 #626

Closed
4 tasks done
weidongxu-microsoft opened this issue Apr 8, 2024 · 2 comments
Closed
4 tasks done
Assignees
Labels
bug Something isn't working lib:tcgc Issues for @azure-tools/typespec-client-generator-core library needs-area

Comments

@weidongxu-microsoft
Copy link
Member

Describe the bug

TCGC version 0.41.0
https://github.com/Azure/azure-sdk-for-java/blob/73e05c8ddef09dd15e6904236ed02cd63d0d4baa/eng/emitter-package.json#L13

Error message

Error: Can't find corresponding parameter for dataConnectionData out of apiVersion, name, content, frequency, frequencyOffset
    at getCorrespondingMethodParams (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/http.js:318:15)
    at getSdkHttpParameters (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/http.js:75:54)
    at getSdkHttpOperation (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/http.js:12:41)
    at getSdkServiceOperation (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/package.js:17:51)
    at getSdkBasicServiceMethod (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/package.js:137:47)
    at getSdkServiceMethod (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/package.js:170:12)
    at getSdkMethods (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/package.js:242:38)
    at createSdkClientType (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/package.js:350:38)
    at getSdkPackage (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/package.js:372:9)
    at createSdkContext (file:///C:/github/azure-sdk-for-java/sdk/easm/azure-analytics-defender-easm/TempTypeSpecFiles/Easm/node_modules/@azure-tools/typespec-client-generator-core/dist/src/decorators.js:402:42)

Reproduction

https://github.com/Azure/azure-sdk-for-java/blob/73e05c8ddef09dd15e6904236ed02cd63d0d4baa/sdk/easm/azure-analytics-defender-easm/tsp-location.yaml

Run tsp-client update in that folder.

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.
@weidongxu-microsoft weidongxu-microsoft added the bug Something isn't working label Apr 8, 2024
@weidongxu-microsoft weidongxu-microsoft added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Apr 8, 2024
@weidongxu-microsoft
Copy link
Member Author

weidongxu-microsoft commented Apr 8, 2024

The error would disappear if I use latest spec commit (20e26266be77e6da4321259fb79e51e8281e48b2). -- However, I cannot directly upgrade to that, as it includes typespec changes that breaks current Java SDK. Azure/azure-rest-api-specs@690baad

@tadelesh
Copy link
Member

tadelesh commented Apr 9, 2024

resolved by: #630

@tadelesh tadelesh closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lib:tcgc Issues for @azure-tools/typespec-client-generator-core library needs-area
Projects
None yet
Development

No branches or pull requests

2 participants