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] unknown format #214

Closed
msyyc opened this issue Feb 4, 2024 · 2 comments
Closed

[Bug] [TCGC] unknown format #214

msyyc opened this issue Feb 4, 2024 · 2 comments
Assignees
Labels
bug Something isn't working lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@msyyc
Copy link
Member

msyyc commented Feb 4, 2024

When trying to generate Python SDK for NetworkAnalytics.Management, the following error happens:

Please file an issue at https://github.com/Azure/autorest.python/issues

Error: Unknown format arm-id
    at addFormatInfo (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:48:23)
    at getClientType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:533:17)
    at getSdkModelPropertyType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:632:24)
    at getSdkBodyModelPropertyType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:652:18)
    at addPropertiesToModelType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:681:32)
    at getSdkModel (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:382:9)
    at getClientType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:524:24)
    at getSdkModelPropertyType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:632:24)
    at getSdkBodyModelPropertyType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:652:18)
    at addPropertiesToModelType (file:///D:/dev/azure-sdk-for-python/sdk/networkanalytics/azure-mgmt-networkanalytics/TempTypeSpecFiles/NetworkAnalytics.Management/node_modules/@azure-tools/typespec-client-generator-core/dist/src/types.js:681:32)

--------------------------------------------------
Library Version                0.19.0
TypeSpec Compiler Version      0.52.0
--------------------------------------------------

I infer it is related with

@msyyc msyyc added the bug Something isn't working label Feb 4, 2024
@lirenhe lirenhe added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Feb 4, 2024
@tadelesh
Copy link
Member

tadelesh commented Feb 5, 2024

@format should not be identified with build-in types anymore. We will change this logic soon.

@tadelesh tadelesh self-assigned this Feb 6, 2024
@tadelesh
Copy link
Member

Fixed by #286.

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
Projects
None yet
Development

No branches or pull requests

3 participants