Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP seems to fail when hovering things #4416

Closed
apollo13 opened this issue Jan 6, 2023 · 28 comments
Closed

LSP seems to fail when hovering things #4416

apollo13 opened this issue Jan 6, 2023 · 28 comments
Assignees
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working

Comments

@apollo13
Copy link

apollo13 commented Jan 6, 2023

Describe the bug
I am not sure to describe it properly, I have a checkout of goodconf (https://github.com/lincolnloop/goodconf) and when starting vscode and doing things (I don't even know what exactly, it is not exactly reproducible when I try) I get this popup:

Screenshot from 2023-01-06 19-39-18

And the console shows:

[Info  - 7:39:08 PM] Pyright language server 1.1.287 starting
[Info  - 7:39:08 PM] Server root directory: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist
[Info  - 7:39:08 PM] Starting service instance "goodconf"
Received pythonPath from Python extension: /home/florian/.virtualenvs/goodconf/bin/python
[Info  - 7:39:08 PM] No configuration file found.
[Info  - 7:39:08 PM] pyproject.toml file found at /home/florian/sources/goodconf.
[Info  - 7:39:08 PM] Setting pythonPath for service "goodconf": "/home/florian/.virtualenvs/goodconf/bin/python"
[Info  - 7:39:08 PM] Loading pyproject.toml file at /home/florian/sources/goodconf/pyproject.toml
[Error - 7:39:08 PM] Pyproject file "/home/florian/sources/goodconf/pyproject.toml" is missing "[tool.pyright]" section.
[Warn  - 7:39:08 PM] stubPath /home/florian/sources/goodconf/typings is not a valid directory.
[Info  - 7:39:08 PM] Assuming Python version 3.11
[Info  - 7:39:08 PM] Assuming Python platform Linux
[Info  - 7:39:08 PM] Searching for source files
[Info  - 7:39:08 PM] Found 16 source files
[Info  - 7:39:08 PM] Background analysis(1) root directory: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist
[Info  - 7:39:08 PM] Background analysis(1) started
[Error - 7:39:09 PM] Sending request textDocument/hover failed.
  Message: request cancelled
  Code: -32800 

Aside from that pyright seems to work properly.

To Reproduce

Open the referenced project in vscode, set the python interpreter to a venv with all dependencies and play around.

Expected behavior
No Error.

VS Code extension or command-line
VSCode extension version v1.1.287

Additional context
I am sorry for this vague bug-report, please let me know what further information I can provide and if I can somehow help debugging this.

@erictraut
Copy link
Collaborator

Thanks for the bug report, but I'm unable to repro the problem you're seeing. Do you have any additional steps you could offer? Which file are you hovering in when the problem occurs? What function/symbol are you hovering over?

@erictraut erictraut added the question Further information is requested label Jan 6, 2023
@apollo13
Copy link
Author

apollo13 commented Jan 6, 2023

Okay, this sounds crazy but bear with me:

  • Open the files __init__.py, contrib/argparse.py, contrib/django.py
  • Close and reopen VSCode and note that the files are reopened
  • Now hit CTRL+PAGE_DOWN in quick succession to switch quickly through the files and you will see errors like codeAction or documentSymbol failed.

(I additionally have the debug terminal open and see that the language server starts while I am already switching files and then it throws that error).

@erictraut
Copy link
Collaborator

Hmm, I'm still not able to repro the problem. The "textDocument/hover" command is sent only when your mouse pointer is hovering over a part of the front-most document. When you scroll through the files, I presume that your mouse pointer is positioned within that document window? If so, where in the file is it pointing when the crash occurs?

Could you try setting "python.analysis.logLevel" to "Trace"? That should provide more detailed debug information.

@apollo13
Copy link
Author

apollo13 commented Jan 6, 2023

Well the errors that I get with cycling through the files are not hover but textDocument/codeAction and textDocument/documentSymbol. I figured they will be easier to trigger than hover shrug.

I have increased to trace and this is what I see while cyling through:

[Info  - 10:14:10 PM] Pyright language server 1.1.287 starting
[Info  - 10:14:10 PM] Server root directory: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist
[Info  - 10:14:10 PM] Starting service instance "goodconf"
[Info  - 10:14:10 PM] Background analysis(1) root directory: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist
[Info  - 10:14:10 PM] Background analysis(1) started
Received pythonPath from Python extension: /home/florian/.virtualenvs/goodconf/bin/python
[Info  - 10:14:11 PM] No configuration file found.
[Info  - 10:14:11 PM] pyproject.toml file found at /home/florian/sources/goodconf.
[Info  - 10:14:11 PM] Setting pythonPath for service "goodconf": "/home/florian/.virtualenvs/goodconf/bin/python"
[Info  - 10:14:11 PM] Loading pyproject.toml file at /home/florian/sources/goodconf/pyproject.toml
[Error - 10:14:11 PM] Pyproject file "/home/florian/sources/goodconf/pyproject.toml" is missing "[tool.pyright]" section.
[Warn  - 10:14:11 PM] stubPath /home/florian/sources/goodconf/typings is not a valid directory.
[Info  - 10:14:11 PM] Assuming Python version 3.11
[Info  - 10:14:11 PM] Assuming Python platform Linux
[Info  - 10:14:11 PM] Search paths for /home/florian/sources/goodconf
[Info  - 10:14:11 PM]   /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib
[Info  - 10:14:11 PM]   /home/florian/sources/goodconf
[Info  - 10:14:11 PM]   /home/florian/sources/goodconf/typings
[Info  - 10:14:11 PM]   /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stubs/...
[Info  - 10:14:11 PM]   /usr/lib64/python3.11
[Info  - 10:14:11 PM]   /usr/lib64/python3.11/lib-dynload
[Info  - 10:14:11 PM]   /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages
[Info  - 10:14:11 PM]   /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages
[Info  - 10:14:11 PM] Adding fs watcher for library directories:
 /usr/lib64/python3.11
/usr/lib64/python3.11/lib-dynload
/home/florian/.virtualenvs/goodconf/lib64/python3.11/site-packages
/home/florian/.virtualenvs/goodconf/lib/python3.11/site-packages
[Info  - 10:14:11 PM] Adding fs watcher for directories:
 /home/florian/sources/goodconf
[Info  - 10:14:11 PM] Searching for source files
[Info  - 10:14:11 PM] Found 16 source files
Background analysis message: setConfigOptions
Background analysis message: setImportResolver
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
Background analysis message: setFileOpened
Background analysis message: setFileOpened
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
[FG] parsing: /home/florian/sources/goodconf/goodconf/__init__.py (62ms)
[FG] parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 0ms] (64ms)
[FG] binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/builtins.pyi (39ms)
[FG] binding: /home/florian/sources/goodconf/goodconf/__init__.py (5ms)
[Error - 10:14:11 PM] Sending request textDocument/documentSymbol failed.
  Message: request cancelled
  Code: -32800 
[FG] parsing: /home/florian/sources/goodconf/goodconf/contrib/argparse.py (3ms)
[FG] binding: /home/florian/sources/goodconf/goodconf/contrib/argparse.py (1ms)
Background analysis message: getDiagnosticsForRange
[FG] parsing: /home/florian/sources/goodconf/goodconf/contrib/django.py (3ms)
[FG] binding: /home/florian/sources/goodconf/goodconf/contrib/django.py (1ms)
Background analysis message: getDiagnosticsForRange
Background analysis message: analyze
[BG(1)] analyzing: /home/florian/sources/goodconf/goodconf/__init__.py ...
[BG(1)]   parsing: /home/florian/sources/goodconf/goodconf/__init__.py (63ms)
[BG(1)]   parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 0ms] (67ms)
[BG(1)]   binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/builtins.pyi (35ms)
[BG(1)]   binding: /home/florian/sources/goodconf/goodconf/__init__.py (5ms)
[BG(1)]   checking: /home/florian/sources/goodconf/goodconf/__init__.py ...
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (24ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/typing.pyi (9ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/typing_extensions.pyi (2ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (6ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (2ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/types.pyi [fs read 1ms] (6ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/types.pyi (13ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/abc.pyi (0ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/errno.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/errno.pyi (2ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/json/__init__.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/json/__init__.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/logging/__init__.pyi [fs read 0ms] (10ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/logging/__init__.pyi (4ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/os/__init__.pyi [fs read 1ms] (11ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/os/__init__.pyi (23ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/sys.pyi [fs read 0ms] (5ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/sys.pyi (9ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/io.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/io.pyi (1ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/__init__.py [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/__init__.py ...
[BG(1)]       parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/errors.py [fs read 0ms] (6ms)
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/errors.py (3ms)
[BG(1)]       parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/main.py [fs read 0ms] (23ms)
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/main.py (8ms)
[BG(1)]       parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/networks.py [fs read 0ms] (19ms)
[Info  - 10:14:12 PM] Could not import 'email_validator' in file '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/networks.py'
[Info  - 10:14:12 PM]   Looking in stubPath '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Looking in root directory of execution environment '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib'
[Info  - 10:14:12 PM]   Typeshed path not found
[Info  - 10:14:12 PM]   Looking for typeshed third-party path
[Info  - 10:14:12 PM]   Looking for typeshed stubs path
[Info  - 10:14:12 PM]   Typeshed path not found
[Info  - 10:14:12 PM] Could not import 'email_validator' in file '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/networks.py'
[Info  - 10:14:12 PM]   Looking in stubPath '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Looking in root directory of execution environment '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib'
[Info  - 10:14:12 PM]   Typeshed path not found
[Info  - 10:14:12 PM]   Looking for typeshed third-party path
[Info  - 10:14:12 PM]   Looking for typeshed stubs path
[Info  - 10:14:12 PM]   Typeshed path not found
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/networks.py (5ms)
[BG(1)]       parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/tools.py [fs read 0ms] (2ms)
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/tools.py (1ms)
[BG(1)]       parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/types.py [fs read 0ms] (15ms)
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/types.py (5ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/__init__.py (89ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/env_settings.py [fs read 1ms] (17ms)
[Info  - 10:14:12 PM] Could not import 'dotenv' in file '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/env_settings.py'
[Info  - 10:14:12 PM]   Looking in stubPath '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Looking in root directory of execution environment '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib'
[Info  - 10:14:12 PM]   Typeshed path not found
[Info  - 10:14:12 PM]   Looking for typeshed third-party path
[Info  - 10:14:12 PM]   Looking for typeshed stubs path
[Info  - 10:14:12 PM]   Typeshed path not found
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/env_settings.py (3ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/utils.py [fs read 1ms] (9ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/utils.py (4ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/fields.py [fs read 0ms] (16ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/fields.py (11ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/typing.py [fs read 0ms] (4ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/typing.py (3ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/collections/abc.pyi [fs read 0ms] (0ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/collections/abc.pyi ...
[BG(1)]       parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/_collections_abc.pyi [fs read 0ms] (1ms)
[BG(1)]       binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/_collections_abc.pyi (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/collections/abc.pyi (2ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/array.pyi [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/array.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/mmap.pyi [fs read 1ms] (2ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/mmap.pyi (0ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/pickle.pyi [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/pickle.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/pathlib.pyi [fs read 1ms] (4ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/pathlib.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/weakref.pyi [fs read 0ms] (7ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/weakref.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/_weakrefset.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/_weakrefset.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/os/path.pyi [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/os/path.pyi ...
[BG(1)]       parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/posixpath.pyi [fs read 0ms] (1ms)
[BG(1)]       binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/posixpath.pyi (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/os/path.pyi (2ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/__init__.py [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/__init__.py ...
[BG(1)]       parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/cyaml.py [fs read 0ms] (5ms)
[Info  - 10:14:12 PM] Could not import '_ruamel_yaml' in file '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/cyaml.py'
[Info  - 10:14:12 PM]   Looking in stubPath '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Looking in root directory of execution environment '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib'
[Info  - 10:14:12 PM]   Typeshed path not found
[Info  - 10:14:12 PM]   Looking for typeshed third-party path
[Info  - 10:14:12 PM]   Looking for typeshed stubs path
[Info  - 10:14:12 PM]   Typeshed path not found
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/cyaml.py (1ms)
[BG(1)]       parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/main.py [fs read 0ms] (30ms)
[Info  - 10:14:12 PM] Could not import '_ruamel_yaml' in file '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/main.py'
[Info  - 10:14:12 PM]   Looking in stubPath '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:12 PM]   Looking in root directory of execution environment '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11'
[Info  - 10:14:12 PM]   Looking in python search path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Looking for typeshed stdlib path
[Info  - 10:14:12 PM]   Attempting to resolve using root path '/home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib'
[Info  - 10:14:12 PM]   Typeshed path not found
[Info  - 10:14:12 PM]   Looking for typeshed third-party path
[Info  - 10:14:12 PM]   Looking for typeshed stubs path
[Info  - 10:14:12 PM]   Typeshed path not found
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/main.py ...
[BG(1)]         parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/tokens.py [fs read 1ms] (4ms)
[BG(1)]         binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/tokens.py (2ms)
[BG(1)]         parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/events.py [fs read 0ms] (2ms)
[BG(1)]         binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/events.py (1ms)
[BG(1)]         parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/nodes.py [fs read 0ms] (1ms)
[BG(1)]         binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/nodes.py (1ms)
[BG(1)]       binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/main.py (23ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/ruamel/yaml/__init__.py (59ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/__init__.py [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/__init__.py (1ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/api.py [fs read 0ms] (6ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/api.py (5ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/toml_document.py [fs read 0ms] (0ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/toml_document.py (0ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/container.py [fs read 0ms] (7ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/container.py (4ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/items.py [fs read 0ms] (13ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/tomlkit/items.py (7ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/json/decoder.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/json/decoder.pyi (0ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/genericpath.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/genericpath.pyi (0ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/config.py [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages/pydantic/config.py (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/json/encoder.pyi [fs read 0ms] (0ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/json/encoder.pyi (1ms)
[BG(1)]     parsing: /home/florian/sources/goodconf/goodconf/contrib/django.py (3ms)
[BG(1)]     binding: /home/florian/sources/goodconf/goodconf/contrib/django.py (0ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/contextlib.pyi [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/contextlib.pyi (1ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/core/management/__init__.py [fs read 1ms] (9ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/core/management/__init__.py (2ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/__init__.py [fs read 1ms] (1ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/__init__.py (0ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/autoreload.py [fs read 0ms] (14ms)
[Info  - 10:14:13 PM] Could not import 'pywatchman' in file '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/autoreload.py'
[Info  - 10:14:13 PM]   Looking in stubPath '/home/florian/sources/goodconf/typings'
[Info  - 10:14:13 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf/typings'
[Info  - 10:14:13 PM]   Looking in root directory of execution environment '/home/florian/sources/goodconf'
[Info  - 10:14:13 PM]   Attempting to resolve stub package using root path '/home/florian/sources/goodconf'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf'
[Info  - 10:14:13 PM]   Looking in python search path '/usr/lib64/python3.11'
[Info  - 10:14:13 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/usr/lib64/python3.11'
[Info  - 10:14:13 PM]   Looking in python search path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:13 PM]   Attempting to resolve stub package using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:13 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:13 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:13 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:13 PM]   Attempting to resolve stub package using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:13 PM]   Looking for typeshed stdlib path
[Info  - 10:14:13 PM]   Looking for typeshed stdlib path
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib'
[Info  - 10:14:13 PM]   Typeshed path not found
[Info  - 10:14:13 PM]   Looking for typeshed third-party path
[Info  - 10:14:13 PM]   Looking for typeshed stubs path
[Info  - 10:14:13 PM]   Typeshed path not found
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/autoreload.py (4ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/__init__.py [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/__init__.py (0ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/functools.pyi [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/functools.pyi (1ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/apps/__init__.py [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/apps/__init__.py (0ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/apps/registry.py [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/apps/registry.py (2ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/urls/__init__.py [fs read 0ms] (0ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/urls/__init__.py (0ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/urls/base.py [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/urls/base.py (1ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/log.py [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/log.py (0ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/module_loading.py [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/module_loading.py (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/importlib/__init__.pyi [fs read 0ms] (0ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/importlib/__init__.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/logging/config.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/logging/config.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/threading.pyi [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/threading.pyi (2ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/collections/__init__.pyi [fs read 0ms] (6ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/collections/__init__.pyi (3ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/core/management/base.py [fs read 1ms] (5ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/core/management/base.py (3ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/argparse.pyi [fs read 0ms] (4ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/argparse.pyi (8ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/pkgutil.pyi [fs read 0ms] (0ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/pkgutil.pyi (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/importlib/abc.pyi [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/importlib/abc.pyi (0ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/core/management/color.py [fs read 0ms] (3ms)
[Info  - 10:14:13 PM] Could not resolve source for 'colorama' in file '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/core/management/color.py'
[Info  - 10:14:13 PM]   Looking in root directory of execution environment '/home/florian/sources/goodconf'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/sources/goodconf'
[Info  - 10:14:13 PM]   Looking in python search path '/usr/lib64/python3.11'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/usr/lib64/python3.11'
[Info  - 10:14:13 PM]   Looking in python search path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/usr/lib64/python3.11/lib-dynload'
[Info  - 10:14:13 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib64/python3.11/site-packages'
[Info  - 10:14:13 PM]   Looking in python search path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[Info  - 10:14:13 PM]   Attempting to resolve using root path '/home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages'
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/core/management/color.py (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stubs/colorama/colorama/__init__.pyi [fs read 1ms] (1ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stubs/colorama/colorama/__init__.pyi (0ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stubs/colorama/colorama/initialise.pyi [fs read 0ms] (0ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stubs/colorama/colorama/initialise.pyi (1ms)
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/termcolors.py [fs read 0ms] (3ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/termcolors.py (0ms)
[BG(1)]   checking: /home/florian/sources/goodconf/goodconf/__init__.py (835ms)
[BG(1)] analyzing: /home/florian/sources/goodconf/goodconf/__init__.py (1007ms)
[Error - 10:14:13 PM] Sending request textDocument/codeAction failed.
  Message: request cancelled
  Code: -32800 
Background analysis message: getDiagnosticsForRange
Background analysis message: getDiagnosticsForRange
Background analysis message: resumeAnalysis
[BG(1)] analyzing: /home/florian/sources/goodconf/goodconf/contrib/argparse.py ...
[BG(1)]   parsing: /home/florian/sources/goodconf/goodconf/contrib/argparse.py (0ms)
[BG(1)]   binding: /home/florian/sources/goodconf/goodconf/contrib/argparse.py (1ms)
[BG(1)]   checking: /home/florian/sources/goodconf/goodconf/contrib/argparse.py (3ms)
[BG(1)] analyzing: /home/florian/sources/goodconf/goodconf/contrib/argparse.py (4ms)
[BG(1)] analyzing: /home/florian/sources/goodconf/goodconf/contrib/django.py ...
[BG(1)]   checking: /home/florian/sources/goodconf/goodconf/contrib/django.py ...
[BG(1)]     parsing: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/version.py [fs read 0ms] (1ms)
[BG(1)]     binding: /home/florian/.local/share/virtualenvs/goodconf/lib/python3.11/site-packages/django/utils/version.py (1ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/subprocess.pyi [fs read 0ms] (10ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/subprocess.pyi (2ms)
[BG(1)]     parsing: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/datetime.pyi [fs read 0ms] (2ms)
[BG(1)]     binding: /home/florian/.vscode-oss/extensions/ms-pyright.pyright-1.1.287-universal/dist/typeshed-fallback/stdlib/datetime.pyi (8ms)
[BG(1)]   checking: /home/florian/sources/goodconf/goodconf/contrib/django.py (71ms)
[BG(1)] analyzing: /home/florian/sources/goodconf/goodconf/contrib/django.py (71ms)
Background analysis message: resumeAnalysis
Background analysis message: getDiagnosticsForRange
[Info  - 10:14:14 PM] SourceFile: Received fs event 'add' for path '/home/florian/sources/goodconf/.git/.gitstatus.CmAADG'
[Info  - 10:14:15 PM] SourceFile: Received fs event 'change' for path '/home/florian/sources/goodconf/.git/.gitstatus.CmAADG'

@heejaechang
Copy link
Collaborator

@apollo13 is this regular pyright from vscode market place? if not, where did you get the vsix? asking since there might be some hint why this is happening if I can take a look at the content of the vsix you are using.

@rchiodo
Copy link
Collaborator

rchiodo commented Jan 6, 2023

@dbaeumer this looks to be happening here:

https://github.dev/microsoft/vscode-languageserver-node/blob/8b3c375adc4fa69f63726ef58d911c8e27b261c5/client/src/common/client.ts#L654

Might this have been fixed by this here?
microsoft/vscode-languageserver-node@a6f0d22

Meaning this might be happening if the VSIX has an older version of LSP in it.

@erictraut
Copy link
Collaborator

Also, please let us know which version of VS Code you're running. If you're not on the latest production build, please update and see if that addresses the problem.

@apollo13
Copy link
Author

apollo13 commented Jan 7, 2023

Hi,

I am running VSCodium 1.74.2:

Version: 1.74.2
Release: 22355
Commit: d2c422ca15f1fbc976eed3e02e3392bbb39c5824
Date: 2022-12-21T18:22:02.785Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 6.0.16-300.fc37.x86_64
Sandboxed: No

I think VSCodium uses https://open-vsx.org/ since microsoft doesn't allow other builds to use the marketplace. If this is indeed causing this issue I am very sorry. I thought that a Code build from the official sources should basically behave like Code from Microsoft sans the telemetry (same for open source extensions). Please let me know if I can provide any further information.

@erictraut
Copy link
Collaborator

Please try it with an official VS Code build. We don't test with VSCodium releases. In theory, it should work, but it's not officially supported. Since VSCodium is fully open-sourced, you may should have everything you need to debug the problem yourself.

@apollo13
Copy link
Author

apollo13 commented Jan 8, 2023

Hi @erictraut -- Ok thank you. I did got a bit further and noticed that my pyright extension was not actually built from the latest published version but rather from b3f57ed.

So I think this issue might occur on original VSCode as well if using the extension from git. That said I am currently failing to build it. I tried following https://github.com/microsoft/pyright/blob/main/docs/build-debug.md#building-the-vs-code-extension to get an extension that I can try on VSCode proper but I get errors like:

> pyright@1.1.287 prepackage /work/packages/vscode-pyright
> node ./build/renamePackage.js pyright


> pyright@1.1.287 package /work/packages/vscode-pyright
> vsce package

Executing prepublish script 'npm run vscode:prepublish'...

> pyright@1.1.287 vscode:prepublish /work/packages/vscode-pyright
> node ./build/checkPackage.js && npm run clean && webpack --mode production --progress

> pyright@1.1.287 clean /work/packages/vscode-pyright
> shx rm -rf ./dist ./out

PublicPath: (none)

ERROR in ../pyright-internal/src/analyzer/program.ts 32:32-64
Module not found: Error: Can't resolve 'vscode-languageserver' in '/work/packages/pyright-internal/src/analyzer'

ERROR in ../pyright-internal/src/analyzer/program.ts 33:38-76
Module not found: Error: Can't resolve 'vscode-languageserver-types' in '/work/packages/pyright-internal/src/analyzer'

ERROR in ../pyright-internal/src/analyzer/service.ts 32:26-48
Module not found: Error: Can't resolve '@iarna/toml' in '/work/packages/pyright-internal/src/analyzer'

...

Do you have any tip for me what I might be doing wrong?

@apollo13
Copy link
Author

apollo13 commented Jan 8, 2023

Okay, I have used a docker container with node 14 as required here https://github.com/microsoft/pyright/blob/main/docs/build-debug.md#building-pyright but I needed an up2date npm to build it.

And heureka, reproduced on a original VSCode with pyright revision ddc6932:
Screenshot from 2023-01-08 17-44-31

@erictraut Would you mind reopening this, or are issues against the main branch also not wanted?

@erictraut
Copy link
Collaborator

erictraut commented Jan 8, 2023

It's highly unlikely that this is a regression on the pyright main branch. Since you're able to repro the problem with the latest main branch, then I presume you can also repro it with the latest published version of pyright (1.1.287), which was published just 4 days ago. Can you please verify by installing the latest version of pyright from the marketplace?

The challenge now is to determine why you're seeing this on your system when we are not able to repro it elsewhere and no other pyright or pylance users have reported it.

At the top of the issue, you mentioned a particular project (goodconf). Are you able to repro the problem with other projects, or does it seem to be specific to this code base? I'm guessing that it will happen with any code base, but just wanted to confirm since you specifically mentioned that project.

@apollo13
Copy link
Author

apollo13 commented Jan 8, 2023

Pyright 1.1.287 from the MS marketplace does not exhibit the problem.

The challenge now is to determine why you're seeing this on your system when we are not able to repro it elsewhere and no other pyright or pylance users have reported it.

Ok, let me know how to figure out more.

Are you able to repro the problem with other projects

Yes also happens on a checkout of Django, so I guess every python project.

I have attached my build (rename from zip to vsix) from current main.
pyright-1.1.287.zip

I'll happily do whatever I can to help debugging this, I am just somewhat out of my debt here.

@apollo13
Copy link
Author

apollo13 commented Jan 8, 2023

As a counter check I am now building 1.1.287 (the tag) directly and will check against that to rule out issues with my build environment.

@apollo13
Copy link
Author

apollo13 commented Jan 8, 2023

The tag 1.1.287 built manually is fine as well, I am going to bisect the commits now.

@apollo13
Copy link
Author

apollo13 commented Jan 8, 2023

@erictraut b78a9e4 Is the commit that introduces the broken behavior. So I guess this might be a "bad" back-merge and users are not seeing it yet because it is fine in pylance and not yet in a released version of pyright?

@erictraut
Copy link
Collaborator

I just realized that our build instructions were a bit out of date. Please make sure that you're using node 16.x for your build and that you're running `npm run install:all" to update dependencies.

@erictraut
Copy link
Collaborator

erictraut commented Jan 8, 2023

Based on what you're seeing, I suspect that there was something broken in vscode-languageserver between 8.1.0-next.1 and 8.1.0-next.4. You could confirm by rolling back to the older version of this library in the two package.json files that refer to it: packages/pyright-internal/package.json and packages/vscode-pyright/package.json. Then go back to your top-level directory and run npm run install:all to force a refetch of the older version of the library. Then rebuild.

@heejaechang, @rchiodo, @dbaeumer, any thoughts on this theory and potential root cause?

@erictraut erictraut reopened this Jan 8, 2023
@apollo13
Copy link
Author

apollo13 commented Jan 8, 2023

I just built with node 16 no joy.

Rolling back solely vscode-languageserver resulted in build errors:

ERROR in /work/packages/vscode-pyright/src/cancellationUtils.ts
./src/cancellationUtils.ts 44:4-20
[tsl] ERROR in /work/packages/vscode-pyright/src/cancellationUtils.ts(44,5)
      TS2416: Property 'sendCancellation' in type 'FileCancellationSenderStrategy' is not assignable to the same property in base type 'CancellationSenderStrategy'.
  Type '(_: MessageConnection, id: CancellationId) => Promise<void>' is not assignable to type '(conn: MessageConnection, id: CancellationId) => Promise<void>'.
    Types of parameters '_' and 'conn' are incompatible.
      Type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection'.
        Types of property 'sendRequest' are incompatible.
          Type '{ <R, E>(type: import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<R, E>, token?: import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationToken | unde...' is not assignable to type '{ <R, E>(type: import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<R, E>, token?: import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationToken | undefined): Promise<...>; <P, R, E>(type: import("/work/packages/vscode-py...'.
            Types of parameters 'type' and 'type' are incompatible.
              Type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<any, any>' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<any, any>'.
                Types of property 'parameterStructures' are incompatible.
                  Type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/messages").ParameterStructures' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/messages").ParameterStructures'.
                    Types have separate declarations of a private property 'kind'.

ERROR in /work/packages/vscode-pyright/src/cancellationUtils.ts
./src/cancellationUtils.ts 88:8-28
[tsl] ERROR in /work/packages/vscode-pyright/src/cancellationUtils.ts(88,9)
      TS2322: Type 'FileCancellationSenderStrategy' is not assignable to type 'CancellationSenderStrategy'.
  Types of property 'sendCancellation' are incompatible.
    Type '(_: MessageConnection, id: CancellationId) => Promise<void>' is not assignable to type '(conn: MessageConnection, id: CancellationId) => Promise<void>'.
      Types of parameters '_' and 'conn' are incompatible.
        Type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection'.

ERROR in /work/packages/vscode-pyright/src/extension.ts
./src/extension.ts 106:29-49
[tsl] ERROR in /work/packages/vscode-pyright/src/extension.ts(106,30)
      TS2322: Type 'FileBasedCancellationStrategy' is not assignable to type 'CancellationStrategy'.
  The types of 'sender.sendCancellation' are incompatible between these types.
    Type '(conn: import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection, id: import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/connection").CancellationId) => Promise<...>' is not assignable to type '(conn: import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection, id: import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/connection").CancellationId) => Promise<...>'.
      Types of parameters 'conn' and 'conn' are incompatible.
        Type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/connection").MessageConnection'.
          Types of property 'sendRequest' are incompatible.
            Type '{ <R, E>(type: import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<R, E>, token?: import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationToken | undefined): Promise<...>; <P, R, E>(type: import("/work/packages/vscode-py...' is not assignable to type '{ <R, E>(type: import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<R, E>, token?: import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationToken | unde...'.
              Types of parameters 'type' and 'type' are incompatible.
                Type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<any, any>' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/messages").RequestType0<any, any>'.
                  Types of property 'parameterStructures' are incompatible.
                    Type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/messages").ParameterStructures' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/messages").ParameterStructures'.
                      Types have separate declarations of a private property 'kind'.

ERROR in /work/packages/pyright-internal/src/languageServerBase.ts
../pyright-internal/src/languageServerBase.ts 852:8-50
[tsl] ERROR in /work/packages/pyright-internal/src/languageServerBase.ts(852,9)
      TS2322: Type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationTokenSource' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationTokenSource'.
  Types have separate declarations of a private property '_token'.

ERROR in /work/packages/pyright-internal/src/languageServerBase.ts
../pyright-internal/src/languageServerBase.ts 1325:12-50
[tsl] ERROR in /work/packages/pyright-internal/src/languageServerBase.ts(1325,13)
      TS2322: Type 'import("/work/packages/vscode-pyright/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationTokenSource' is not assignable to type 'import("/work/packages/vscode-pyright/node_modules/vscode-languageserver/node_modules/vscode-jsonrpc/lib/common/cancellation").CancellationTokenSource'.

@erictraut
Copy link
Collaborator

erictraut commented Jan 8, 2023

OK, it looks like vscode-languageserver made some changes to the cancellation code between versions 8.1.0-next.1 and 8.1.0-next.4. The error you're seeing in pyright seems to be related to cancellation, so this is likely the cause.

I'm still not able to repro the problem you're seeing on my MacOS system. Perhaps it's specific to Linux.

@apollo13, thanks for your diligence and willingness to help diagnose the problem.

I'll leave it to others on this thread to further isolate the problem since they're more familiar than I am with the internals of the vscode-languageserver library.

Update: I was just able to repro the problem on MacOS, but it happens inconsistently and rarely. (I have a fast M2 processor, and I suspect that timing is an issue here. Cancellation applies only when the previous LSP operation is still pending when the next operation is requested, so cancellation doesn't come into play as much on fast systems.)

@erictraut erictraut added bug Something isn't working needs investigation Requires additional investigation to determine course of action labels Jan 8, 2023
@dbaeumer
Copy link
Member

dbaeumer commented Jan 9, 2023

The error core -32800 is RequestCancelled. The meaning of that error is:

	/**
	 * The client has canceled a request and a server as detected
	 * the cancel.
	 */
	export const RequestCancelled: integer = -32800;

So it should only be returned by a server if the request is canceled and the server decides to not compute any result. Then the LSP client for VS Code will return a corresponding value to the VS Code API that VS Code will ignore.

If the server returns this for a request that has not been canceled by the client the client will log this. This might have gotten fixed in a newer release. The part in the spec is here https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#errorCodes and here https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#implementationConsiderations

Could it be that in the described scenario the server returns RequestCancelled although it has not received a cancel request from the client yet?

@erictraut
Copy link
Collaborator

@heejaechang, I've looked through the pyright code, and I don't see anywhere the server would send a RequestCancelled response without first receiving a cancellation event. Maybe there's a race condition that I missed, but I think that's unlikely given that pyright is single threaded. Could you review the code as well and see if you can find anything I missed? Do you have any other theories that address all of the clues we've gathered so far?

@dbaeumer
Copy link
Member

dbaeumer commented Jan 10, 2023

I think I went down the wrong path with this. The change that makes this being logged now is the additional await on this line:

https://github.com/microsoft/vscode-languageserver-node/blob/bb6a6ac6b70dd876d2ea90f12d86a1be5414f440/client/src/common/client.ts#L686

The await was not there in previous releases. Without the await the outside caller caught the exception with the await the method now does it. However the method should only be responsible for catching failed changes synchronization. Hence I move the logging into that method.

@dbaeumer
Copy link
Member

Started to work on a fix: microsoft/vscode-languageserver-node#1169

Will comment here when a new next version is available to test.

@erictraut erictraut removed the needs investigation Requires additional investigation to determine course of action label Jan 11, 2023
@dbaeumer
Copy link
Member

Published client@8.1.0-next.5 and server@8.1.0-next.5

Let me know if this addresses the issue you are seeing

@erictraut
Copy link
Collaborator

@dbaeumer, thanks for the quick fix. I'll include the update in the next version of pyright.

@erictraut erictraut added the addressed in next version Issue is fixed and will appear in next published version label Jan 11, 2023
@apollo13
Copy link
Author

The update was pulled in via #4443 and it seems to have fixed the issue at hand. Thank you! Note for anyone else stumbling onto this; this should be fixed in the yet to be released 1.1.289

@erictraut
Copy link
Collaborator

This is included in pyright 1.1.289, which I just published. It will also be included in a future release of pylance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants