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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Ruby 2.6.x #159
Comments
Addressing this is actually going to be somewhat complicated because Ruby 2.6 introduces a JIT. I haven't spent any time looking at this yet, but I'd like to! |
@jvns I don't know a lot about the 2.6 JIT - but I think it's possible to run with it disabled, and I think it's disabled by default? I'm running into the 2.6.1 not being supported error. |
oh, if the JIT is disabled by default then it definitely shouldn't be an
issue. I'll take a look!
|
I love |
I haven't used |
Yes. Ruby 2.6's JIT compiler (MJIT) is still experimental and disabled by default. https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/
We still need to port Ruby's structs (rb_thread_struct?) to rbspy, but it shouldn't be rocket-science hard. |
I'm pretty sure I managed to get 2.6.x working with |
Ok, I think I have 2.5.4, 2.5.5, 2.6.0, 2.6.1, 2.6.2 and 2.6.3 working. I'm just seeing some weird behavior with the line numbering that also seems to be present in the current version. It's not critical so I'll probably just push so people can get it running |
Any idea when you will push this, @neosilky? Would really love to get something going with 2.6.3. Thanks. |
@mikedalpee Just pushed! As I said, line numbers are a little broken but you should be able to use it anyway 馃榾 |
@neosilky Is there anything special I should do when running this? In particular, does it work with JIT enabled? |
@mikedalpee You should just be able to run it out of the box. I honestly don't know if it'll work with the JIT, I haven't had time to test that. I would suspect some weird stuff goes on though. |
馃憢
For the record here's the error message you get when using 馃拵 ruby 2.6.0preview2 (2018-05-31 trunk 63539) [x86_64-darwin17] on macOS:
thread '<unnamed>' panicked at 'Ruby version not supported yet: 2.6.0. Please create a GitHub issue and we'll fix it!', src/core/initialize.rs:251:14
Thanks for this great tool 馃敟 馃槏
The text was updated successfully, but these errors were encountered: