This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Jul 8, 2014 2:22 PM by Alexander Zolotov  
Modest Petrovich Newbie 3 posts since
Jun 28, 2014
Currently Being Moderated

Jun 28, 2014 10:07 PM

Annoying behaviour of autocomplete while renaming a local variable

On RubyMine 6.3.3, OS X (Mavericks). Say we have this code:

 

[{a: 1}, {a: 2}].each do |h|

  h[:a] = 3

end

 

1. Place caret on 'h' var and press Shift-F6

2. Type 'hash' and press Tab (to complete the refactoring)

3. RubyMine will replace 'hash' with 'Hash.new ...' and will 'hang' in var replacement mode forever, not allowing you to quit it (Esc doesn't help, and there seems to be no option to quit Refactor/Rename mode anywhere in the menu. The only way is to restart RubyMine).

 

I've noticed it's been like this since version 4 and it's really annoying. Is there a way to fix this?

Attachments:
Alexander Zolotov JetBrains 89 posts since
Apr 6, 2011
Currently Being Moderated
Jul 8, 2014 2:23 PM in response to: Modest Petrovich
Re: Annoying behaviour of autocomplete while renaming a local variable

Hi,

Type 'hash' and press Tab (to complete the refactoring)

 

Actually <Tab> is not the best choise for completing refactoring, it has too many other meanings (e.g. expanding live templates in your case).

 

3. RubyMine will replace 'hash' with 'Hash.new ...' and will 'hang' in var replacement mode forever, not allowing you to quit it (Esc doesn't help, and there seems to be no option to quit Refactor/Rename mode anywhere in the menu. The only way is to restart RubyMine).

 

I filed an issue about that. You can 'star' it or vote for it in order to track progress: http://youtrack.jetbrains.com/issue/IDEA-127036

More Like This

  • Retrieving data ...