RubyMine 2019.1 EAP updated: View Call Hierarchy, TruffleRuby Support
RubyMine 2019.1 EAP (build 191.4738.18) has just been updated. The new build features an ability to view a Call Hierarchy of Ruby methods, and adds support for TruffleRuby.
Call Hierarchy [RUBY-16165]
This build features a very handy ability to view a call hierarchy of methods (Navigate | Call Hierarchy), which expands the potential of the Find Usages action.
Not only does the Call Hierachy show you all the methods (“callers”) that use the method you are investigating, but it also shows you callers of the callers. Take a look at the following steps to escape this verbal abracadabra and get a grasp of this feature:
- Put the caret at the method you want to investigate and choose Navigate | Call Hierarchy (Ctrl+Alt+H). The resulting popup will show you the list of methods that call this method.
- If you expand any node, you will see which methods call the methods that use the original method you are investigating:
- As you would expect, double-clicking on any of the method names will move you to that exact piece of code:
That’s not all though.
If you choose Callee Methods Hierarchy on the top pane of the popup, RubyMine will show you which methods (“callees”) are used by the method you are investigating:
Take a look around the top pane to notice the additional handy options such as scoping, sorting, pinning, and others.
Note that this feature requires some polishing, so if you face any issues, feel free to report them to our bug tracker.
TruffleRuby, “a high performance implementation of Ruby”, as its official GitHub repo states, is now supported in RubyMine.
Switching your current Ruby SDK to TruffleRuby is a no–brainer: go to Preferences / Settings | Languages & Frameworks | Ruby SDK and Gems, and choose truffleruby from the list of available version managers and rubies:
Note that the current support for TruffleRuby is limited to running scripts and other basic scenarios. Feel free to submit your feature requests.
Visit TruffleRuby’s GitHub page for more information and installation guides.
If you’ve never used RubyMine before, and you don’t understand how to configure it, jump to our Get Started Guide.
As usual, check out our release notes for the full list of improvements inside this build.
Your RubyMine Team
Subscribe to Blog updates
Thanks, we've got you!
The RubyMine 2023.3 Early Access Program Is Open!
Hello everyone, The third RubyMine Early Access Program of 2023 is underway! The key change in the first EAP build is an important indexing optimization. By refactoring our code base, we’ve doubled RubyMine’s indexing speed compared to v2023.1. This is particularly noticeable when working wi…
Performance Improvements in RubyMine 2023.1
Hello everybody, The new release is fast approaching, so it’s time to unveil the performance enhancements you can expect from RubyMine 2023.1. Faster code completion When developing and supporting RubyMine, we analyze a great load of anonymized usage data. A lot of recent data pointed to the fact t…
RubyMine 2023.1 EAP5 Is Out!
Hello everyone, RubyMine 2023.1 EAP5 is now available! Below you can find the most notable features in this build. We encourage you to try them out and share your feedback in the comments or in our issue tracker. Migration of Ruby code to the Symbol API In order to improve code insight actions such…
The RubyMine 2023.1 EAP2 Is Out!
The RubyMine 2023.1 Early Access Program recently started and EAP2 is already here! You can get the new build from our website or via the free Toolbox App. In this post, we’ll highlight some of the most important updates included in the new EAP version. Rails 7: support for turbo-rails complet…