Azure / autorest.python

Extension for AutoRest (https://github.com/Azure/autorest) that generates Python code
MIT License
76 stars 54 forks source link

[azurefleet] SDK generation fails from Typespec #2662

Closed msyyc closed 6 days ago

msyyc commented 6 days ago

Python SDK generation of https://github.com/Azure/azure-rest-api-specs/pull/29641 fails:

Error: Not supported uri
    at getType (file:///D:/dev/autorest.python/packages/typespec-python/src/types.ts:119:19)
    at emitProperty (file:///D:/dev/autorest.python/packages/typespec-python/src/types.ts:189:15)
    at emitModel (file:///D:/dev/autorest.python/packages/typespec-python/src/types.ts:231:38)
    at getType (file:///D:/dev/autorest.python/packages/typespec-python/src/types.ts:66:20)
    at emitCodeModel (file:///D:/dev/autorest.python/packages/typespec-python/src/code-model.ts:240:9)
    at Object.$onEmit [as emitFunction] (file:///D:/dev/autorest.python/packages/typespec-python/src/emitter.ts:71:21)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runEmitter (file:///D:/dev/autorest.python/node_modules/.pnpm/@typespec+compiler@0.57.0/node_modules/@typespec/compiler/src/core/program.ts:711:7)  
    at compile (file:///D:/dev/autorest.python/node_modules/.pnpm/@typespec+compiler@0.57.0/node_modules/@typespec/compiler/src/core/program.ts:275:5)     
    at compileOnce (file:///D:/dev/autorest.python/node_modules/.pnpm/@typespec+compiler@0.57.0/node_modules/@typespec/compiler/src/core/cli/actions/compile/compile.ts:65:21)