You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emitter "@typespec/http-server-csharp" crashed! This is a bug.
Please file an issue at https://github.com/microsoft/typespec/issues
Error: Encountered type TemplateParameter which we don't know how to emit.
at compilerAssert (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/core/diagnostics.js:140:11)
at typeEmitterKey (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/emitter-framework/asset-emitter.js:619:17)
at Object.emitType (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/emitter-framework/asset-emitter.js:239:25)
at file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/emitter-framework/asset-emitter.js:161:37
at withPatchedReferenceContext (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/emitter-framework/asset-emitter.js:540:20)
at Object.emitTypeReference (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/emitter-framework/asset-emitter.js:144:20)
at #findPropertyType (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/http-server-csharp/dist/src/service.js:219:50)
at CSharpCodeEmitter.modelPropertyLiteral (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/http-server-csharp/dist/src/service.js:192:67)
at file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/emitter-framework/asset-emitter.js:377:55
at withTypeContext (file:///C:/Users/dapzhang/Documents/workspace/playground/tsp-random-project/spec/node_modules/@typespec/compiler/dist/src/emitter-framework/asset-emitter.js:520:9)
The text was updated successfully, but these errors were encountered:
I am using the petstore as spec to generate server code: https://github.com/microsoft/typespec/tree/main/packages/samples/specs/petstore
This is the stack trace of the issue:
The text was updated successfully, but these errors were encountered: