Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Module dependencies cause runtime exceptions. #258

Closed
johnholliday opened this issue May 22, 2024 · 8 comments
Closed

Module dependencies cause runtime exceptions. #258

johnholliday opened this issue May 22, 2024 · 8 comments
Assignees
Labels
bug Something isn't working Status: No Recent Activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience

Comments

@johnholliday
Copy link

          Thanks for the quick fix attempt.  Unfortunately the real issue appears to be that there is no consistency in the dependencies between the various Kiota modules, which should all be aligned.  It is currently not possible to find a working combination of required modules that do not fail at runtime.

NOTE: I am building a class library that uses a relatively simple (at the moment) API. Happy to entertain a reliable work-around if one exists.

Fail: Could not load file or assembly 'Microsoft.Kiota.Abstractions, Version=1.8.3.0...

NOTE: Cannot link to version 1.8.3 because of required dependencies on 1.8.4

Serialization.Text (1.1.5) => Abstractions >= 1.8.4
Serialization.Multipart (1.1.4) => Abstractions >= 1.8.4
Serialization.Json (1.2.3) => Abstractions >= 1.8.4
Serialization.Form (1.1.6) => Abstractions >= 1.8.4
Http.HttpClientLibrary (1.4.1) => Abstractions >= 1.8.3
Authentication.Azure (1.1.5) => Abstractions >= 1.8.3

Fail: Could not load file or assembly 'Microsoft.Kiota.Abstractions, Version=1.7.11.0...

NOTE: Cannot link to version 1.7.11 because of required dependencies on 1.8.3.

Serialization.Text (1.1.4) => Abstractions >= 1.7.11
Serialization.Multipart (1.1.3) => Abstractions >= 1.7.10
Serialization.Json (1.2.1) => Abstractions >= 1.8.3
Serialization.Form (1.1.5) => Abstractions >= 1.7.11
Http.HttpClientLibrary (1.4.0) => Abstractions >= 1.8.3
Authentication.Azure (1.1.5) => Abstractions >= 1.8.3

Fail: Could not load file or assembly 'Microsoft.Kiota.Abstractions, Version=1.9.0.0...

NOTE: Cannot link to version 1.9.0 because of required dependency on 1.9.1

Serialization.Text (1.2.0) => Abstractions >= 1.9.0
Serialization.Multipart (1.1.4) => Abstractions >= 1.8.4
Serialization.Json (1.3.0) => Abstractions >= 1.9.0
Serialization.Form (1.2.0) => Abstractions >= 1.9.0
Http.HttpClientLibrary (1.4.2) => Abstractions >= 1.9.1 < 2.0.0
Authentication.Azure (1.1.5) => Abstractions >= 1.8.3

Originally posted by @johnholliday in #257 (comment)

@github-project-automation github-project-automation bot moved this to Needs Triage 🔍 in Kiota May 22, 2024
@baywet
Copy link
Member

baywet commented May 22, 2024

Thanks for the additional information.
Can you update (from the last one you've shared):

Form to 1.2.2
Json to 1.3.1
And share the results?
I believe that multipart and authentication azure probably need a patch bump and release.

@johnholliday
Copy link
Author

Fails at runtime. Cannot find Microsoft.Kiota.Abstractions, Version=1.9.0.0 (because of Microsoft.Kiota.Serialization.Text dependency on 1.9.0.0)

@baywet
Copy link
Member

baywet commented May 22, 2024

@andrueastman can you go update all the other dependencies to a range requirement on abstractions instead whenever you get a couple of minutes please?

@baywet baywet moved this from Needs Triage 🔍 to Todo 📃 in Kiota May 22, 2024
@baywet baywet added bug Something isn't working type:bug A broken experience labels May 22, 2024
@johnholliday
Copy link
Author

Any updates?

@baywet
Copy link
Member

baywet commented May 22, 2024

(Andrew is located in Kenya, we probably won't get an answer before tomorrow)

@andrueastman
Copy link
Member

@andrueastman can you go update all the other dependencies to a range requirement on abstractions instead whenever you get a couple of minutes please?

Will send a PRs to resolve these in a bit.

@baywet
Copy link
Member

baywet commented May 23, 2024

@johnholliday all dependencies have been published so they are aligned. Pulling the latest of everything should solve the issue you're facing. Let us know!

@baywet baywet added Needs: Author Feedback status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels May 23, 2024
@baywet baywet moved this from Todo 📃 to In Review 💭 in Kiota May 23, 2024

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Status: No Recent Activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience
Projects
Archived in project
Development

No branches or pull requests

4 participants