You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm programming python and Django and When I ctrl + click or F12 (go to definition) on some imported class from another file, like the screenshot example bellow, this took beetwen 5 to 10 seconds to open the file and sometimes nothing happens and I have to crl+click again and await again. I've tried to change from Jedi to pylance or microsoft but nothing helps.
On the example bellow the mediaSerializer is imported like that (from base_project.serializers import MediaSerializer) on the views.py file and is defined on serializers.py
Am I doing something wrong or is it a bug? Maybe some configuration I don't know about.
Thanks guys.
Environment data
VS Code version: 1.48.2
Python extension version: microsoft/vscode-python
OS and version: Linux Ubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): 3.4
Thanks for your feedback! We have recently released a new and more performant language server called Pylance which likely solves these issues you are reporting. You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we'd encourage you to try it out. If you try out Pylance and this issue persists, you can open an issue on the pylance-release repo.
Thanks for your feedback! We have recently released a new and more performant language server called Pylance which likely solves these issues you are reporting. You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we'd encourage you to try it out. If you try out Pylance and this issue persists, you can open an issue on the pylance-release repo.
Thanks for the reply !
I already did the test with Pylance and actually I got worse results.
When I select pylance as language server and try the same example above what happens is
ctrl + click doesn't do anything
f12 -> no definition found for "MediaSerializer"
As for the jedi, we have to wait until we finish #11995 to be certain about where the issue is. I am assuming it is due to how we handle completions with our wrapper for jedi.
Activity
karthiknadig commentedon Sep 2, 2020
Thanks for your feedback! We have recently released a new and more performant language server called Pylance which likely solves these issues you are reporting. You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we'd encourage you to try it out. If you try out Pylance and this issue persists, you can open an issue on the pylance-release repo.
weberxw commentedon Sep 2, 2020
Thanks for the reply !
I already did the test with Pylance and actually I got worse results.
When I select pylance as language server and try the same example above what happens is
ctrl + click doesn't do anything
f12 -> no definition found for "MediaSerializer"
karthiknadig commentedon Sep 2, 2020
I will file a bug on this is
pylance.As for the
jedi, we have to wait until we finish #11995 to be certain about where the issue is. I am assuming it is due to how we handle completions with our wrapper for jedi.karthiknadig commentedon Sep 2, 2020
Closing this since we have to wait for #11995. We will look into this issue as a part of moving Jedi behind LSP.
karthiknadig commentedon Sep 2, 2020
Lucas Weber (@weberxw) Pylance issue for reference microsoft/pylance-release#314