-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go to definition needs to be pressed twice #15727
Comments
You list all language servers. So are you saying this happens on all three of them? |
Yes, I have same issues after upgrading new python extension version. Language server is pylance. |
@djplt What is the OS? |
Mine is MacOS |
So it doesn't happen when the language server is set to 'Jedi', the other three ('Microsoft', 'JediLSP' & 'Pylance') cause the bug to appear. |
Windows 10 Pro 1909 I've updated the information in my original post. |
Yep, that's the bug and I probably committed that. The ExP code removal changed the code path and the sendTelemetry change meant we dropped the result. @bschnurr was debugging this from the Pylance side and will submit something for this. |
Hi everyone, we released a new version of the extension that includes the fix above, could you give it a try and see if this solves the issues you've been encountering? Thank you! |
Initial dabble shows it's fixed for me! |
Thank you for reporting back! Closing this issue as resolved. |
Go to definition on an object
Get the message "Definition of xx" could not be found
Go to definition again and it works
This seems to occur at the start of opening a workspace/folder and occurs a short time after.
Using the previous python-vscode version of 2021.2.636928669 makes the issue go away.
Environment data
python.languageServer
setting: Pylance/JediLSP/MicrosoftBug does not appear when any one of the following is set:
python.languageServer
is set to 'Jedi' (Not 'JediLSP')Steps to reproduce:
The text was updated successfully, but these errors were encountered: