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

Inconsistent semantic highlighting of functions / "function-like" objects #6857

Open
jnooree opened this issue Jan 17, 2025 · 1 comment
Open
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@jnooree
Copy link

jnooree commented Jan 17, 2025

Environment data

  • Pylance version: 2025.1.100 (prerelease)
  • OS and version: macOS 15.2
  • Python version (& distribution if applicable, e.g. Anaconda): irrelevant

Code Snippet

class Test:
    def __init__(self):
        self.ref = func
        self.prop = 1

    def __call__(self):
        pass


def func():
    pass


obj = object()

test = Test()  # "test" should colorize as an object, not a function
test.ref  # "ref" should colorize as a function, not a property
another_ref = test.ref  # "another_ref" correctly colorizes as a function

Repro Steps

Logs

2025-01-17 14:03:11.765 [info] (Client) Pylance async client (2025.1.100) started with python extension (2024.22.2)
2025-01-17 14:03:12.158 [info] [Info  - 2:03:12 PM] (19280) Server root directory: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist
2025-01-17 14:03:12.159 [info] [Info  - 2:03:12 PM] (19280) Pylance language server 2025.1.100 (pyright version 1.1.392, commit c87dd0bd) starting
2025-01-17 14:03:12.172 [info] [Info  - 2:03:12 PM] (19280) Starting service instance "<default>"
2025-01-17 14:03:12.204 [info] [Info  - 2:03:12 PM] (19280) Setting environmentName for service "<default>": "3.12.7 (default conda)"
2025-01-17 14:03:12.204 [info] [Info  - 2:03:12 PM] (19280) Setting pythonPath for service "<default>": "/Users/jnooree/anaconda3/envs/default/bin/python"
2025-01-17 14:03:12.208 [info] [Info  - 2:03:12 PM] (19280) No include entries specified; assuming /<default workspace root>
2025-01-17 14:03:12.208 [info] [Info  - 2:03:12 PM] (19280) Auto-excluding **/node_modules
2025-01-17 14:03:12.208 [info] [Info  - 2:03:12 PM] (19280) Auto-excluding **/__pycache__
2025-01-17 14:03:12.208 [info] [Info  - 2:03:12 PM] (19280) Auto-excluding **/.*
2025-01-17 14:03:12.224 [info] [Info  - 2:03:12 PM] (19280) Assuming Python version 3.12.7.final.0
2025-01-17 14:03:12.320 [info] [Error - 2:03:12 PM] (19280) File or directory "/<default workspace root>" does not exist.
2025-01-17 14:03:12.321 [info] [Info  - 2:03:12 PM] (19280) No source files found.
2025-01-17 14:03:12.357 [info] [Info  - 2:03:12 PM] (19280) Setting environmentName for service "<default>": "3.12.7 (default conda)"
2025-01-17 14:03:12.357 [info] [Info  - 2:03:12 PM] (19280) Setting pythonPath for service "<default>": "/Users/jnooree/anaconda3/envs/default/bin/python"
2025-01-17 14:03:12.357 [info] [Info  - 2:03:12 PM] (19280) No include entries specified; assuming /<default workspace root>
2025-01-17 14:03:12.358 [info] [Info  - 2:03:12 PM] (19280) Auto-excluding **/node_modules
2025-01-17 14:03:12.358 [info] [Info  - 2:03:12 PM] (19280) Auto-excluding **/__pycache__
2025-01-17 14:03:12.358 [info] [Info  - 2:03:12 PM] (19280) Auto-excluding **/.*
2025-01-17 14:03:12.397 [info] [Info  - 2:03:12 PM] (19280) Assuming Python version 3.12.7.final.0
2025-01-17 14:03:12.434 [info] [Error - 2:03:12 PM] (19280) File or directory "/<default workspace root>" does not exist.
2025-01-17 14:03:12.434 [info] [Info  - 2:03:12 PM] (19280) No source files found.
2025-01-17 14:03:12.659 [info] [Info  - 2:03:12 PM] (19280) Background analysis(1) root directory: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist
2025-01-17 14:03:12.660 [info] [Info  - 2:03:12 PM] (19280) Background analysis(1) started
2025-01-17 14:06:46.454 [info] (19280) No pyproject.toml file found.
2025-01-17 14:06:46.455 [info] [Info  - 2:06:46 PM] (19280) Setting environmentName for service "<default>": "3.12.7 (default conda)"
2025-01-17 14:06:46.455 [info] [Info  - 2:06:46 PM] (19280) Setting pythonPath for service "<default>": "/Users/jnooree/anaconda3/envs/default/bin/python"
2025-01-17 14:06:46.455 [info] [Info  - 2:06:46 PM] (19280) No include entries specified; assuming /<default workspace root>
2025-01-17 14:06:46.455 [info] [Info  - 2:06:46 PM] (19280) Auto-excluding **/node_modules
2025-01-17 14:06:46.455 [info] [Info  - 2:06:46 PM] (19280) Auto-excluding **/__pycache__
2025-01-17 14:06:46.455 [info] [Info  - 2:06:46 PM] (19280) Auto-excluding **/.*
2025-01-17 14:06:46.480 [info] [Info  - 2:06:46 PM] (19280) Assuming Python version 3.12.7.final.0
2025-01-17 14:06:46.480 [info] (19280) Assuming Python platform Darwin
2025-01-17 14:06:46.516 [info] [Info  - 2:06:46 PM] (19280) Execution environment: 3.12.7 (default conda)
2025-01-17 14:06:46.516 [info] [Info  - 2:06:46 PM] (19280)   Extra paths:
2025-01-17 14:06:46.516 [info] [Info  - 2:06:46 PM] (19280)     (none)
2025-01-17 14:06:46.516 [info] [Info  - 2:06:46 PM] (19280)   Python version: 3.12.7.final.0
2025-01-17 14:06:46.516 [info] [Info  - 2:06:46 PM] (19280)   Python platform: Darwin
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)   Search paths:
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /<default workspace root>
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /<default workspace root>/typings
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stubs/...
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/bundled/stubs
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /Users/jnooree/anaconda3/envs/default/lib/python3.12
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /Users/jnooree/anaconda3/envs/default/lib/python3.12/lib-dynload
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280)     /Users/jnooree/anaconda3/envs/default/lib/python3.12/site-packages
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280) Adding fs watcher for library directories:
 file:///Users/jnooree/anaconda3/envs/default/lib/python3.12
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280) Adding fs watcher for directories:
 file:///%3Cdefault%20workspace%20root%3E
2025-01-17 14:06:46.517 [info] (19280) Searching for source files
2025-01-17 14:06:46.517 [info] [Error - 2:06:46 PM] (19280) File or directory "/<default workspace root>" does not exist.
2025-01-17 14:06:46.517 [info] [Info  - 2:06:46 PM] (19280) No source files found.
2025-01-17 14:06:46.517 [info] (19280) Adding fs watcher for files:
 file:///%3Cdefault%20workspace%20root%3E/requirements.txt
file:///%3Cdefault%20workspace%20root%3E/pyproject.toml
2025-01-17 14:06:46.519 [info] (19280) [IDX(FG)] index libraries file:///%3Cdefault%20workspace%20root%3E (index) ...
2025-01-17 14:06:46.519 [info] (19280) [IDX(FG)]   read stdlib indices (0ms)
2025-01-17 14:06:46.520 [info] (19280) [IDX(FG)] index libraries file:///%3Cdefault%20workspace%20root%3E (index) [failed] (0ms)
2025-01-17 14:06:46.520 [info] (19280) pytest configurations: {"message":"spawn /Users/jnooree/anaconda3/envs/default/bin/python ENOENT","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:46.520 [info] (19280) pytest configurations: {"message":"spawn /Users/jnooree/anaconda3/envs/default/bin/python ENOENT","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:46.535 [info] (19280) Attempting to resolve using local imports: __builtins__
2025-01-17 14:06:46.535 [info] (19280) Attempting to resolve using root path 'file:///private/tmp/jnooree'
2025-01-17 14:06:46.536 [info] (19280) [BG(1)] analyzing: file:///private/tmp/jnooree/test.py ...
2025-01-17 14:06:46.536 [info] (19280) [BG(1)]   parsing: file:///private/tmp/jnooree/test.py (13ms)
2025-01-17 14:06:46.556 [info] (19280) [BG(1)]   parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (21ms)
2025-01-17 14:06:46.562 [info] (19280) [BG(1)]   binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi (6ms)
2025-01-17 14:06:46.563 [info] (19280) [BG(1)]   binding: file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:06:46.573 [info] (19280) [BG(1)]   checking: file:///private/tmp/jnooree/test.py ...
2025-01-17 14:06:46.573 [info] (19280) [BG(1)]     parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (7ms)
2025-01-17 14:06:46.577 [info] (19280) [BG(1)]     binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/typing.pyi (3ms)
2025-01-17 14:06:46.580 [info] (19280) [BG(1)]     parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (3ms)
2025-01-17 14:06:46.582 [info] (19280) [BG(1)]     binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/types.pyi (1ms)
2025-01-17 14:06:46.585 [info] (19280) [BG(1)]     parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (3ms)
2025-01-17 14:06:46.585 [info] (19280) [BG(1)]     binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (0ms)
2025-01-17 14:06:46.587 [info] (19280) [BG(1)]     parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (1ms)
2025-01-17 14:06:46.587 [info] (19280) [BG(1)]     binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/abc.pyi (0ms)
2025-01-17 14:06:46.587 [info] (19280) [BG(1)]   checking: file:///private/tmp/jnooree/test.py (25ms)
2025-01-17 14:06:46.588 [info] [Info  - 2:06:46 PM] (19280) Heap stats: total_memory_size=16384MB, total_free_size=320MB, total_heap_size=75MB, used_heap_size=68MB, cross_worker_used_heap_size=68MB, total_physical_size=73MB, total_available_size=4027MB, heap_size_limit=4096MB
2025-01-17 14:06:46.588 [info] (19280) [BG(1)] analyzing: file:///private/tmp/jnooree/test.py (66ms)
2025-01-17 14:06:47.421 [info] (19280) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:06:47.695 [info] (19280) [BG(1)] SemanticTokens delta previousResultId:1737090268625 at file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:06:47.720 [info] (19280) Attempting to resolve using local imports: __builtins__
2025-01-17 14:06:47.720 [info] (19280) Attempting to resolve using root path 'file:///private/tmp/jnooree'
2025-01-17 14:06:47.721 [info] (19280) [FG] parsing: file:///private/tmp/jnooree/test.py (20ms)
2025-01-17 14:06:47.753 [info] (19280) [FG] parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (33ms)
2025-01-17 14:06:47.761 [info] (19280) [FG] binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi (8ms)
2025-01-17 14:06:47.761 [info] (19280) [FG] binding: file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:06:48.836 [info] (19280) WorkspaceFactory 0 clear
2025-01-17 14:06:48.840 [info] (Client) Experiment 'pythonRecommendTensorboardExt' is active
2025-01-17 14:06:48.840 [info] (Client) Experiment 'pythonSurveyNotification' is active
2025-01-17 14:06:48.840 [info] (Client) Experiment 'pythonTerminalEnvVarActivation' is active
2025-01-17 14:06:48.840 [info] (Client) Experiment 'pythonTestAdapter' is active
2025-01-17 14:06:48.863 [info] [Info  - 2:06:48 PM] Server process exited successfully
2025-01-17 14:06:49.367 [info] (Client) Pylance async client (2025.1.100) started with python extension (2024.22.2)
2025-01-17 14:06:49.696 [info] [Info  - 2:06:49 PM] (19720) Server root directory: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist
2025-01-17 14:06:49.697 [info] [Info  - 2:06:49 PM] (19720) Pylance language server 2025.1.100 (pyright version 1.1.392, commit c87dd0bd) starting
2025-01-17 14:06:49.705 [info] [Info  - 2:06:49 PM] (19720) Starting service instance "<default>"
2025-01-17 14:06:49.731 [info] (19720) No pyproject.toml file found.
2025-01-17 14:06:49.731 [info] [Info  - 2:06:49 PM] (19720) Setting environmentName for service "<default>": "3.12.7 (default conda)"
2025-01-17 14:06:49.731 [info] [Info  - 2:06:49 PM] (19720) Setting pythonPath for service "<default>": "/Users/jnooree/anaconda3/envs/default/bin/python"
2025-01-17 14:06:49.731 [info] [Info  - 2:06:49 PM] (19720) No include entries specified; assuming /<default workspace root>
2025-01-17 14:06:49.731 [info] [Info  - 2:06:49 PM] (19720) Auto-excluding **/node_modules
2025-01-17 14:06:49.731 [info] [Info  - 2:06:49 PM] (19720) Auto-excluding **/__pycache__
2025-01-17 14:06:49.731 [info] [Info  - 2:06:49 PM] (19720) Auto-excluding **/.*
2025-01-17 14:06:49.747 [info] [Info  - 2:06:49 PM] (19720) Assuming Python version 3.12.7.final.0
2025-01-17 14:06:49.747 [info] (19720) Assuming Python platform Darwin
2025-01-17 14:06:49.781 [info] [Info  - 2:06:49 PM] (19720) Execution environment: 3.12.7 (default conda)
2025-01-17 14:06:49.781 [info] [Info  - 2:06:49 PM] (19720)   Extra paths:
2025-01-17 14:06:49.781 [info] [Info  - 2:06:49 PM] (19720)     (none)
2025-01-17 14:06:49.781 [info] [Info  - 2:06:49 PM] (19720)   Python version: 3.12.7.final.0
2025-01-17 14:06:49.781 [info] [Info  - 2:06:49 PM] (19720)   Python platform: Darwin
2025-01-17 14:06:49.781 [info] [Info  - 2:06:49 PM] (19720)   Search paths:
2025-01-17 14:06:49.781 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720)     /<default workspace root>
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720)     /<default workspace root>/typings
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stubs/...
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/bundled/stubs
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/anaconda3/envs/default/lib/python3.12
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/anaconda3/envs/default/lib/python3.12/lib-dynload
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/anaconda3/envs/default/lib/python3.12/site-packages
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720) Adding fs watcher for library directories:
 file:///Users/jnooree/anaconda3/envs/default/lib/python3.12
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720) Adding fs watcher for directories:
 file:///%3Cdefault%20workspace%20root%3E
2025-01-17 14:06:49.782 [info] (19720) Searching for source files
2025-01-17 14:06:49.782 [info] [Error - 2:06:49 PM] (19720) File or directory "/<default workspace root>" does not exist.
2025-01-17 14:06:49.782 [info] [Info  - 2:06:49 PM] (19720) No source files found.
2025-01-17 14:06:49.782 [info] (19720) Adding fs watcher for files:
 file:///%3Cdefault%20workspace%20root%3E/requirements.txt
file:///%3Cdefault%20workspace%20root%3E/pyproject.toml
2025-01-17 14:06:49.783 [info] (19720) Dependency Discovered: 
2025-01-17 14:06:49.784 [info] (19720) Dependency Discovered: 
2025-01-17 14:06:49.793 [info] (19720) [IDX(FG)] index libraries file:///%3Cdefault%20workspace%20root%3E (index) ...
2025-01-17 14:06:49.793 [info] (19720) [IDX(FG)]   read stdlib indices (0ms)
2025-01-17 14:06:49.793 [info] (19720) [IDX(FG)] index libraries file:///%3Cdefault%20workspace%20root%3E (index) [failed] (1ms)
2025-01-17 14:06:49.794 [info] (19720) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:49.794 [info] (19720) pytest configurations: {"message":"spawn /Users/jnooree/anaconda3/envs/default/bin/python ENOENT","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:49.796 [info] (19720) No pyproject.toml file found.
2025-01-17 14:06:49.796 [info] [Info  - 2:06:49 PM] (19720) Setting environmentName for service "<default>": "3.12.7 (default conda)"
2025-01-17 14:06:49.796 [info] [Info  - 2:06:49 PM] (19720) Setting pythonPath for service "<default>": "/Users/jnooree/anaconda3/envs/default/bin/python"
2025-01-17 14:06:49.796 [info] [Info  - 2:06:49 PM] (19720) No include entries specified; assuming /<default workspace root>
2025-01-17 14:06:49.796 [info] [Info  - 2:06:49 PM] (19720) Auto-excluding **/node_modules
2025-01-17 14:06:49.796 [info] [Info  - 2:06:49 PM] (19720) Auto-excluding **/__pycache__
2025-01-17 14:06:49.796 [info] [Info  - 2:06:49 PM] (19720) Auto-excluding **/.*
2025-01-17 14:06:49.813 [info] [Info  - 2:06:49 PM] (19720) Assuming Python version 3.12.7.final.0
2025-01-17 14:06:49.813 [info] (19720) Assuming Python platform Darwin
2025-01-17 14:06:49.842 [info] [Info  - 2:06:49 PM] (19720) Execution environment: 3.12.7 (default conda)
2025-01-17 14:06:49.842 [info] [Info  - 2:06:49 PM] (19720)   Extra paths:
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     (none)
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)   Python version: 3.12.7.final.0
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)   Python platform: Darwin
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)   Search paths:
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /<default workspace root>
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /<default workspace root>/typings
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stubs/...
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/bundled/stubs
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/anaconda3/envs/default/lib/python3.12
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/anaconda3/envs/default/lib/python3.12/lib-dynload
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720)     /Users/jnooree/anaconda3/envs/default/lib/python3.12/site-packages
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720) Adding fs watcher for library directories:
 file:///Users/jnooree/anaconda3/envs/default/lib/python3.12
2025-01-17 14:06:49.843 [info] [Info  - 2:06:49 PM] (19720) Adding fs watcher for directories:
 file:///%3Cdefault%20workspace%20root%3E
2025-01-17 14:06:49.843 [info] (19720) Searching for source files
2025-01-17 14:06:49.843 [info] [Error - 2:06:49 PM] (19720) File or directory "/<default workspace root>" does not exist.
2025-01-17 14:06:49.844 [info] [Info  - 2:06:49 PM] (19720) No source files found.
2025-01-17 14:06:49.844 [info] (19720) Adding fs watcher for files:
 file:///%3Cdefault%20workspace%20root%3E/requirements.txt
file:///%3Cdefault%20workspace%20root%3E/pyproject.toml
2025-01-17 14:06:49.845 [info] (19720) [IDX(FG)] index libraries file:///%3Cdefault%20workspace%20root%3E (index) ...
2025-01-17 14:06:49.845 [info] (19720) [IDX(FG)]   read stdlib indices (0ms)
2025-01-17 14:06:49.845 [info] (19720) [IDX(FG)] index libraries file:///%3Cdefault%20workspace%20root%3E (index) [failed] (0ms)
2025-01-17 14:06:49.899 [info] (19720) Attempting to resolve using local imports: __builtins__
2025-01-17 14:06:49.899 [info] (19720) Attempting to resolve using root path 'file:///private/tmp/jnooree'
2025-01-17 14:06:49.907 [info] (19720) [FG] parsing: file:///private/tmp/jnooree/test.py (56ms)
2025-01-17 14:06:49.942 [info] (19720) [FG] parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 4ms] (37ms)
2025-01-17 14:06:49.963 [info] (19720) [FG] binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi (19ms)
2025-01-17 14:06:49.963 [info] (19720) [FG] binding: file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:06:49.964 [info] (19720) pytest configurations: {"message":"spawn /Users/jnooree/anaconda3/envs/default/bin/python ENOENT","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:50.004 [info] (19720) [FG] parsing: file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:06:50.017 [info] (19720) [FG] parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 0ms] (13ms)
2025-01-17 14:06:50.030 [info] (19720) [FG] binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi (12ms)
2025-01-17 14:06:50.030 [info] (19720) [FG] binding: file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:06:50.122 [info] [Info  - 2:06:50 PM] (19720) Background analysis(1) root directory: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist
2025-01-17 14:06:50.124 [info] [Info  - 2:06:50 PM] (19720) Background analysis(1) started
2025-01-17 14:06:50.158 [info] (19720) pytest configurations: {"message":"request cancelled","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:50.158 [info] (19720) pytest configurations: {"message":"spawn /Users/jnooree/anaconda3/envs/default/bin/python ENOENT","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:50.184 [info] (19720) pytest configurations: {"message":"spawn /Users/jnooree/anaconda3/envs/default/bin/python ENOENT","classes":["Test"],"files":["test_*.py","*_test.py"],"functions":["test"]}
2025-01-17 14:06:50.184 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:06:50.204 [info] (19720) Attempting to resolve using local imports: __builtins__
2025-01-17 14:06:50.204 [info] (19720) Attempting to resolve using root path 'file:///private/tmp/jnooree'
2025-01-17 14:06:50.204 [info] (19720) [BG(1)] SemanticTokens full at file:///private/tmp/jnooree/test.py ...
2025-01-17 14:06:50.204 [info] (19720) [BG(1)]   parsing: file:///private/tmp/jnooree/test.py (19ms)
2025-01-17 14:06:50.228 [info] (19720) [BG(1)]   parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 1ms] (23ms)
2025-01-17 14:06:50.243 [info] (19720) [BG(1)]   binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/builtins.pyi (12ms)
2025-01-17 14:06:50.243 [info] (19720) [BG(1)]   binding: file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:06:50.258 [info] (19720) [BG(1)]   parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/typing.pyi [fs read 1ms] (11ms)
2025-01-17 14:06:50.262 [info] (19720) [BG(1)]   binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/typing.pyi (4ms)
2025-01-17 14:06:50.271 [info] (19720) [BG(1)]   parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/types.pyi [fs read 0ms] (3ms)
2025-01-17 14:06:50.272 [info] (19720) [BG(1)]   binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/types.pyi (1ms)
2025-01-17 14:06:50.276 [info] (19720) [BG(1)]   parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (2ms)
2025-01-17 14:06:50.277 [info] (19720) [BG(1)]   binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
2025-01-17 14:06:50.280 [info] (19720) [BG(1)]   parsing: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (0ms)
2025-01-17 14:06:50.281 [info] (19720) [BG(1)]   binding: file:///Users/jnooree/Applications/code-portable-data/extensions/ms-python.vscode-pylance-2025.1.100/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
2025-01-17 14:06:50.287 [info] (19720) [BG(1)] SemanticTokens full at file:///private/tmp/jnooree/test.py (103ms)
2025-01-17 14:06:50.287 [info] (19720) [BG(1)] SemanticTokens range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:06:50.289 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (2ms)
2025-01-17 14:06:50.300 [info] (19720) [BG(1)] analyzing: file:///private/tmp/jnooree/test.py ...
2025-01-17 14:06:50.300 [info] (19720) [BG(1)]   checking: file:///private/tmp/jnooree/test.py (10ms)
2025-01-17 14:06:50.300 [info] (19720) [BG(1)] analyzing: file:///private/tmp/jnooree/test.py (10ms)
2025-01-17 14:06:50.302 [info] (19720) [BG(1)] SemanticTokens delta previousResultId:1737090410243 at file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:06:51.678 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (0ms)
2025-01-17 14:07:01.892 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:07:01.939 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:07:01.980 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:07:02.012 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (1ms)
2025-01-17 14:07:02.041 [info] (19720) [BG(1)] InlayHints range 0:0 - 15:0 at file:///private/tmp/jnooree/test.py (0ms)
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Jan 17, 2025
@cquick01
Copy link

I am seeing the same.

Issue occurs on Pylance v2025.1.100

Image

But not on v2024.12.100

Image

Version: 1.97.0-insider (user setup)
Commit: a74aabd9bb87c33b047c822aa79d265bc5f5543e
Date: 2025-01-17T05:04:33.457Z
Electron: 32.2.7
ElectronBuildId: 10660205
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants