Early Access Program

RubyMine 2021.1 Goes Beta!

RubyMine 2021.1. Beta

RubyMine 2021.1 reaches Beta! This build introduces new features for Ruby 3 and tests:

Important! RubyMine EAP builds are not fully tested and might be unstable.

DOWNLOAD RUBYMINE 2021.1 BETA 1

RBS support and better code completion

We continue to implement support for Ruby 3. While RubyMine 2020.3 introduced basic support for the new Ruby 3 syntax, for the upcoming 2021.1 version we are focusing on supporting RBS.

First of all, RubyMine 2021.1 will use .rbs files in its Code Insight. This means improved code completion for both Ruby’s standard library (as it comes with its own RBS definitions) as well as for user code with RBS definitions. You don’t even have to use Ruby 3.0 in your project, the only requirement is that you have the RBS gem included.

For example, thanks to the .rbs declarations, in the example below RubyMine is able to define the type of the book.title, and so it is able to suggest more relevant methods in code completion.

Improved completion using RBS

RubyMine also makes working with .rbs files simpler by providing features like code highlighting and actions such as Go to Declaration, Find Usages, and the Rename refactoring.

Actions for .rbs files

The IDE will also display a warning if any of your .rbs code refers to a nonexistent declaration.

Warnings in .rbs files

Please note that our work to introduce support for RBS is still in progress. We plan to add more features in the upcoming 2021 releases. Please see the following tickets for more details: RUBY-27386, RUBY-27754, and RUBY-27755.

Run multiple tests in a run configuration

Sometimes you may want to run several tests that don’t belong to a single group like one .rb file or a folder. For example, this may be the case if you have a number of flaky tests in various directories, or when you only need to run certain tests but don’t want to run them all.

Starting with v2021.1, you can hand-pick which test files to run. To do so, select the files in the Project view, right-click any of them and pick Run ‘<test names>’ from the context menu.

Run multiple test files

RubyMine will run the tests and display the results in the Run tool window. It will also create a temporary run configuration that you can customize and save for future use.

Early Access Program key facts

  • The EAP builds of RubyMine are free to use. Each will expire in 30 days.
  • This is pre-release software, and it might not work as intended.
  • You can install the EAP version alongside a stable version of RubyMine.
  • EAP versions of RubyMine report statistics by default. These statistics help us improve the user experience. You can opt out by changing the settings in Preferences/Settings | Appearance & Behavior | System Settings | Data Sharing.
  • EAP builds have their own documentation as well.

Join the Early Access Program

You are welcome to download the latest EAP build from our website or via the Toolbox app. The full list of closed tickets in this EAP build is in the release notes.

To learn about the newest features as they come out, please follow RubyMine on Twitter. We post product news and tips several times a week.

As always, we encourage you to share your thoughts in the comments below and to create and vote for the features you would like to see in the issue tracker.

Happy Developing!
The RubyMine team

image description