-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add support for non-static native functions with external references #937
Conversation
4c651b1
to
fa80979
Compare
Please test thoroughly before merging. Unit tests should cover all the scenarios, but I would recommend testing manually gRPC, CoPilot chat and syntax examples. |
caf7f97
to
2be4487
Compare
2be4487
to
98e9a67
Compare
98e9a67
to
f3012c4
Compare
"Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" pops up in CopilotChat and the KernelSyntaxExamples. Looking for a good place to add the NuGet... |
Fixing with #955 |
…icrosoft#937) ### Motivation and Context When registering local functions that reference external variables (gRPC scenario) SKFunction throws an exception because `Delegate.CreateDelegate` returns NULL. ### Description Fix the delegate type detection to support the case of non-static functions referencing external functions + Unit tests. --------- Co-authored-by: Adrian Bonar <[email protected]> Co-authored-by: Adrian Bonar (HE/HIM) <[email protected]>
…icrosoft#937) ### Motivation and Context When registering local functions that reference external variables (gRPC scenario) SKFunction throws an exception because `Delegate.CreateDelegate` returns NULL. ### Description Fix the delegate type detection to support the case of non-static functions referencing external functions + Unit tests. --------- Co-authored-by: Adrian Bonar <[email protected]> Co-authored-by: Adrian Bonar (HE/HIM) <[email protected]>
Motivation and Context
When registering local functions that reference external variables (gRPC scenario) SKFunction throws an exception because
Delegate.CreateDelegate
returns NULL.Description
Fix the delegate type detection to support the case of non-static functions referencing external functions + Unit tests.