Skip to content
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

Take the method_source code we need and copy it in AppMap, to not depend on method_source or conflict with it in the wild #276

Closed
symwell opened this issue Sep 8, 2022 · 6 comments · Fixed by #283
Labels

Comments

@symwell
Copy link
Contributor

symwell commented Sep 8, 2022

We want to take the method_source code we need and add it to our repo e.g. lib/appmap/method_source.

Then we can apply the performance fix we want in our repo. That way we can be sure not to conflict with method_source in the wild, and we will get the efficient implementation that we want.

Give proper attribution and then we can be done with it.

https://applanding.slack.com/archives/CQ5JFE1DY/p1662647402949409

@symwell symwell changed the title Take the method_source code we need and copy it in AppMap, to not depend on method_source or conflict with in in the wild Take the method_source code we need and copy it in AppMap, to not depend on method_source or conflict with it in the wild Sep 8, 2022
@symwell
Copy link
Contributor Author

symwell commented Sep 9, 2022

I tried to take the method_source code we needed and add it to our repo but it seemed too much work

  • copy only some files over, rather than the .git dir or the spec files. It would not include its testcases.
  • add attribution
  • change it to be under the AppMap module (I think we're supposed to do that.)
  • run the testcases, which don't pass now, with some error

It seems easier (2 lines of code change) to point our method_source gem to a custom branch
https://github.com/applandinc/appmap-ruby/compare/sw/use_method_source_from_custom_branch?expand=1

@kgilpin
Copy link
Contributor

kgilpin commented Sep 9, 2022 via email

@kgilpin
Copy link
Contributor

kgilpin commented Sep 9, 2022 via email

@symwell
Copy link
Contributor Author

symwell commented Sep 9, 2022

Simpler change that extracts only the code we need frommethod_source with testcases passing.

@kgilpin
Copy link
Contributor

kgilpin commented Sep 9, 2022 via email

@appland-release
Copy link

🎉 This issue has been resolved in version 0.90.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants