0

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

Please sign in to leave a comment.