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 path parameters missing #1905

Closed
4 tasks done
gracewilcox opened this issue Nov 23, 2024 · 0 comments
Closed
4 tasks done

[Bug]: tcgc path parameters missing #1905

gracewilcox opened this issue Nov 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@gracewilcox
Copy link
Member

Describe the bug

Hi @tadelesh!

I'm generating Go code with typespec and running into an issue where path parameters are not generating at all. This is happening in the multiple Key Vault packages I'm trying to create. (Link to typspec project)

This issue happens with the Go emitter @azure-tools/typespec-go v0.3.2 and later, the previous version (v0.3.1) works.

I've I noticed when the go emitter calls tcgc.createSdkContext the returned sdkContext.sdkPackage.clients[0].methods[0].parameters do not contain any path parameters. Because that array is missing the path parameters, the go emitter is not generating the methods with the path parameters.

Reproduction

in bug description

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.
@gracewilcox gracewilcox added the bug Something isn't working label Nov 23, 2024
@tadelesh tadelesh self-assigned this Nov 25, 2024
@tadelesh tadelesh added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Nov 25, 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
Projects
None yet
Development

No branches or pull requests

2 participants