YARD is a popular Ruby documentation generation tool that is used in multiple libraries for documenting code. RubyMine helps you to work with YARD tags and documentation in various ways, for example, you can view the documentation using Quick Documentation Lookup, create missing YARD tags, and check the validity of a YARD tag. RubyMine can also utilize the YARD annotations for better code insight, it uses them to help suggest more relevant results in code completion and parameter hints for methods.
In this blog post, we’ll remind ourselves about the existing capabilities available in RubyMine for YARD and look at the new ones we’ve added.
RubyMine 2019.2 EAP (build 192.4205.37) is now open! The first EAP build adds support for new things in Rails 6, improves YARD and Factory Bot support, and fixes many bugs. Here’s a short version of the completed tasks:
JetBrains Runtime 11
RubyMine 2019.2 uses JetBrains Runtime 11 (the fork of OpenJDK 11 with fixes from the JetBrains team). This transition addresses a range of issues and hopefully will make your experience with our IDEs much more pleasant.
Please stay tuned to the blog for further updates and major features in the upcoming v2019.2.
Download RubyMine 2019.2 EAP
See the release notes for the full changelist, and please report any issues you encounter.
Your RubyMine Team
RubyMine provides you with loads of different useful features for working with source code: from basic code editing, smart navigation, and completion, all the way through to debugging remote applications. We always try to make features easy to use and discoverable, but sometimes it happens that our users still don’t know about some pretty handy capabilities. For example, when communicating with our users at conferences, we note that even the most grizzled veterans of RubyMine, that have been using it for years, sometimes don’t always know about some of the most basic navigation abilities that RubyMine provides, like Go to Class, not to mention the more advanced features. That’s why we have refined the well-known IDE Features Trainer plugin for IntelliJ IDEA and added lessons based on Ruby code examples.
Starting with v2019.1.2, you can learn basic shortcuts and essential features interactively – right inside the IDE. You can try basic editing operations (commenting and uncommenting code, selecting, deleting, or moving lines), navigation and completion capabilities, and so on.
RubyMine 2019.1.1 (build 191.6707.59) has just been released.
What’s new in this bug-fix update:
- Debugger stopped failing after updating Spring configuration file [RUBY-24021]
- Specs with running errors can be run [RUBY-23459]
- Other bug-fixes
See What’s new in RubyMine 2019.1 for the major improvements made in v2019.1.
Download RubyMine 2019.1.1
As usual, see the release notes for the full list of improvements. Please report any issues to our bug tracker.
Your RubyMine Team
RubyMine 2019.1 is now released!
Update to this new major version to:
- Speed up your work with Docker in RubyMine
- Use Recent Locations popup for better code navigation
- Profile Ruby and Rails applications
- Get full support for Factory Bot
- Investigate method calls with Call Hierarchy
- Enjoy new UI themes
Check out the What’s new page to learn more about all these new features, and download the new version.
See the release notes for the full list of improvements and please report any issues you encounter. We also encourage you to join RubyMine in Slack.
Your RubyMine team
RubyMine 2019.1 is filled with features and options to help you navigate around your projects quickly without a mouse or touchpad. For example, you can quickly switch between tool windows, go to classes or actions, and open recently edited files. In our Navigate in RubyMine Like a Pro blog post, we show you how to get around using these features.
With v2019.1, we’ve added one more capability to your arsenal of convenient navigation. It is now possible to return to recently visited or changed code parts using the new Recent Locations popup. This can be extremely useful if you can only remember what the code was about, but you don’t have any idea where you put it. To invoke the Recent Locations popup, press Ctrl+Shift+E (⇧⌘E on macOS).
Note: By default, Recent Locations displays the last 25 entries. You can change this value using the Recent locations limit value option in Settings/Preferences | Editor | General.
To search for a code snippet, go to the Recent Locations popup and then just start typing your search query. You can search by the code text, filename, or breadcrumbs.
While in the popup, use the same shortcut (Ctrl+Shift+E/⇧⌘E) or select the Show changed only checkbox to see only the locations where code was changed.
If necessary, you can remove any location entry from the search results by pressing either Delete or Backspace.
Important Change: You might notice that the Ctrl+Shift+E (⇧⌘E on macOS) shortcut was used in v2018.3 and earlier versions to open recently edited files. To do the same in v2019.1, you can press Ctrl+E (⌘E for macOS) twice.
Please submit your feature requests and report any bugs related to Recent Locations that you come across to our issue tracker. Thank you!
Download RubyMine 2019.1 RC
You RubyMine Team
RubyMine 2019.1 has a bunch of capabilities which allow you to work with Docker and Docker Compose. You can inspect existing images and containers, quickly edit Docker files using autocompletion, create new images and start services directly from the IDE, and run or debug your application using Docker SDK. Let’s take a look at how to do all this.
RubyMine 2019.1 adds support for rbspy – a great sampling profiler for Ruby (many thanks to @jvns!). This post will help you start profiling your Ruby/Rails apps with RubyMine in 5 minutes. Here are the exact steps:
First things first: make sure you have rbspy installed. If it’s not, see this guide to install it for Maс, Linux, and Windows. Now you’re set. Run RubyMine 2019.1 and follow these steps to start profiling: Continue reading
RubyMine 2018.3.5 (build 183.5912.16) is now available. This build includes many minor platform improvements. You can find all the exact issues we’ve solved in our release notes for this build.
Here’s also a brief overview of the improvements made in the previous version 2018.3.4 (build 183.5429.43) that we haven’t covered on the blog yet:
- Ruby 2.6: added the new else-without-rescue inspection [RUBY-23335]
- Fixed parsing issues in ERB files [RUBY-23214]
- Fixed minor RSpec, Haml, and other issues
Download RubyMine 2018.3.5
As usual, check out this page for a complete list of all the changes from every build released within v2018.3, and please keep reporting any issues you encounter.
If you are excited to find out what major features were implemented for v2018.3, jump over to our What’s new page.
Your RubyMine team
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.
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: