Refactor bug?

I'm running RubyMine 5.4.1 on OSX 10.8 and I think I've found a refactor bug.  I have a small Sinatra app using ERB templates.

I renamed (using the RubyMine refactor tool) a function from display to get_display.  All of my calls to it were refactored except for the call to it within the ERB:

erb :listings, :locals =>

The listings: display should have been changed to listings: get_display.  If this is a bug, I'm happy to file it but I want to make sure I'm not the only one having this issue.




---
Original message URL: http://devnet.jetbrains.net/message/5485753#5485753

0
Avatar
Permanently deleted user

Hi Andrew,

to most likely the problem is that were unable to connect the method you rename with its usage in the .erb file.
Are you able to navigate from the call in .erb to its definition?
But anyway it looks like a bug for me and you are welcome to file it.  Thouhg I have to say I can not guarantee that it will be fixed
very quickly because I'm not sure how easy/hard to implement the necessary code-insight for Sinatra (I'm not an expert in this framework).
Also to speedup the process I'd suggest to provide test application which reproduce the problem.

Regards, Oleg.

0

请先登录再写评论。