srusskih / SublimeJEDI

awesome Python autocompletion with SublimeText
MIT License
938 stars 109 forks source link

Goto / Go Definition #280

Open ghost opened 5 years ago

ghost commented 5 years ago

Steps to Reproduce

api is just a python package containing 2 files:

  1. init.py
  2. special_module.py

Here is the file layout:

    api/
         __init__.py
          special_module.py

Content of api/init.py is empty.

in some file elsewhere in the project, i type: from api import module special_module

i highlight "special_module" and use Goto / Go Definition

Expected Behaviour I expected to go into api/special_module.py.

Actual Behaviour Anaconda opens api/special_module/init.py instead.

Using ST3 bild 3176 on windows 10 latest version of "Jedi Python autocompletion" v0.14.0

very similar to this bug: https://github.com/DamnWidget/anaconda/issues/768

daniele-niero commented 5 years ago

Any comment on this issue? It's really annoying...

srusskih commented 5 years ago

@daniele-niero I think it's how jedi works. hadn't time to test properly

daniele-niero commented 5 years ago

I didn't use to work like this. Maybe is something changed in Jedi itself?

P.S. sorry for the late reply