Go to definition needs to be pressed twice
See original GitHub issueGo 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
- VS Code version: 1.54.3
- Extension version (available under the Extensions sidebar): 2021.3.658691958
- “git bisect” showed the commit to cause this bug is 3288ba40fed754ae08fb85f479000cae03415e2b
- Python version: 2 & 3
- Windows build: Windows 10 Pro 1909
- Value of the
python.languageServer
setting: Pylance/JediLSP/Microsoft
Bug does not appear when any one of the following is set:
- python-vscode being on version 2021.2 (or pre 2012.3)
python.languageServer
is set to ‘Jedi’ (Not ‘JediLSP’)
Steps to reproduce:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:11 (3 by maintainers)
Top Results From Across the Web
How to open 'Go to definition' in other split tab for same file in ...
You have two different ways to do that task: First one is, with the cursor on the word that you want to go...
Read more >Code Navigation in Visual Studio Code
Press Ctrl+Shift+; to focus the last element, use Left and Right to navigate, and use Space to reveal the element in the editor....
Read more >Mac keyboard shortcuts - Apple Support (CA)
Command key while double-clicking: Open a folder in a separate tab or window. Command key while dragging to another volume: Move the dragged ......
Read more >Keyboard shortcuts in Word - Microsoft Support
Shift+F2, move the cursor to the destination, and then press Enter. Define an AutoText block with the selected content. Alt+F3. Insert an AutoText...
Read more >Multiple buttons, both read as pressed twice ... - Arduino Forum
#define Button A1 #define LED 10 enum { Off = HIGH, ... You need to detect the button BEING pressed, that is GOING...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Initial dabble shows it’s fixed for me!
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!