-
Notifications
You must be signed in to change notification settings - Fork 222
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
Kiota 1.5.1 fails to generate client (but 1.4.0 could) #3214
Comments
Thanks for your interest in kiota and for reporting this. Also the URL of the description (to use as argument is) |
Perfect! Can confirm it works again with |
OK - If I generate the client, using the following command:
I get the following issues: Firecracker.Management.Models.MachineConfiguration has a compile error on line 29:
As the enum type is not properly referenced, because the correct namespace / alias is missing. Firecracker.Management.FirecrackerManagementClient has a missing using statement `ApiClientBuilder.RegisterDefaultSerializer(); I have the following nuget packages installed:
|
Thanks for the additional information. Have you tried to run |
Thanks! If I had my reading glasses on, I would have seen the HINT recommending running that command - although from a UX perspective I don't understand: a) why we don't get a Although this scenario was a bit of a gotcha as the Microsoft.Kiota.Serialization.Multipart package was a new dependency, as I re-generated into a project I created with v1.4.0 Enum - I think it's a different problem than #3228 and I'll raise another issue. |
Done: #3233 |
Not touching the project files is a design decision. Projects are structured in really different ways, there can be multiple project management tech for any language (e.g. gradle and maven for java), lots of project management tech don't have a CLI or object model to edit dependencies (gradle or maven), versioning is also a constraint.... And you might want different dependencies (eg different authentication provider) As for showing the dependencies right away, we might consider it. I think the thinking was one command for one thing, and also generate can produce a lot of logs, so having a separate command seemed like better UX. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
1 similar comment
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
closing since the initial bug was already addressed and we can follow up on a different issue for the dependencies aspect. |
Hi,
In July I did a spike to use Kiota v1.4.0 to generate a C# client for Firecracker micro-vm management API swagger definition
via
kiota generate -l CSharp -c FireClient -n Firecracker.Client -d "c:\temp\firecracker\firecracker.yaml" -o "c:\temp\firecracker\client"
and it worked, but generated the following warning:
I've just upgraded to the latest version of Kiota (v1.5.1) and now the client fails to generate, with the following message:
The text was updated successfully, but these errors were encountered: