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 does not work.

See original GitHub issue

Environment data

  • VS Code version: 1.28.2
  • Extension version (available under the Extensions sidebar): image
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.15 64bit anaconda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda

Actual behavior

Go to definition does not work. 1

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
Microsoft Python Language Server version 0.1.50.0
Initializing for C:\Users\chzhu\AppData\Local\Continuum\anaconda2\envs\clover2\python.exe
[Error - 10:21:06 AM] One or more errors occurred. (Exception of type 'Microsoft.PythonTools.Parsing.BadSourceException' was thrown.)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Nov 13, 2018
  • Please could you try installing the latest version of the extension and letting me know how this is.
  • If the problem persists please could you provide a sample repo I can use to replicate this at my end. Thanks
0reactions
DanielSundbergcommented, Dec 27, 2018

As a workaround, I usually search the method name as a string.

Well, the reason “Go to definition” was invented was to get rid of this “workaround”… I still think having the functionality hang in 50% of the cases is worse than not having it at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode "go to definition" not working - Stack Overflow
A simple solution that worked for me is that I closed the current workspace and created a new workspace, added the folders which...
Read more >
Go to definition not working · Issue #6854 - GitHub
I tried to open another project and it worked! but my project does not. ... Other extensions you installed (and if the issue...
Read more >
Ctrl + Click go to definition not working. : r/vscode - Reddit
I had a the same issue: F12 and Ctrl + Click and Right Click "Go To Definition" wasn't working. The fix for me...
Read more >
VS 2019 ignores Go to Definition setting
In Visual Studio 2019, go to View --> Options --> Text Editor --> General · Either uncheck “Enable mouse click to perform Go...
Read more >
Go to definition not always working in VS Code
I would run an SFDX: Refresh SObject Definitions to make sure all definitions are imported. Also check that your Java runtime for the...
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