pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

Pylance does not detect __init__ calls on cls argument in class methods

Open 4frag opened this issue 5 months ago • 4 comments

Environment data

  • Pylance version: 2025.6.2
  • OS and version: Arch Linux x86_64 6.15.6-arch1-1
  • Python version: 3.10.18

Code Snippet

class SomeClass:
    def __init__(self, arg1: str, arg2: int) -> None:
        pass

    @classmethod
    def some_method(cls) -> None:
        cls('qwe', 10)


SomeClass('qwe', 10)

Repro Steps

  1. Create class with __init__ method
  2. Create @classmethod in this class
  3. Call __init__ for cls argument inside class method
  4. Use "Go to References" LSP function for __init__ method

Expected behavior

See all references, including __init__ for cls

Actual behavior

LSP show only explicit __init__ calls like SomeClass()

Logs

2025-07-21 15:05:30.006 [info] [Info  - 3:05:30 PM] (2158665) Pylance language server 2025.6.2 (pyright version 1.1.402, commit 9496ae00) starting
2025-07-21 15:05:30.028 [info] [Info  - 3:05:30 PM] (2158665) Starting service instance "backend" for workspace "/home/4frag/my_files/work/backend"
2025-07-21 15:05:30.387 [info] [Info  - 3:05:30 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-21 15:05:30.409 [info] [Info  - 3:05:30 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-21 15:05:30.410 [info] [Info  - 3:05:30 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-21 15:05:30.410 [info] [Info  - 3:05:30 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-21 15:05:30.411 [info] [Info  - 3:05:30 PM] (2158665) Auto-excluding **/node_modules
2025-07-21 15:05:30.433 [info] [Info  - 3:05:30 PM] (2158665) Auto-excluding **/__pycache__
2025-07-21 15:05:30.434 [info] [Info  - 3:05:30 PM] (2158665) Auto-excluding **/.*
2025-07-21 15:05:30.434 [info] [Error - 3:05:30 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-21 15:05:30.435 [info] [Info  - 3:05:30 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-21 15:05:31.415 [info] [Info  - 3:05:31 PM] (2158665) Found 1543 source files
2025-07-21 15:05:31.463 [info] [Info  - 3:05:31 PM] (2158665) BG: Priority queue background worker(2) root directory: file:///home/4frag/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-21 15:05:31.463 [info] [Info  - 3:05:31 PM] (2158665) BG: Priority queue background worker(2) started
2025-07-21 15:05:31.509 [info] [Info  - 3:05:31 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-21 15:05:31.511 [info] [Info  - 3:05:31 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-21 15:05:31.534 [info] [Info  - 3:05:31 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-21 15:05:31.535 [info] [Info  - 3:05:31 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-21 15:05:31.558 [info] [Info  - 3:05:31 PM] (2158665) Auto-excluding **/node_modules
2025-07-21 15:05:31.559 [info] [Info  - 3:05:31 PM] (2158665) Auto-excluding **/__pycache__
2025-07-21 15:05:31.559 [info] [Info  - 3:05:31 PM] (2158665) Auto-excluding **/.*
2025-07-21 15:05:31.560 [info] [Error - 3:05:31 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-21 15:05:31.563 [info] [Info  - 3:05:31 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-21 15:05:32.133 [info] [Info  - 3:05:32 PM] (2158665) Found 1543 source files
2025-07-21 15:05:32.911 [info] [Info  - 3:05:32 PM] (2158665) BG: Indexer background runner(3) root directory: file:///home/4frag/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist (index)
2025-07-21 15:05:32.911 [info] [Info  - 3:05:32 PM] (2158665) BG: Indexing(3) started
2025-07-21 15:05:33.511 [info] [Info  - 3:05:33 PM] (2158665) BG: scanned(3) 286 files over 1 exec env
2025-07-21 15:05:33.783 [info] [Info  - 3:05:33 PM] (2158665) BG: indexed(3) 286 files over 1 exec env
2025-07-21 15:05:33.861 [info] [Info  - 3:05:33 PM] (2158665) BG: Indexing finished(3).
2025-07-21 15:24:20.909 [info] [Info  - 3:24:20 PM] (2158665) Starting service instance "<default>" for workspace ""
2025-07-21 15:24:20.962 [info] [Info  - 3:24:20 PM] (2158665) Setting environmentName for service "<default>": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-21 15:24:20.963 [info] [Info  - 3:24:20 PM] (2158665) Setting pythonPath for service "<default>": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-21 15:24:20.963 [info] [Info  - 3:24:20 PM] (2158665) No include entries specified; assuming /<default workspace root>
2025-07-21 15:24:20.963 [info] [Info  - 3:24:20 PM] (2158665) Auto-excluding **/node_modules
2025-07-21 15:24:20.963 [info] [Info  - 3:24:20 PM] (2158665) Auto-excluding **/__pycache__
2025-07-21 15:24:20.963 [info] [Info  - 3:24:20 PM] (2158665) Auto-excluding **/.*
2025-07-21 15:24:20.999 [info] [Info  - 3:24:20 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-21 15:24:21.059 [info] [Error - 3:24:21 PM] (2158665) File or directory "/<default workspace root>" does not exist.
2025-07-21 15:24:21.060 [info] [Info  - 3:24:21 PM] (2158665) No source files found.
2025-07-21 15:24:21.779 [info] [Info  - 3:24:21 PM] (2158665) BG: Priority queue background worker(5) root directory: file:///home/4frag/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-21 15:24:21.781 [info] [Info  - 3:24:21 PM] (2158665) BG: Priority queue background worker(5) started
2025-07-21 15:33:27.007 [info] [Info  - 3:33:27 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:27.094 [info] [Info  - 3:33:27 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:27.346 [info] [Info  - 3:33:27 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:32.706 [info] [Info  - 3:33:32 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:32.707 [info] [Info  - 3:33:32 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:34.272 [info] [Info  - 3:33:34 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:34.273 [info] [Info  - 3:33:34 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:34.695 [info] [Info  - 3:33:34 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:34.696 [info] [Info  - 3:33:34 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:35.761 [info] [Info  - 3:33:35 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:35.764 [info] [Info  - 3:33:35 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:35.956 [info] [Info  - 3:33:35 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:35.956 [info] [Info  - 3:33:35 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:36.823 [info] [Info  - 3:33:36 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:36.825 [info] [Info  - 3:33:36 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:37.639 [info] [Info  - 3:33:37 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 15:33:37.639 [info] [Info  - 3:33:37 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 17:10:56.964 [info] [Info  - 5:10:56 PM] (2158665) Setting environmentName for service "<default>": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-21 17:10:56.965 [info] [Info  - 5:10:56 PM] (2158665) Setting pythonPath for service "<default>": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-21 17:10:56.965 [info] [Info  - 5:10:56 PM] (2158665) No include entries specified; assuming /<default workspace root>
2025-07-21 17:10:56.965 [info] [Info  - 5:10:56 PM] (2158665) Auto-excluding **/node_modules
2025-07-21 17:10:56.965 [info] [Info  - 5:10:56 PM] (2158665) Auto-excluding **/__pycache__
2025-07-21 17:10:56.965 [info] [Info  - 5:10:56 PM] (2158665) Auto-excluding **/.*
2025-07-21 17:10:57.004 [info] [Info  - 5:10:57 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-21 17:10:57.067 [info] [Error - 5:10:57 PM] (2158665) File or directory "/<default workspace root>" does not exist.
2025-07-21 17:10:57.067 [info] [Info  - 5:10:57 PM] (2158665) No source files found.
2025-07-21 17:10:57.089 [info] [Info  - 5:10:57 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-21 17:10:57.090 [info] [Info  - 5:10:57 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-21 17:10:57.090 [info] [Info  - 5:10:57 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-21 17:10:57.090 [info] [Info  - 5:10:57 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-21 17:10:57.090 [info] [Info  - 5:10:57 PM] (2158665) Auto-excluding **/node_modules
2025-07-21 17:10:57.090 [info] [Info  - 5:10:57 PM] (2158665) Auto-excluding **/__pycache__
2025-07-21 17:10:57.090 [info] [Info  - 5:10:57 PM] (2158665) Auto-excluding **/.*
2025-07-21 17:10:57.091 [info] [Error - 5:10:57 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-21 17:10:57.132 [info] [Info  - 5:10:57 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-21 17:10:57.711 [info] [Info  - 5:10:57 PM] (2158665) Found 1543 source files
2025-07-21 17:10:58.605 [info] [Info  - 5:10:58 PM] (2158665) BG: Indexer background runner(6) root directory: file:///home/4frag/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist (index)
2025-07-21 17:10:58.605 [info] [Info  - 5:10:58 PM] (2158665) BG: Indexing(6) started
2025-07-21 17:10:58.874 [info] [Info  - 5:10:58 PM] (2158665) BG: scanned(6) 286 files over 1 exec env
2025-07-21 17:10:59.106 [info] [Info  - 5:10:59 PM] (2158665) BG: indexed(6) 286 files over 1 exec env
2025-07-21 17:10:59.158 [info] [Info  - 5:10:59 PM] (2158665) BG: Indexing finished(6).
2025-07-21 18:37:15.908 [info] [Info  - 6:37:15 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:37:16.963 [info] [Info  - 6:37:16 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:37:16.965 [info] [Info  - 6:37:16 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:37:17.807 [info] [Info  - 6:37:17 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:37:17.807 [info] [Info  - 6:37:17 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:51:57.389 [info] [Info  - 6:51:57 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:51:58.315 [info] [Info  - 6:51:58 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:51:58.316 [info] [Info  - 6:51:58 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:51:58.526 [info] [Info  - 6:51:58 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:51:58.527 [info] [Info  - 6:51:58 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:51:59.523 [info] [Info  - 6:51:59 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:51:59.523 [info] [Info  - 6:51:59 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:00.172 [info] [Info  - 6:52:00 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:00.173 [info] [Info  - 6:52:00 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:00.495 [info] [Info  - 6:52:00 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:00.495 [info] [Info  - 6:52:00 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:01.249 [info] [Info  - 6:52:01 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:01.250 [info] [Info  - 6:52:01 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:01.386 [info] [Info  - 6:52:01 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:01.387 [info] [Info  - 6:52:01 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:01.755 [info] [Info  - 6:52:01 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:01.755 [info] [Info  - 6:52:01 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:02.808 [info] [Info  - 6:52:02 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:02.809 [info] [Info  - 6:52:02 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:03.521 [info] [Info  - 6:52:03 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:03.522 [info] [Info  - 6:52:03 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:03.976 [info] [Info  - 6:52:03 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:03.977 [info] [Info  - 6:52:03 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:04.267 [info] [Info  - 6:52:04 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:04.268 [info] [Info  - 6:52:04 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:04.903 [info] [Info  - 6:52:04 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:04.904 [info] [Info  - 6:52:04 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:05.057 [info] [Info  - 6:52:05 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:05.057 [info] [Info  - 6:52:05 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:05.495 [info] [Info  - 6:52:05 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:05.496 [info] [Info  - 6:52:05 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:06.107 [info] [Info  - 6:52:06 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:06.108 [info] [Info  - 6:52:06 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:06.448 [info] [Info  - 6:52:06 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:06.449 [info] [Info  - 6:52:06 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:07.015 [info] [Info  - 6:52:07 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:07.016 [info] [Info  - 6:52:07 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:07.387 [info] [Info  - 6:52:07 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:07.387 [info] [Info  - 6:52:07 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:07.519 [info] [Info  - 6:52:07 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:07.520 [info] [Info  - 6:52:07 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:08.441 [info] [Info  - 6:52:08 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-21 18:52:08.442 [info] [Info  - 6:52:08 PM] (2158665) 
*Warning*: Pylance failed to parse docstring at offset 157

 Outputting literal text instead.
2025-07-22 12:48:18.762 [info] [Info  - 12:48:18 PM] (2158665) Found 1541 source files
2025-07-22 12:48:18.762 [info] [Info  - 12:48:18 PM] (2158665) Reloading configuration file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-22 12:48:18.763 [info] [Info  - 12:48:18 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-22 12:48:18.764 [info] [Info  - 12:48:18 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-22 12:48:18.764 [info] [Info  - 12:48:18 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-22 12:48:18.764 [info] [Info  - 12:48:18 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-22 12:48:18.764 [info] [Info  - 12:48:18 PM] (2158665) Auto-excluding **/node_modules
2025-07-22 12:48:18.764 [info] [Info  - 12:48:18 PM] (2158665) Auto-excluding **/__pycache__
2025-07-22 12:48:18.764 [info] [Info  - 12:48:18 PM] (2158665) Auto-excluding **/.*
2025-07-22 12:48:18.764 [info] [Error - 12:48:18 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-22 12:48:18.764 [info] [Info  - 12:48:18 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-22 12:48:19.190 [info] [Info  - 12:48:19 PM] (2158665) Found 1541 source files
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Found 1543 source files
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Reloading configuration file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Auto-excluding **/node_modules
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Auto-excluding **/__pycache__
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Auto-excluding **/.*
2025-07-22 12:49:07.911 [info] [Error - 12:49:07 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-22 12:49:07.911 [info] [Info  - 12:49:07 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-22 12:49:08.313 [info] [Info  - 12:49:08 PM] (2158665) Found 1543 source files
2025-07-22 13:14:51.260 [info] [Info  - 1:14:51 PM] (2158665) Reloading configuration file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-22 13:14:51.261 [info] [Info  - 1:14:51 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-22 13:14:51.262 [info] [Info  - 1:14:51 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-22 13:14:51.262 [info] [Info  - 1:14:51 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-22 13:14:51.262 [info] [Info  - 1:14:51 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-22 13:14:51.263 [info] [Info  - 1:14:51 PM] (2158665) Auto-excluding **/node_modules
2025-07-22 13:14:51.263 [info] [Info  - 1:14:51 PM] (2158665) Auto-excluding **/__pycache__
2025-07-22 13:14:51.263 [info] [Info  - 1:14:51 PM] (2158665) Auto-excluding **/.*
2025-07-22 13:14:51.263 [info] [Error - 1:14:51 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-22 13:14:51.263 [info] [Info  - 1:14:51 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-22 13:14:51.677 [info] [Info  - 1:14:51 PM] (2158665) Found 1543 source files
2025-07-22 13:14:56.513 [info] [Info  - 1:14:56 PM] (2158665) BG: Indexer background runner(7) root directory: file:///home/4frag/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist (refresh)
2025-07-22 13:14:56.513 [info] [Info  - 1:14:56 PM] (2158665) BG: Indexing(7) started
2025-07-22 13:14:57.144 [info] [Info  - 1:14:57 PM] (2158665) BG: scanned(7) 287 files over 1 exec env
2025-07-22 13:14:57.343 [info] [Info  - 1:14:57 PM] (2158665) BG: indexed(7) 287 files over 1 exec env
2025-07-22 13:14:57.388 [info] [Info  - 1:14:57 PM] (2158665) BG: Indexing finished(7).
2025-07-23 13:43:55.023 [info] [Info  - 1:43:55 PM] (2158665) Reloading configuration file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:43:55.024 [info] [Info  - 1:43:55 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:43:55.025 [info] [Info  - 1:43:55 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-23 13:43:55.026 [info] [Info  - 1:43:55 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-23 13:43:55.026 [info] [Info  - 1:43:55 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-23 13:43:55.026 [info] [Info  - 1:43:55 PM] (2158665) Auto-excluding **/node_modules
2025-07-23 13:43:55.026 [info] [Info  - 1:43:55 PM] (2158665) Auto-excluding **/__pycache__
2025-07-23 13:43:55.026 [info] [Info  - 1:43:55 PM] (2158665) Auto-excluding **/.*
2025-07-23 13:43:55.027 [info] [Error - 1:43:55 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-23 13:43:55.027 [info] [Info  - 1:43:55 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-23 13:43:56.420 [info] [Info  - 1:43:56 PM] (2158665) Found 1543 source files
2025-07-23 13:43:59.924 [info] [Info  - 1:43:59 PM] (2158665) Reloading configuration file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) Auto-excluding **/node_modules
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) Auto-excluding **/__pycache__
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) Auto-excluding **/.*
2025-07-23 13:43:59.925 [info] [Error - 1:43:59 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-23 13:43:59.925 [info] [Info  - 1:43:59 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-23 13:44:00.770 [info] [Info  - 1:44:00 PM] (2158665) Found 1543 source files
2025-07-23 13:52:39.826 [info] [Info  - 1:52:39 PM] (2158665) Reloading configuration file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:52:39.828 [info] [Info  - 1:52:39 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:52:39.829 [info] [Info  - 1:52:39 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-23 13:52:39.829 [info] [Info  - 1:52:39 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-23 13:52:39.830 [info] [Info  - 1:52:39 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-23 13:52:39.830 [info] [Info  - 1:52:39 PM] (2158665) Auto-excluding **/node_modules
2025-07-23 13:52:39.830 [info] [Info  - 1:52:39 PM] (2158665) Auto-excluding **/__pycache__
2025-07-23 13:52:39.830 [info] [Info  - 1:52:39 PM] (2158665) Auto-excluding **/.*
2025-07-23 13:52:39.831 [info] [Error - 1:52:39 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-23 13:52:39.831 [info] [Info  - 1:52:39 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-23 13:52:40.253 [info] [Info  - 1:52:40 PM] (2158665) Found 1543 source files
2025-07-23 13:52:45.269 [info] [Info  - 1:52:45 PM] (2158665) BG: Indexer background runner(8) root directory: file:///home/4frag/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist (refresh)
2025-07-23 13:52:45.269 [info] [Info  - 1:52:45 PM] (2158665) BG: Indexing(8) started
2025-07-23 13:52:45.835 [info] [Info  - 1:52:45 PM] (2158665) BG: scanned(8) 286 files over 1 exec env
2025-07-23 13:52:45.997 [info] [Info  - 1:52:45 PM] (2158665) BG: indexed(8) 286 files over 1 exec env
2025-07-23 13:52:46.036 [info] [Info  - 1:52:46 PM] (2158665) BG: Indexing finished(8).
2025-07-23 13:52:50.605 [info] [Info  - 1:52:50 PM] (2158665) Reloading configuration file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:52:50.605 [info] [Info  - 1:52:50 PM] (2158665) Loading pyproject.toml file at /home/4frag/my_files/work/backend/pyproject.toml
2025-07-23 13:52:50.605 [info] [Info  - 1:52:50 PM] (2158665) Setting environmentName for service "backend": "3.10.14 (inplatform-backend-py3.10 venv)"
2025-07-23 13:52:50.605 [info] [Info  - 1:52:50 PM] (2158665) Setting pythonPath for service "backend": "/home/4frag/my_files/work/backend/.venv/bin/python"
2025-07-23 13:52:50.606 [info] [Info  - 1:52:50 PM] (2158665) No include entries specified; assuming /home/4frag/my_files/work/backend
2025-07-23 13:52:50.606 [info] [Info  - 1:52:50 PM] (2158665) Auto-excluding **/node_modules
2025-07-23 13:52:50.606 [info] [Info  - 1:52:50 PM] (2158665) Auto-excluding **/__pycache__
2025-07-23 13:52:50.606 [info] [Info  - 1:52:50 PM] (2158665) Auto-excluding **/.*
2025-07-23 13:52:50.606 [info] [Error - 1:52:50 PM] (2158665) venvPath /home/4frag/my_files/work/backend/venv is not a valid directory.
2025-07-23 13:52:50.606 [info] [Info  - 1:52:50 PM] (2158665) Assuming Python version 3.10.18.final.0
2025-07-23 13:52:50.969 [info] [Info  - 1:52:50 PM] (2158665) Found 1543 source files
2025-07-23 13:52:56.056 [info] [Info  - 1:52:56 PM] (2158665) BG: Indexer background runner(9) root directory: file:///home/4frag/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist (refresh)
2025-07-23 13:52:56.056 [info] [Info  - 1:52:56 PM] (2158665) BG: Indexing(9) started
2025-07-23 13:52:56.475 [info] [Info  - 1:52:56 PM] (2158665) BG: scanned(9) 287 files over 1 exec env
2025-07-23 13:52:56.661 [info] [Info  - 1:52:56 PM] (2158665) BG: indexed(9) 287 files over 1 exec env
2025-07-23 13:52:56.713 [info] [Info  - 1:52:56 PM] (2158665) BG: Indexing finished(9).
2025-07-23 14:31:25.385 [info] [Info  - 2:31:25 PM] (2158665) [id_0] Logging started
2025-07-23 14:31:25.783 [info] [Info  - 2:31:25 PM] (2158665) Found 1543 source files
2025-07-23 14:31:25.819 [info] [Error - 2:31:25 PM] (2158665) File or directory "/<default workspace root>" does not exist.
2025-07-23 14:31:25.819 [info] [Info  - 2:31:25 PM] (2158665) No source files found.

4frag avatar Jul 23 '25 11:07 4frag

Hi @4frag, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.


Duplicate IssuesThese issues appear to be duplicates of your report.

  • The result of finding all references to the init function is not correct (https://github.com/microsoft/pylance-release/issues/4954)

The team will respond to your issue shortly. Please note this is a trial feature and may not be fully accurate. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or was incorrect, please give it a 👎. Your feedback helps us improve!

github-actions[bot] avatar Jul 23 '25 11:07 github-actions[bot]

Thanks for the issue. I imagine this is just a case we don't handle yet and it wasn't purposefully skipped.

rchiodo avatar Jul 23 '25 17:07 rchiodo

Can I give it a try?

Hassan9255 avatar Jul 23 '25 18:07 Hassan9255

Sorry @Hassan9255, but Pylance is not currently open source.

rchiodo avatar Jul 23 '25 18:07 rchiodo