Menu

#1203 Linking outline to editor does not work reliably

open
Editor (491)
5
2010-08-18
2010-08-18
Anonymous
No

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.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2010-08-18

    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).

     
  • Piotr Dobrogost

    Piotr Dobrogost - 2012-05-06

    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

     
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.