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 definition" jumps to wrong function when importing multiple functions together #1670

@fireattack

Description

@fireattack

Environment data

  • Language Server version: 0.4.58.0
  • OS and version: Win7x64
  • Python version (& distribution if applicable, e.g. Anaconda): vanilla Py 3.7

Expected behaviour

Ctrl+lick "b" or "c" in test.py.

It should jump to definition of b or c.

Actual behaviour

It jumps to definition of a.

gifski

Logs

Goto Definition in file:///d:/pytest/test.py at (1, 24)
Hover in file:///d:/pytest/test.py at (1, 24)
Goto Definition in file:///d:/pytest/test.py at (1, 23)

Code Snippet / Additional lnformation

util.py:

def a(name):
    pass

def b(url):
    pass

def c(text):
    pass

test.py:

from util import a, b, c

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions