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.

New language server seems to be frozen at analyzing workspace for more than 30 minutes

See original GitHub issue

Environment data

  • VS Code version: Insiders
  • Extension version (available under the Extensions sidebar): Dev
  • OS and version: Win 10, Mac
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Progress message does not go away

Expected behavior

Progress in status bar must go away.

Steps to reproduce:

  • Open PTVSD repo
  • Watch the progress indicator

Logs

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

Diagnostic Code: InvalidEnvironmentPathVariableDiagnostic, Message: The environment variable 'Path' seems to have some paths containing the '"' character. The existence of such a character is known to have caused the Python extension to not load. If the extension fails to load please modify your paths to remove this '"' character.
Starting Microsoft Python language server.
Downloading https://pvsc.blob.core.windows.net/python-language-server/Python-Language-Server-win-x64.0.1.18204.3.nupkg... complete.Unpacking archive... done.
[Info  - 7:05:48 AM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for C:\ProgramData\Anaconda3\python.exe
Loading files from c:\Development\VSCode\ptvsd
[Info  - 7:06:05 AM] Reloading modules...
[Info  - 7:06:08 AM] Reloading modules...
[Info  - 7:06:10 AM] Reloading modules...
[Info  - 7:06:23 AM] Reloading modules...
[Info  - 7:06:40 AM] Reloading modules...
[Info  - 7:06:42 AM] Reloading modules...
[Info  - 7:06:49 AM] Reloading modules...
[Error - 7:08:44 AM] One or more errors occurred. (failed to parse file file:///c:/Development/VSCode/ptvsd/one.py)
[Info  - 7:13:29 AM] Reloading modules...
[Info  - 7:13:34 AM] Reloading modules...
[Info  - 7:13:38 AM] Reloading modules...
[Info  - 7:13:40 AM] Reloading modules...
[Info  - 7:13:43 AM] Reloading modules...
[Info  - 7:13:44 AM] Reloading modules...
[Info  - 7:13:47 AM] Reloading modules...

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

capture

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:35 (4 by maintainers)

github_iconTop GitHub Comments

18reactions
d3r3kkcommented, Aug 16, 2018

@keattang, you can disable the new Python Language Server by opening settings in VSCode (Ctrl+, ) and set "python.jediEnabled": true. Then reload the window and/or restart VSCode.

8reactions
TortelliniLeapcommented, Sep 6, 2018

Also experiencing this issue. It’s been stuck analyzing 2 items for several hours. Completely restarting VS Code does not resolve it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language Server Extension Guide - Visual Studio Code
This extension has access to all VS Code Namespace API. Language Server: A language analysis tool running in a separate process. As briefly...
Read more >
VM causes host to start freezing at seemingly random intervals.
Sometimes this happens after only 30 minutes of use, sometimes this doesn't happen or many many hours, and I have yet to find...
Read more >
About this release | Citrix Workspace app for Windows
App or desktop sessions are in running state for more than 15 minutes using Citrix Workspace app. Store or account used is CAS...
Read more >
Serverless SQL pool self-help - Azure Synapse Analytics
The error Query timeout expired is returned if the query executed more than 30 minutes on serverless SQL pool. This limit for serverless...
Read more >
Technical - thinkorswim Learning Center
If you need to install thinkorswim on a new computer, or update an ... A similar page to the one mentioned above will...
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