This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197901 - Refactor / Rename... broken in new version
Summary: Refactor / Rename... broken in new version
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 12:23 UTC by josef.sabl
Modified: 2012-03-28 12:33 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description josef.sabl 2011-04-20 12:23:32 UTC
Please bring back the plain rename for variable in current file/context.

New fancy refactoring feature with dialogs and lots of functions is unusable. I was using rename all the time when renaming variables. It was Ctrl+R, type new name, enter, finito.

Now it attempts to rename variables of same name across the whole project, which is ridiculous, slow and requires lots of user input. Terrible.

I have to use Ctrl+H for renaming now, which is cluncky for this too, but at least a bit usable. I am going to downgrade because of this anti-feature.
Comment 1 Marian Mirilovic 2011-05-18 20:18:05 UTC

*** This bug has been marked as a duplicate of bug 197700 ***
Comment 2 josef.sabl 2011-06-22 14:48:23 UTC
No, this is NOT a duplicate. Please read the description again.

I have a problem with rename in plain PHP files.

NB highlights the variable throughout the file when caret is positioned over it. Before Ctrl+R renamed these highlighted instances. However now it scans whole project for same string and offers to rename it in all the files. It actually destroyed the rename feature because it is very slow and requires additional interaction (uncheck all the other files). I use Ctrl+H to rename now but it is very uncomfortable as well.
Comment 3 Petr Pisl 2011-09-29 09:45:43 UTC
The rename refactoring is now implemented as in other languages. It should be save. 

Probably there can be one more action that will invoke the old style (not save).
Comment 4 josef.sabl 2011-09-30 08:11:18 UTC
(In reply to comment #3)
> The rename refactoring is now implemented as in other languages. It should be
> save. 
> 
> Probably there can be one more action that will invoke the old style (not
> save).

Yes, there definitely can be separate feature / option for this. I guess the new version works well with defined frameworks (but not at all for me, e.g.)
Comment 5 Ondrej Brejla 2012-03-28 12:33:10 UTC
Adding another action -> enhancement.