question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Go to definition needs to be pressed twice

See original GitHub issue

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

  • 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:

vscode-python-bug

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
djpltcommented, Mar 24, 2021

Initial dabble shows it’s fixed for me!

4reactions
kimadelinecommented, Mar 24, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found