-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Added more verbose error message when calling method using reflection and target type does not match passed type #98129
Added more verbose error message when calling method using reflection and target type does not match passed type #98129
Conversation
… and target type does not match passed type (fixes dotnet#97022)
Tagging subscribers to this area: @dotnet/area-system-reflection Issue DetailsAdded more verbose error message when calling method using reflection and target type does not match passed type (fixes #97022)
|
This fails on Linux but passes locally for me? I'm guessing I missed something somewhere because the test results I found are still showing the original error message. Hoping someone can offer me a pointer on what I missed. Thanks https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-98129-merge-bd36d088b19a4bdcad/System.Reflection.Tests/1/console.faa125c0.log?helixlogtype=result |
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
…thub.com:AndyBevan/runtime into issue-97022-reflection-error-reporting
Thanks @danmoseley for your PR review - I've now fixed the test failure. I did have a few questions related to working on the dotnet runtime in the related issue - #97022 (comment) - if you had time to help with answers that would be fantastic and it would help my understanding of how things fit together. |
…lection-error-reporting
…thub.com:AndyBevan/runtime into issue-97022-reflection-error-reporting
Hi @AndyBevan this isn't my code area. @steveharter is it possible for you to give @AndyBevan the necessary pointers and help get this signed off? |
src/libraries/System.Runtime/tests/System.Reflection.Tests/DefaultBinderTests.cs
Outdated
Show resolved
Hide resolved
…lection-error-reporting
…thub.com:AndyBevan/runtime into issue-97022-reflection-error-reporting
… method is invoked using reflection, inline with other PR changes
I think everything is now resolved and tests now pass. @danmoseley / @buyaa-n - would one of you be able to point me to instructions on how I would run the AOT version of the tests locally - ideally so I can debug them in Visual Studio - I had to make a lucky guess on the AOT version as I couldn't test it locally. I looked at what helix logs and I don't see a way to runt his locally |
Tests did not run on CI because the branch was needed to be merged with latest, I clicked the merge button, now we will see if test fails
I have never run tests on AOT, according to the doc seems its need to be build with |
Thanks so much @buyaa-n for doing that, also thanks for explaining to me how to run those AOT tests, this is a new area for me. Is there a way to run the AOT tests through visual studio? Also - the tests seemed to fail for some javascript related problems. I'll update the branch with the latest from main and see if they pass on a second run. |
Do not know for sure, do might help: https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/debugging.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT, thank you!
Failures unrelated and known
thanks @AndyBevan ! |
Added more verbose error message when calling method using reflection and target type does not match passed type (fixes #97022)