RubyMine 2020.2 EAP4: Improved Completion, Support for Git installed in WSL2, and More

Posted on by Natalie Kudanova

RubyMine 2020.2 EAP4 is now available! Here are the main highlights in this build:

Improved completion for standard library methods

We’ve improved completion for many of the common standard library methods (such as Array#sort_by, Hash#each, and many others). RubyMine will now suggest more accurate methods in completion.

For example, the completion will now recognize the key and value types of a hash and suggest methods based on them:

Improved completion for standard library methods

New intention action to sort hashes by their keys

We’ve added a new intention action that sorts items in a hash alphabetically by key:

Sort hash by key intention action

This intention action also works for hashes with different key types too. In this case, the keys are grouped by their type and then sorted. However, it’s not available for hashes that contain a hash deconstruction, as this would change the semantics of the code.

Support for Ruby 2.7 beginless ranges

RubyMine now correctly recognizes beginless ranges (introduced in Ruby 2.7). It will also show a warning if a beginless range is used in Ruby 2.6 or below.

Startless ranges in Ruby 2.7

Support for Git installed in WSL2

WSL is becoming an important part of the development process on Windows and we are working on supporting all the necessary workflows in our IDEs.

The upcoming RubyMine 2020.2 now supports Git installed in WSL2 for working with projects located in Linux or Windows file systems.

The IDE can switch between Git executables depending on the project location. When a project is opened from WSL (via \\wsl$ path), the IDE will not only automatically switch to Git from WSL but it will also provide you with the ability to use all the Git-related features in the IDE.

Please note that the upcoming RubyMine 2020.2 allows you to use Git only from WSL2, which is available in the May update of Windows 10, version 2004. The IDE will not support WSL1 because, unfortunately, Git from WSL1 does not return output reliably when called from Windows, and this could lead to incorrect results from Git commands – see IDEA-242469 and the corresponding WSL request.

Early Access Program Key Facts

  • The EAP version of RubyMine is free to use. It will expire 30 days after the release of the build.
  • This is pre-release software, and it may 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 of reporting the statistics by changing the settings in Preferences/Settings | Appearance & Behavior | System Settings | Data Sharing.
  • EAP versions 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 want to see using our issue tracker.

DOWNLOAD RUBYMINE 2020.2 EAP4

Happy Developing!
The RubyMine team

Subscribe

Subscribe for updates