-
Notifications
You must be signed in to change notification settings - Fork 185
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
method_source compatibility problems introduced with TruffleRuby 24.0.0 #3551
Comments
It's because of https://github.com/banister/method_source/blob/06f21c66380c64ff05c8031c0208eef240da0e83/lib/method_source/code_helpers.rb#L125-L131 https://github.com/banister/method_source/blob/06f21c66380c64ff05c8031c0208eef240da0e83/lib/method_source/source_location.rb#L44 makes me want to scream but on a closer look at least that code for What is silly is we actually record the method source region ourselves in TruffleRuby, so maybe we should implement We don't keep the values for Naturally if you want to run that benchmark on truffleruby you can just remove |
|
John Hawthorn recently wrote a blog post comparing CRuby and Crystal performance. The benchmark uses the crystalruby gem to embed Crystal code in Ruby. That gem has a dependency on method_source.
When running the benchmarks with TruffleRuby 24.0.0, I encountered a syntax error coming from the method_source gem:
I cloned the method_source repo and ran its test suite. It passes 100% on TruffleRuby 23.1.2, but there are syntax errors on 24.0.0, 24.0.1, and 24.1.0-dev builds. Reproduction steps are:
git clone https://github.com/banister/method_source git checkout v1.1.0 bundle bundle exec rake
Test Failure Log
I haven't attempted to debug the problem yet, so I don't know if this a problem in Prism or our Prism integration.
The text was updated successfully, but these errors were encountered: