Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Go to defintion not working with transitive imports  #1028

Description

I have a setup similar to the following:

a.py:

from b import Foo

Foo().bar()

b.py:

from c import Foo

c.py:

class Foo:

    def bar(self):
        pass

With an import like this, the Python Language Server says No defintiion found for bar, even though it shows up with IntelliSense.

image

image (1)

Activity

  1. starship863 commented on May 1, 2019

    @starship863

    I have similar problem. But in my case, the go to definition does not work for any imports, not only the transitive imports.

    The intellisense works in my case. It is really strange that only the go to definition is not working.

  2. starship863 commented on May 1, 2019

    @starship863

    I have similar problem. But in my case, the go to definition does not work for any imports, not only the transitive imports.

    The intellisense works in my case. It is really strange that only the go to definition is not working.

    Update: my issue is resolved in daily build 0.2.67

    Update2: not really resolved, the issue come and go randomly.

  3. MikhailArkhipov commented on May 10, 2019

    @MikhailArkhipov

    Most probably #1064

  4. MikhailArkhipov commented on May 14, 2019

    @MikhailArkhipov

    Appears to work, most probably fixed by #1065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions