SourcetrailPythonIndexer icon indicating copy to clipboard operation
SourcetrailPythonIndexer copied to clipboard

No symbol found for field of field

Open mlangkabel opened this issue 6 years ago • 3 comments

Consider the following code snippet:

class Bar:
    pass

class Foo:
    def __init__(self):
        self.bar = Bar()
        self.bar.baz = 9

foo = Foo()
baz = foo.bar.baz

SourcetrailPythonIndexer is unable to resolve the symbol baz in the last line of the snippet.

Tested with version v0.db23.p2

mlangkabel avatar Apr 02 '19 18:04 mlangkabel

Reported this issue on the Jedi tracker: https://github.com/davidhalter/jedi/issues/1275

mlangkabel avatar Apr 02 '19 18:04 mlangkabel

Jedi issue has been reported as "fixed". Fix has not yet been released.

mlangkabel avatar Apr 09 '19 09:04 mlangkabel

Updating to Jedi 0.14.1 by merge of pull request #47 improves the situation: foo.bar.baz is not recorded as global symbol anymore but it is still unsolved.

mlangkabel avatar Jul 23 '19 10:07 mlangkabel