[Pydev-code] Extend rename-refactoring to properly cover all 'uses' of a method
Brought to you by:
fabioz
From: Andreas P. <an...@fr...> - 2015-03-23 16:32:20
|
Hi, I recently found that the renaming of functions with PyDev does not quite work as one would expect. Given the following setup there are two issues I see happening with 3.9.2: - 2 Projects shared and user - None of the two projects has its project directory set as a pydev source folder - The shared project has a linked folder that is set as a source folder - the linked folder has a single python module with a single function - The user project has two subfolders each is set up as a pydev source folder in that project - The user project has the shared project in its project references - Each of the subfolders has a test.py with a function and each imports and uses the function from the shared project's linked folder Now when renaming the shared function inside either of the test.py files it is being renamed in that file and in the module in the shared project, but it is not being renamed in the other test.py in the user project. If the renaming is initiated in the shared functions definition module in the shared project none of the references in the user project are adapted. I'm attaching two zip's one containing the two project the other one containing the linked folder. Since I saw several renaming tickets being in the backlog I wanted to see if I could find the culprit myself but couldn't. So I'd appreciate any pointers as to where to look for the part that gathers all 'places' that need to be adjusted when when renaming a function. Andreas -- Andreas Pakulat sq...@fr... froglogic GmbH - Automated UI and Web Testing |