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?



Attachment(s):
sample.png
2 comments

Not answered in one week, this is weak! Where should I put this post to draw attention to it, anyone?

0

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

0

Please sign in to leave a comment.