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

Goto Definition does not work with class methods when modules reference each other #225

Closed
MikhailArkhipov opened this issue Oct 10, 2018 · 0 comments
Assignees
Labels
bug Something isn't working feature: references
Milestone

Comments

@MikhailArkhipov
Copy link

MikhailArkhipov commented Oct 10, 2018

Works in a single file, but not cross-files, specifically with circular references. Works if method is not a class method.

module1:

from .module2 import Derived1

class Base(object):
    @classmethod
    def fob_base(cls): 
        pass

class Derived2(Derived1):
    pass

Derived2.fob_base()

module2:

from module1 import *

class Derived1(Base):
    pass
@MikhailArkhipov MikhailArkhipov self-assigned this Oct 10, 2018
@MikhailArkhipov MikhailArkhipov added bug Something isn't working feature: references labels Oct 10, 2018
@qubitron qubitron added this to the Oct 2018.2 milestone Oct 10, 2018
@MikhailArkhipov MikhailArkhipov changed the title Goto Definition does not work with class methods Goto Definition does not work with class methods when modules reference each other Oct 11, 2018
jakebailey pushed a commit to jakebailey/python-language-server that referenced this issue Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: references
Projects
None yet
Development

No branches or pull requests

2 participants