Linking outline to editor does not work reliably
Brought to you by:
fabioz
If you link the outline window to the editor, it is supposed to highlight the element you are currently working on. This does not work reliable. Take the following snippet as an example. If the curser is in the last line, the highlighting in the outline is gone.
------------------
class Dummy():
def train(self, peak_thresh=0.0):
# Extract SIFT descriptors
self.peak_thresh = peak_thresh
------------------
It seems to me that it always fails when you have an assignment to an
instance variable. In this case the highlighting stops working for the
current and all subsequent lines in the current scope.
Note reproducing: all seems to work well if no items are hidden, but if the 'hide fields' is chosen, the linking still tries to link to the hidden item, which results in the linking being wrong (so, when linking to a hidden item it should go to the first parent that's visible).
Bumping...
It seems like situation is worse due to bad parsing. Having cursor in any line with "pass" keyword below displays self.x node in Outline view.
class Test(object):
def f(self):
self.x = None
pass
pass
pass