Menu

#454 Find references can't count

1.3.0
closed-fixed
nobody
5
2007-03-24
2007-03-12
Don Taylor
No

Ctrl-shift-G sometimes reports the wrong number of references in a module and when you click 'show next match' it thinks those references are really there.

For example, in the module:
class Model:
def __init__(self, aString):
print aString
self.setArtist("The Beatles")

def getArtist(self):
return self.Artist

def setArtist(self, aString):
self.Artist = aString +" suck!"

Find references thinks there are 6 uses of aString and that there are phantom references between the first and second real reference, and the second and third reference. You have to click next reference twic to move it along.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2007-03-12

    Logged In: YES
    user_id=617340
    Originator: NO

    Ok, this happens because it finds the same occurrence in different heuristics and it is not filtering them down as the rename refactoring actually does -- I'll fix it for the next release.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-03-24
    • status: open --> closed-fixed
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2007-03-24

    Logged In: YES
    user_id=617340
    Originator: NO

    Fixed for 1.3.1

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.