RubyMine 2017.3 EAP5: WSL Support, Improved Parameter Hinting

Hello everyone,

RubyMine 2017.3 EAP5 (build 173.3188.32) is out now and ready for your assessment. In this EAP we are finally able to announce the much-anticipated Windows bash support! This build also features improved parameter name hints.

Windows Bash Support
Improved Parameter Name Hinting

Download RubyMine 2017.3 EAP5

 Windows Bash Support

This part of the post was updated on November 1, 2017, following Microsoft’s Fall Creators Update which led to changes in WSL support in RubyMine. 

Here are the exact steps you can take to make WSL work in RubyMine:

1 Install Linux & Ruby on Windows

  • Make sure you have Windows 10 Fall Creators Update installed.
  • Install a Linux distribution from the Windows Store. We recommend using Ubuntu.
  • Run Windows command line and execute the following command to set default user to root:

  • Install Ruby and the libraries required to build native extensions:

2 Add WSL SDK in RubyMine

  • If you use Spring, make sure bash is running:

run_bash

  • In RubyMine, go File | Settings | Ruby SDK and Gems and add WSL as a new remote SDK:

windows subsystem on linux rubymine

That’s it! Now you can develop Ruby and Rails projects utilizing RubyMine’s full potential, and avoiding any painful configurations.

Please note that there are currently two WSL-side issues that might have implications on using it:

  • Bash doesn’t kill pids ran inside of it after the taskkil command. Github issue
  • BSOD may happen when running bash commands. Github issue

Both issues have already been reported and fixed by Microsoft, and should be available in one of the further updates.

Meanwhile, we encourage our Windows users try out the new WSL integration, and report any issues they find to our bug tracker.

Improved Parameter Name Hinting

In version 2017.1 we introduced parameter name hints. Lately we have redesigned their behavior to eliminate some disconcerting and excessive cases.

First of all, now you can configure when to show parameter hints. Go Preferences / Settings | Editor | General | Appearance and hit Configure:

configure_param_hints

There you will find a list of options:

param_hints_options

The first one is probably obvious, but let’s see what the latter two do:

With the second option “on” you won’t see excessive param hints anymore when a parameter value matches its name, e.g. when you are passing instance/class variables and methods. However, in this case you can still make sure you are passing correct arguments. Simply hit ⌘+P/Ctrl+P and RubyMine will remind you what is what:

see_param_info_rubymine

As for the Show implicit param grouping option, it works as follows: If a method is given a number of argument values and a splat operator, the IDE will wrap all the optional values into the improvised array for better visibility:

param_hints_array

Doesn’t it just read better? In this particular case you can almost see the expected output:

param_hints_execute

Moreover, now when a method is passed default argument values and a splat operator, RubyMine will stop hinting this particular method call:

param_hints_no_splat

Don’t forget that you can always turn param hints on/off by going to Help | Find action Toggle parameter name hints, or even assign its own shortcut in Preferences/Settings | Keymap.

Download RubyMine 2017.3 EAP5

See the release notes for all the other improvements, and use our bug tracker to report any issues.

Cheers,
Your RubyMine team

 

This entry was posted in Announcement, Better Code, Feature, WhatsMining and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *