Skip to content

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

Closed
@DonJayamanne

Description

@DonJayamanne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions