Can't rename files in RM 2

I'm using OS X Snow Leopard with RubyMine 2.0. The renaming refactor no longer works on files in this release, but it works for directories. I find myself having to make a new copy of the file I want to rename and then deleting the old copy. Pretty annoying. Similarly, cut or copy followed by paste when trying to move files to a new directory often doesn't work on the first try. I usually have to go back to the files I want to cut or copy and try again. Second time is usually a success. This was true for RM 1.1.1 as well. Note that I get all of these problems using with the mouse, both an Apple Mighty Mouse and the touchpad on my MacBook.

Anyone else experience these issues?

5 comments
Comment actions Permalink

The renaming bug only happens when I'm working on a plugin that is in the vendor/plugins directory. I keep my vendor directory as a separate source root.

0
Comment actions Permalink

Hi Christopher,

This makes sence, we've intentionally disabled ability to refactor any code within vendor folder, because of text based search we use.
What is your usecase? Why it is nescessary for you to rename something in vendor?

Regards,
Oleg

0
Comment actions Permalink

Thanks for the reply! I have multiple projects, all of which share the same vendor directory. Vendor is kept standalone and holds both 3rd party plugins and a few custom plugins that I maintain. It's the custom ones that I need to edit/refactor. I have one RM project to manage all of it. It's not a conventional Rails setup, which, like now, sometimes shoots me in the foot.

I'm sure there's good reason for disabling refactor in vendor, but it's kind of restrictive. I would think it is fairly common for devs that roll their own plugins to keep them in vendor and find a need to work on that plugin while developing a project which uses it. Would be great to see this restriction loosened up in a future release.

0
Comment actions Permalink

Hi Christopher,

Thanks for the reply! I have multiple projects, all of which share the same vendor directory. Vendor is kept standalone and holds both 3rd party plugins and a few custom plugins that I maintain. It's the custom ones that I need to edit/refactor. I have one RM project to manage all of it. It's not a conventional Rails setup, which, like now, sometimes shoots me in the foot.


I'm sure there's good reason for disabling refactor in vendor, but it's kind of restrictive. I would think it is fairly common for devs that roll their own plugins to keep them in vendor and find a need to work on that plugin while developing a project which uses it. Would be great to see this restriction loosened up in a future release.

We'll definitely consider this in future releases.


Best regards,
Oleg

0
Comment actions Permalink

Hi,

For what it's worth, I'm with Christopher on this. I've been trying to Refactor > Rename a couple of files in my /vendor directory all morning and was absolutely stumped as to why a feature I use on a fairly regular basis no longer seemed to work. If anything, you might want to factor the "principle of least surprise" into your decision as to whether or not you put this feature back in.

If you decide to keep it out, at least please disable the menu choice to let us know we can't do it. That would still be confusing (i.e. Why can't I?), but at least we won't waste time trying.

Thanks,
Larry

0

Please sign in to leave a comment.