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 Very Slow, Often Hangs Indefinitely

See original GitHub issue

Environment data

  • VS Code version: 1.30.2
  • Extension version (available under the Extensions sidebar): 2018.12.1
  • OS and version: Microsoft Windows 10 Pro Version 10.0.17134 Build 17134
  • Python version: 2.7.11
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: N/A

Expected behaviour

Whilst highlighted over a Symbol, Press f12 or right-click and then click “Go To Definition” after at most a second, the code editor jumps to the definition.

Actual behaviour

More often than not, the process hangs indefinitely, not slowing vscode in any way, but showing the bar representing an async process happening in the background until reload vscode.

Occasionally does go to the definition after a very long wait of up to 2 minutes.

Screen Recording

Steps to reproduce:

  1. Open any Python Script
  2. Use the “Go To Definition” functionality on any symbol call within the script

Logs

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

Starting Jedi Python language engine.
##########Linting Output - pylint##########

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ericsnowcurrentlycommented, Feb 4, 2019

Thanks for letting us know about this, @GeorgeWL. Are you seing this behavior for simple Python files? Also, please try with the latest version of the extension and with the language server. To enable the language server set "python.jediEnabled": false in your settings.json.

0reactions
brettcannoncommented, Mar 26, 2019

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Go To Definition Very Slow, Often Hangs Indefinitely #4130
More often than not, the process hangs indefinitely, not slowing vscode in any way, but showing the bar representing an async process happening ......
Read more >
VSCode 'Go to definition' not working only in big projects
Most propably it is not "Not working" but just "pretty slow". This is a known problem for C/C++ projects using the C/C++ extension...
Read more >
Extemely slow Go to Declaration performance when the Eigen ...
I've turned off autocomplete, intentions, code formatting, everything, at it still hangs for seconds whenever it thinks it might need to help with...
Read more >
NFS file system hangs. New mount attempts hang also. | Support
An NFS mount appears to be hung or stalled indefinitely. New NFS mount attempts, pointing to the same server, may also hang.
Read more >
Where Do Old Satellites Go When They Die?
The Short Answer: Two things can happen to old satellites: For the closer satellites, engineers will use its last bit of fuel to...
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