-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
GetMethodFromStackframe fix (and .gitignore update) #598
Conversation
Why are the rather large changes to |
They are not, it's just latest template from dotnet cli. It at least adds files for JetBrains IDEs (I mostly use Rider for .net). I can remove it |
So I played around with the change a bit but I am confused. What is the purpose of this change. Submitting a PR with no context usually only works for trivial changes but this areas is unexpectedly complicated due to how Mono works and the interactions around stacktraces. The risk of breaking things is high. |
Fair The problem was that Also, and I only noticed this now, // Basically, my question is what is the point of
it should be exactly |
I started reviewing your PR and created this branch. I think I cleaned up what is confusing. You can have a look at my changes - they explain it better than I could with words: https://github.com/pardeike/Harmony/tree/fix/get-method-from-stackframe Note the complexity that supporting Mono infers. A stacktrace there does not contain any MethodInfo if the frame is a dynamic method (a replacement). |
Sorry, I am going to reject this PR mainly because my own branch has a more clean design and fixes things that this does not address. |
No description provided.