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

API Center client VSCode generation disabled in 1.22.100000002 #6004

Closed
Justrebl opened this issue Jan 14, 2025 · 3 comments · Fixed by #6008
Closed

API Center client VSCode generation disabled in 1.22.100000002 #6004

Justrebl opened this issue Jan 14, 2025 · 3 comments · Fixed by #6008

Comments

@Justrebl
Copy link

What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Windows executable

Client library/SDK language

None

Describe the bug

Hello,

Kiota 1.22.10x2 VSCode extension doesn't seem to be able to generate API Client anymore from an API Center OpenAPI spec :
Image

Tested this scenario with VS Code from a project folder in Windows, and a remote connection to a WSL project.
Works fine in 1.21.x

Expected behavior

From an OpenAPI Spec definition in the VS Code API Center extension, right-click on the OpenAPI spec and click "Generate API Client".
The Kiota VSCode Extension opens and lists the available operations in the OpenAPI Spec.
After selected them, click on the double arrow option to "generate" the api client by selecting the expected language.

How to reproduce

From an OpenAPI Spec definition in the VS Code API Center extension, right-click on the OpenAPI spec and click "Generate API Client".
The Kiota VSCode Extension opens and lists the available operations in the OpenAPI Spec.

From 1.22.x
The double arrow to generate the API is grayed out and disabled.

Open API description file

It can be with any openapi spec file.

Kiota Version

1.22.100000002

Latest Kiota version known to work for scenario above?(Not required)

1.21.100000001

Known Workarounds

Rollback to a working version

Configuration

  • Windows 11 & Ubuntu 22.04 (WSL)

Debug output

Click to expand log ```
</details>


### Other information

_No response_
@Justrebl Justrebl added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jan 14, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage 🔍 in Kiota Jan 14, 2025
@baywet
Copy link
Member

baywet commented Jan 14, 2025

Hi @Justrebl ,
Thank you for using kiota and for reaching out.

If I understand correctly, the buttons are greyed out/disabled?

Does changing the selection change their status?

@baywet baywet added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Jan 14, 2025
@baywet baywet moved this from Needs Triage 🔍 to Waits for author 🔁 in Kiota Jan 14, 2025
@baywet
Copy link
Member

baywet commented Jan 14, 2025

Also, with this reproduction can you confirm:

  • whether a vs code workspace is open or not ( "FolderName" or "Search" in the search bar at the top)
  • whether a kiota workspace file is present (.kiota directory at the root)

Thanks!

@Justrebl
Copy link
Author

Hi @baywet,
Thanks for your reactivity :

Your understanding is correct, button greyed out, no option to validate the operations selection and trigger the API client creation.
No status change by updating the ops selection.

I indeed have a folder opened (same behavior with a .vscode-workspace opened) and no .kiota dir at root.

And the same setup works fine after rollback to 1.21 and following the exact same steps.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Jan 14, 2025
@thewahome thewahome added the WIP label Jan 14, 2025
@thewahome thewahome linked a pull request Jan 14, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this from Waits for author 🔁 to Done ✔️ in Kiota Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done ✔️
Development

Successfully merging a pull request may close this issue.

3 participants