This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Goto definition / peek definition leads to import, not to definition itself #1162
Labels
duplicate
This issue or pull request already exists
@aliev commented on Tue May 28 2019
Environment data
Expected behaviour
Go to definition should open definition itself, not the import. It works fine when jedi is enabled.
Actual behaviour
Unlike Jedi, Goto definition / peek definition leads to import, not to definition itself. It's a bit annoying and not configurable. I'm not sure is it bug or can it be configurable somewhere?
Steps to reproduce (Jedi disabled):
Video uploaded here: https://www.youtube.com/watch?v=b9wdLka770g
My settings.json: https://gist.github.com/aliev/6134f897587390dec4c3ffe40390d9ab
@DonJayamanne commented on Thu May 30 2019
@aliev I'm sorry to hear about the issue you're facing.
Please could you take the time to fill in the issue template with the missing information. We need this information to be able to help you.
Are you using
jedi
orMS Language Server
. Please check you user and workspacesettings.json
and check if you have the setting"python.jeditEnabled"
, if you do please let me know what it is.Finally, please could you provide some sample code to replicate this issue. I don't quite understand the problem. I believe a sample code would remedy this.
@aliev commented on Fri May 31 2019
@DonJayamanne sorry for confusing. I updated description and attached video
The text was updated successfully, but these errors were encountered: