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

Pylance slow to analyze files even in "simple" example #4514

Closed
j-kleemann-old opened this issue Jun 20, 2023 · 5 comments
Closed

Pylance slow to analyze files even in "simple" example #4514

j-kleemann-old opened this issue Jun 20, 2023 · 5 comments
Assignees
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version needs investigation Could be an issue - needs investigation

Comments

@j-kleemann-old
Copy link

Environment data

  • Language Server version: 2023.6.20
  • OS and version: win32 x64
  • Python version (and distribution if applicable, e.g. Anaconda): Python 3.11.3
  • python.analysis.indexing: true
  • python.analysis.typeCheckingMode: basic
  • numpy version: 1.23.4
  • uncertainties version: 3.1.7

Code Snippet

Some simple synthetic example I could come up with:

import numpy as np
import uncertainties.unumpy as unp

def foo(values):
  return np.array([unp.std_devs(values)])

def foo2(values):
  return np.array([unp.std_devs(values)])

def foo3(values):
  return np.array([unp.std_devs(values)])

Repro Steps

  • Put the code snippet into a python source file and open it with vs code.
  • Every time even a single character is changed (e.g. adding a new line at the end) a reanalyzation is triggered (vs code status bar shows "1 file to analyze" on its left side), which takes more than 5s even in this "simple" example. During this time, e.g., syntax highlighting and problem detection do not work.

Expected behavior

  • The analyzation should be much faster than 5s (or maybe not triggered immediately, if it takes that long?)

Actual behavior

  • Analyzation takes > 5s and blocks useful features from working (syntax highlighting and problem detection). In an actual project of mine this/similiar issues pile up to > 17s, which makes the editor experience subpar.

Logs

2023-06-20 13:33:48.431 [info] [Info  - 1:33:48 PM] (16692) Pylance language server 2023.6.20 (pyright 73165c50) starting
2023-06-20 13:33:48.432 [info] [Info  - 1:33:48 PM] (16692) Server root directory: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist
2023-06-20 13:33:48.432 [info] [Info  - 1:33:48 PM] (16692) Auto format for strings enabled
2023-06-20 13:33:48.452 [info] [Info  - 1:33:48 PM] (16692) Starting service instance "<default>"
2023-06-20 13:33:48.479 [info] (16692) No pyproject.toml file found.
2023-06-20 13:33:48.480 [info] [Info  - 1:33:48 PM] (16692) Setting pythonPath for service "<default>": "C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\python.exe"
2023-06-20 13:33:48.484 [info] [Warn  - 1:33:48 PM] (16692) stubPath typings is not a valid directory.
2023-06-20 13:33:48.564 [info] [Info  - 1:33:48 PM] (16692) Assuming Python version 3.11
2023-06-20 13:33:48.564 [info] (16692) Assuming Python platform Windows
2023-06-20 13:33:48.740 [info] [Info  - 1:33:48 PM] (16692) Search paths for <default>
2023-06-20 13:33:48.740 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib
2023-06-20 13:33:48.740 [info] [Info  - 1:33:48 PM] (16692)   typings
2023-06-20 13:33:48.740 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stubs\...
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\bundled\stubs
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\Dropbox\TUD\PythonPackages
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
2023-06-20 13:33:48.741 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
2023-06-20 13:33:48.742 [info] [Info  - 1:33:48 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin
2023-06-20 13:33:48.742 [info] [Info  - 1:33:48 PM] (16692) Adding fs watcher for library directories:
 C:\Users\jkleemann\Dropbox\TUD\PythonPackages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin
2023-06-20 13:33:48.744 [info] (16692) Searching for source files
2023-06-20 13:33:48.744 [info] [Info  - 1:33:48 PM] (16692) No source files found.
2023-06-20 13:33:48.794 [info] (16692) [IDX(FG)] index libraries  (index) ...
2023-06-20 13:33:48.794 [info] (16692) [IDX(FG)]   read stdlib indices (32ms)
2023-06-20 13:33:48.795 [info] (16692) [IDX(FG)] index libraries  (index) [succeed] (35ms)
2023-06-20 13:33:48.798 [info] (16692) No pyproject.toml file found.
2023-06-20 13:33:48.798 [info] [Info  - 1:33:48 PM] (16692) Setting pythonPath for service "<default>": "C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\python.exe"
2023-06-20 13:33:48.798 [info] [Warn  - 1:33:48 PM] (16692) stubPath typings is not a valid directory.
2023-06-20 13:33:48.900 [info] [Info  - 1:33:48 PM] (16692) Assuming Python version 3.11
2023-06-20 13:33:48.900 [info] (16692) Assuming Python platform Windows
2023-06-20 13:33:49.065 [info] [Info  - 1:33:49 PM] (16692) Search paths for <default>
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   typings
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stubs\...
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\bundled\stubs
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\Dropbox\TUD\PythonPackages
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
2023-06-20 13:33:49.066 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
2023-06-20 13:33:49.067 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
2023-06-20 13:33:49.067 [info] [Info  - 1:33:49 PM] (16692)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin
2023-06-20 13:33:49.067 [info] [Info  - 1:33:49 PM] (16692) Adding fs watcher for library directories:
 C:\Users\jkleemann\Dropbox\TUD\PythonPackages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin
2023-06-20 13:33:49.067 [info] (16692) Searching for source files
2023-06-20 13:33:49.068 [info] [Info  - 1:33:49 PM] (16692) No source files found.
2023-06-20 13:33:49.073 [info] (16692) [IDX(FG)] index libraries  (index) ...
2023-06-20 13:33:49.073 [info] (16692) [IDX(FG)]   read stdlib indices (0ms)
2023-06-20 13:33:49.075 [info] (16692) [IDX(FG)] index libraries  (index) [succeed] (1ms)
2023-06-20 13:33:49.185 [info] (16692) [FG] parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (109ms)
2023-06-20 13:33:49.315 [info] (16692) [FG] parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 2ms] (129ms)
2023-06-20 13:33:49.345 [info] (16692) [FG] binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi (30ms)
2023-06-20 13:33:49.346 [info] (16692) [FG] binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (1ms)
2023-06-20 13:33:49.355 [info] [Info  - 1:33:49 PM] (16692) Background analysis(1) root directory: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist
2023-06-20 13:33:49.356 [info] [Info  - 1:33:49 PM] (16692) Background analysis(1) started
2023-06-20 13:33:49.356 [info] (16692) Background analysis message: setConfigOptions
2023-06-20 13:33:49.356 [info] (16692) Background analysis message: setImportResolver
2023-06-20 13:33:49.356 [info] (16692) Background analysis message: ensurePartialStubPackages
2023-06-20 13:33:49.357 [info] (16692) Background analysis message: setConfigOptions
2023-06-20 13:33:49.357 [info] (16692) Background analysis message: setTrackedFiles
2023-06-20 13:33:49.358 [info] (16692) Background analysis message: markAllFilesDirty
2023-06-20 13:33:49.358 [info] (16692) Background analysis message: setFileOpened
2023-06-20 13:33:49.358 [info] (16692) Background analysis message: setConfigOptions
2023-06-20 13:33:49.358 [info] (16692) Background analysis message: setImportResolver
2023-06-20 13:33:49.359 [info] (16692) Background analysis message: ensurePartialStubPackages
2023-06-20 13:33:49.359 [info] (16692) Background analysis message: setConfigOptions
2023-06-20 13:33:49.359 [info] (16692) Background analysis message: setTrackedFiles
2023-06-20 13:33:49.359 [info] (16692) Background analysis message: markAllFilesDirty
2023-06-20 13:33:49.360 [info] (16692) Background analysis message: getSemanticTokens full
2023-06-20 13:33:49.504 [info] (16692) [BG(1)] getSemanticTokens full at c:\Users\jkleemann\Desktop\slow\SlowFile.py ...
2023-06-20 13:33:49.504 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (153ms)
2023-06-20 13:33:49.580 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 2ms] (75ms)
2023-06-20 13:33:49.619 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi (37ms)
2023-06-20 13:33:49.620 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (1ms)
2023-06-20 13:33:49.643 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing.pyi [fs read 1ms] (17ms)
2023-06-20 13:33:49.651 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing.pyi (8ms)
2023-06-20 13:33:49.658 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing_extensions.pyi [fs read 0ms] (3ms)
2023-06-20 13:33:49.660 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing_extensions.pyi (3ms)
2023-06-20 13:33:49.694 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi [fs read 3ms] (13ms)
2023-06-20 13:33:49.696 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi (1ms)
2023-06-20 13:33:49.703 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\types.pyi [fs read 1ms] (7ms)
2023-06-20 13:33:49.706 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\types.pyi (4ms)
2023-06-20 13:33:49.715 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\abc.pyi [fs read 0ms] (1ms)
2023-06-20 13:33:49.715 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\abc.pyi (1ms)
2023-06-20 13:33:49.838 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\__init__.pyi [fs read 1ms] (121ms)
2023-06-20 13:33:49.862 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\__init__.pyi (21ms)
2023-06-20 13:33:49.866 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\uncertainties\unumpy\__init__.py [fs read 1ms] (4ms)
2023-06-20 13:33:49.880 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\uncertainties\unumpy\__init__.py ...
2023-06-20 13:33:49.880 [info] (16692) [BG(1)]     parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\uncertainties\unumpy\core.py [fs read 1ms] (13ms)
2023-06-20 13:33:49.886 [info] (16692) [BG(1)]     binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\uncertainties\unumpy\core.py (7ms)
2023-06-20 13:33:49.887 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\uncertainties\unumpy\__init__.py (20ms)
2023-06-20 13:33:49.902 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\multiarray.pyi [fs read 1ms] (11ms)
2023-06-20 13:33:49.906 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\multiarray.pyi (3ms)
2023-06-20 13:33:49.911 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\__init__.py [fs read 1ms] (5ms)
2023-06-20 13:33:49.911 [info] [Info  - 1:33:49 PM] (16692) Could not resolve source for '._ufunc' in file 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\__init__.py'
2023-06-20 13:33:49.911 [info] [Info  - 1:33:49 PM] (16692)   Attempting to resolve relative import
2023-06-20 13:33:49.911 [info] [Info  - 1:33:49 PM] (16692)   Attempting to resolve using root path 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing'
2023-06-20 13:33:49.911 [info] [Info  - 1:33:49 PM] (16692)   Resolved import with file 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_ufunc.pyi'
2023-06-20 13:33:49.911 [info] [Info  - 1:33:49 PM] (16692)   Attempting to resolve using root path 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing'
2023-06-20 13:33:49.912 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\__init__.py (0ms)
2023-06-20 13:33:49.914 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_dtype_like.py [fs read 1ms] (2ms)
2023-06-20 13:33:49.914 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_dtype_like.py (1ms)
2023-06-20 13:33:49.921 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_generic_alias.py [fs read 1ms] (6ms)
2023-06-20 13:33:49.923 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_generic_alias.py (3ms)
2023-06-20 13:33:49.925 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\collections\abc.pyi [fs read 0ms] (0ms)
2023-06-20 13:33:49.926 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\collections\abc.pyi ...
2023-06-20 13:33:49.927 [info] (16692) [BG(1)]     parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_collections_abc.pyi [fs read 1ms] (2ms)
2023-06-20 13:33:49.927 [info] (16692) [BG(1)]     binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_collections_abc.pyi (1ms)
2023-06-20 13:33:49.927 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\collections\abc.pyi (3ms)
2023-06-20 13:33:49.939 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_shape.py [fs read 1ms] (1ms)
2023-06-20 13:33:49.939 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_shape.py (0ms)
2023-06-20 13:33:49.952 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\enum.pyi [fs read 1ms] (6ms)
2023-06-20 13:33:49.954 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\enum.pyi (2ms)
2023-06-20 13:33:49.959 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_array_like.py [fs read 1ms] (2ms)
2023-06-20 13:33:49.961 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_array_like.py (1ms)
2023-06-20 13:33:49.967 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_nested_sequence.py [fs read 0ms] (2ms)
2023-06-20 13:33:49.968 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_nested_sequence.py (0ms)
2023-06-20 13:33:49.995 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\sys.pyi [fs read 0ms] (7ms)
2023-06-20 13:33:50.001 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\sys.pyi (5ms)
2023-06-20 13:33:50.044 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\uncertainties\core.py [fs read 1ms] (36ms)
2023-06-20 13:33:50.054 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\uncertainties\core.py (9ms)
2023-06-20 13:33:50.067 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\inspect.pyi [fs read 0ms] (7ms)
2023-06-20 13:33:50.070 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\inspect.pyi (3ms)
2023-06-20 13:33:50.074 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\linalg\__init__.pyi [fs read 1ms] (3ms)
2023-06-20 13:33:50.074 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\linalg\__init__.pyi (1ms)
2023-06-20 13:33:50.082 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\linalg\linalg.pyi [fs read 0ms] (7ms)
2023-06-20 13:33:50.082 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\linalg\linalg.pyi (1ms)
2023-06-20 13:33:50.088 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\overrides.py [fs read 0ms] (5ms)
2023-06-20 13:33:50.089 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\overrides.py (1ms)
2023-06-20 13:33:55.653 [info] (16692) [BG(1)] getSemanticTokens full at c:\Users\jkleemann\Desktop\slow\SlowFile.py (6304ms)
2023-06-20 13:33:55.654 [info] [Info  - 1:33:55 PM] (16692) [BG(1)] Long operation: getSemanticTokens full at c:\Users\jkleemann\Desktop\slow\SlowFile.py (6304ms)
2023-06-20 13:33:55.655 [info] (16692) Background analysis message: analyze
2023-06-20 13:33:55.668 [info] (16692) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py ...
2023-06-20 13:33:55.669 [info] (16692) [BG(1)]   checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (14ms)
2023-06-20 13:33:55.669 [info] (16692) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (14ms)
2023-06-20 13:33:55.670 [info] (16692) Background analysis message: getSemanticTokens range
2023-06-20 13:33:55.671 [info] (16692) [BG(1)] getSemanticTokens range 0:0 - 11:0 at c:\Users\jkleemann\Desktop\slow\SlowFile.py (2ms)
2023-06-20 13:33:55.672 [info] (16692) Background analysis message: resumeAnalysis
2023-06-20 13:33:58.082 [info] (16692) Background analysis message: setFileOpened
2023-06-20 13:33:58.082 [info] (16692) Background analysis message: markFilesDirty
2023-06-20 13:33:58.087 [info] (16692) [FG] parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (1ms)
2023-06-20 13:33:58.088 [info] (16692) [FG] binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-20 13:33:58.340 [info] (16692) Background analysis message: analyze
2023-06-20 13:33:58.341 [info] (16692) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py ...
2023-06-20 13:33:58.341 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-20 13:33:58.341 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-20 13:34:03.480 [info] (16692) [BG(1)]   checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5138ms)
2023-06-20 13:34:03.480 [info] [Info  - 1:34:03 PM] (16692) [BG(1)] Long operation: checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5138ms)
2023-06-20 13:34:03.480 [info] (16692) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5139ms)
2023-06-20 13:34:03.480 [info] [Info  - 1:34:03 PM] (16692) [BG(1)] Long operation: analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5139ms)
2023-06-20 13:34:03.481 [info] (16692) Background analysis message: getSemanticTokens delta
2023-06-20 13:34:03.482 [info] (16692) [BG(1)] getSemanticTokens delta previousResultId:1687260829620 at c:\Users\jkleemann\Desktop\slow\SlowFile.py (2ms)
2023-06-20 13:34:03.482 [info] (16692) Background analysis message: resumeAnalysis
2023-06-20 13:34:04.998 [info] (16692) Background analysis message: setFileOpened
2023-06-20 13:34:04.998 [info] (16692) Background analysis message: markFilesDirty
2023-06-20 13:34:05.001 [info] (16692) [FG] parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (2ms)
2023-06-20 13:34:05.002 [info] (16692) [FG] binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-20 13:34:05.264 [info] (16692) Background analysis message: analyze
2023-06-20 13:34:05.265 [info] (16692) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py ...
2023-06-20 13:34:05.266 [info] (16692) [BG(1)]   parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (2ms)
2023-06-20 13:34:05.277 [info] (16692) [BG(1)]   binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-20 13:34:10.302 [info] (16692) [BG(1)]   checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5041ms)
2023-06-20 13:34:10.302 [info] [Info  - 1:34:10 PM] (16692) [BG(1)] Long operation: checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5041ms)
2023-06-20 13:34:10.302 [info] (16692) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5044ms)
2023-06-20 13:34:10.303 [info] [Info  - 1:34:10 PM] (16692) [BG(1)] Long operation: analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (5044ms)
2023-06-20 13:34:10.303 [info] (16692) Background analysis message: getSemanticTokens delta
2023-06-20 13:34:10.304 [info] (16692) [BG(1)] getSemanticTokens delta previousResultId:1687260843480 at c:\Users\jkleemann\Desktop\slow\SlowFile.py (1ms)
2023-06-20 13:34:10.305 [info] (16692) Background analysis message: resumeAnalysis

@erictraut
Copy link
Contributor

I'm not familiar with the uncertainties library. It appears to be completely untyped — no type annotations, no stub files, and no "py.typed" marker. As such, pyright (the type analyzer upon which pylance is built) needs to infer all types from the library code. If you prefer, you can tell pyright not to do this for untyped libraries by setting python.analysis.useLibraryCodeForTypes to "false". You will lose completion suggestions and type checking for the library, but performance will be much better.

If this library is important to you, I recommend contacting the maintainers and requesting that they add static type annotations to the public interface. Most major Python libraries (e.g. numpy, torch, and tensorflow) have done so over the past few years. We're prepared this documentation to provide guidance to library maintainers who are interested in making this investment.

@bschnurr
Copy link
Member

bschnurr commented Jun 20, 2023

@erictraut maybe spending a lot of time figuring out np.array overloads

getTypeOfExpression ["[unp.std_devs(values)]" (slow) [5:19]] (549ms)
2023-06-20 09:49:09.973 [info] (15052) [BG(1)]     getTypeOfExpression ["np.array([unp.std_devs(values) <shortened> " (slow) [5:10]] (2821ms)

note need to run 'pip install uncertainties'

note clear where the time is spent.. maybe in a different part of typeEvaluator that I dont have a logger in.

2023-06-20 09:49:05.313 [info] [Info  - 9:49:05 AM] (15052) Pylance language server 9999.0.0-dev (pyright unknown) starting
2023-06-20 09:49:05.314 [info] [Info  - 9:49:05 AM] (15052) Server root directory: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist
2023-06-20 09:49:05.315 [info] [Info  - 9:49:05 AM] (15052) Starting service instance "tensorflowGraphKeys"
2023-06-20 09:49:05.319 [info] [Info  - 9:49:05 AM] (15052) Auto format for strings enabled
2023-06-20 09:49:05.497 [info] [Info  - 9:49:05 AM] (15052) Setting pythonPath for service "tensorflowGraphKeys": "d:\source\repos\triage\tensorflowGraphKeys\.venv\Scripts\python.exe"
2023-06-20 09:49:05.500 [info] [Info  - 9:49:05 AM] (15052) Loading configuration file at d:\source\repos\triage\tensorflowGraphKeys\pyrightconfig.json
2023-06-20 09:49:05.509 [info] [Error - 9:49:05 AM] (15052) Config file "d:\source\repos\triage\tensorflowGraphKeys\pyrightconfig.json" could not be parsed. Verify that format is correct.
2023-06-20 09:49:05.509 [info] [Warn  - 9:49:05 AM] (15052) stubPath d:\source\repos\triage\tensorflowGraphKeys\typings is not a valid directory.
2023-06-20 09:49:05.733 [info] [Info  - 9:49:05 AM] (15052) Assuming Python version 3.11
2023-06-20 09:49:05.734 [info] (15052) Assuming Python platform Windows
2023-06-20 09:49:05.981 [info] [Info  - 9:49:05 AM] (15052) Search paths for d:\source\repos\triage\tensorflowGraphKeys
2023-06-20 09:49:05.983 [info] [Info  - 9:49:05 AM] (15052)   d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib
2023-06-20 09:49:05.985 [info] [Info  - 9:49:05 AM] (15052)   d:\source\repos\triage\tensorflowGraphKeys
2023-06-20 09:49:05.985 [info] [Info  - 9:49:05 AM] (15052)   D:\testpythonpath
2023-06-20 09:49:05.986 [info] [Info  - 9:49:05 AM] (15052)   d:\source\repos\triage\tensorflowGraphKeys\typings
2023-06-20 09:49:05.986 [info] [Info  - 9:49:05 AM] (15052)   d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stubs\...
2023-06-20 09:49:05.986 [info] [Info  - 9:49:05 AM] (15052)   d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\bundled\stubs
2023-06-20 09:49:05.986 [info] [Info  - 9:49:05 AM] (15052)   d:\testpythonpath
2023-06-20 09:49:05.987 [info] [Info  - 9:49:05 AM] (15052)   c:\Users\bschnurr\AppData\Local\Programs\Python\Python311\DLLs
2023-06-20 09:49:05.987 [info] [Info  - 9:49:05 AM] (15052)   c:\Users\bschnurr\AppData\Local\Programs\Python\Python311\Lib
2023-06-20 09:49:05.987 [info] [Info  - 9:49:05 AM] (15052)   c:\Users\bschnurr\AppData\Local\Programs\Python\Python311
2023-06-20 09:49:05.988 [info] [Info  - 9:49:05 AM] (15052)   d:\source\repos\triage\tensorflowGraphKeys\.venv
2023-06-20 09:49:05.988 [info] [Info  - 9:49:05 AM] (15052)   d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages
2023-06-20 09:49:05.988 [info] [Info  - 9:49:05 AM] (15052) Adding fs watcher for library directories:
 D:\testpythonpath
C:\Users\bschnurr\AppData\Local\Programs\Python\Python311\DLLs
C:\Users\bschnurr\AppData\Local\Programs\Python\Python311\Lib
C:\Users\bschnurr\AppData\Local\Programs\Python\Python311
d:\source\repos\triage\tensorflowGraphKeys\.venv
d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages
2023-06-20 09:49:05.988 [info] (15052) Searching for source files
2023-06-20 09:49:05.988 [info] [Info  - 9:49:05 AM] (15052) No source files found.
2023-06-20 09:49:06.068 [info] [Info  - 9:49:06 AM] (15052) Skipping django stubs download because package is not installed.
2023-06-20 09:49:06.111 [info] (15052) [FG] runWithCancellationToken ...
2023-06-20 09:49:06.112 [info] (15052) [FG]   parsing: d:\source\repos\triage\tensorflowGraphKeys\slow.py (42ms)
2023-06-20 09:49:06.213 [info] (15052) [FG]   parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 5ms] (101ms)
2023-06-20 09:49:06.272 [info] (15052) [FG]   binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\builtins.pyi (50ms)
2023-06-20 09:49:06.273 [info] (15052) [FG]   binding: d:\source\repos\triage\tensorflowGraphKeys\slow.py (3ms)
2023-06-20 09:49:06.273 [info] (15052) [FG] runWithCancellationToken (199ms) [f:5, t:37, p:48, i:50, b:53]
2023-06-20 09:49:06.292 [info] (15052) [IDX(FG)] index libraries d:\source\repos\triage\tensorflowGraphKeys (index) ...
2023-06-20 09:49:06.293 [info] (15052) [IDX(FG)]   read stdlib indices (23ms)
2023-06-20 09:49:06.293 [info] (15052) [IDX(FG)] index libraries d:\source\repos\triage\tensorflowGraphKeys (index) [succeed] (24ms)
2023-06-20 09:49:06.315 [info] [Info  - 9:49:06 AM] (15052) Background analysis(1) root directory: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist
2023-06-20 09:49:06.316 [info] [Info  - 9:49:06 AM] (15052) Background analysis(1) started
2023-06-20 09:49:06.316 [info] (15052) Background analysis message: setConfigOptions
2023-06-20 09:49:06.318 [info] (15052) Background analysis message: setImportResolver
2023-06-20 09:49:06.478 [info] (15052) Background analysis message: ensurePartialStubPackages
2023-06-20 09:49:06.478 [info] (15052) Background analysis message: setConfigOptions
2023-06-20 09:49:06.513 [info] (15052) Background analysis message: setTrackedFiles
2023-06-20 09:49:06.522 [info] (15052) Background analysis message: markAllFilesDirty
2023-06-20 09:49:06.526 [info] (15052) Background analysis message: setFileOpened
2023-06-20 09:49:06.527 [info] (15052) Background analysis message: getDiagnosticsForRange
2023-06-20 09:49:06.527 [info] (15052) Background analysis message: getSemanticTokens full
2023-06-20 09:49:06.554 [info] (15052) [BG(1)] getSemanticTokens full at d:\source\repos\triage\tensorflowGraphKeys\slow.py ...
2023-06-20 09:49:06.555 [info] (15052) [BG(1)]   parsing: d:\source\repos\triage\tensorflowGraphKeys\slow.py (44ms)
2023-06-20 09:49:06.665 [info] (15052) [BG(1)]   parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 3ms] (110ms)
2023-06-20 09:49:06.706 [info] (15052) [BG(1)]   binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\builtins.pyi (40ms)
2023-06-20 09:49:06.714 [info] (15052) [BG(1)]   binding: d:\source\repos\triage\tensorflowGraphKeys\slow.py (1ms)
2023-06-20 09:49:06.755 [info] (15052) [BG(1)]   getDeclarationsForNameNode ...
2023-06-20 09:49:06.755 [info] (15052) [BG(1)]     getTypeOfExpression ...
2023-06-20 09:49:06.756 [info] (15052) [BG(1)]        ...
2023-06-20 09:49:06.757 [info] (15052) [BG(1)]         parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\typing.pyi [fs read 1ms] (46ms)
2023-06-20 09:49:06.766 [info] (15052) [BG(1)]         binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\typing.pyi (11ms)
2023-06-20 09:49:06.767 [info] (15052) [BG(1)]        (57ms) [f:1, t:14, p:7, i:23, b:11]
2023-06-20 09:49:06.795 [info] (15052) [BG(1)]       getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:06.802 [info] (15052) [BG(1)]         getTypeOfExpression ...
2023-06-20 09:49:06.803 [info] (15052) [BG(1)]           getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:06.803 [info] (15052) [BG(1)]             getTypeOfExpression ...
2023-06-20 09:49:06.803 [info] (15052) [BG(1)]               getTypeOfExpression ...
2023-06-20 09:49:06.804 [info] (15052) [BG(1)]                 getTypeOfExpression ...
2023-06-20 09:49:06.804 [info] (15052) [BG(1)]                    ...
2023-06-20 09:49:06.804 [info] (15052) [BG(1)]                     parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\typing_extensions.pyi [fs read 1ms] (9ms)
2023-06-20 09:49:06.804 [info] (15052) [BG(1)]                     binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\typing_extensions.pyi (3ms)
2023-06-20 09:49:06.805 [info] (15052) [BG(1)]                    (12ms) [f:1, t:2, p:4, i:0, b:3]
2023-06-20 09:49:06.805 [info] (15052) [BG(1)]                 getTypeOfExpression ["_final" (typing) [137:2]] (16ms)
2023-06-20 09:49:06.805 [info] (15052) [BG(1)]               getTypeOfExpression ["TypeVar" (typing) [182:6]] (18ms)
2023-06-20 09:49:06.806 [info] (15052) [BG(1)]             getTypeOfExpression ["TypeVar("_F", bound=Callable[. <shortened> " (typing) [182:6]] (19ms)
2023-06-20 09:49:06.806 [info] (15052) [BG(1)]           getInferredTypeOfDeclarationInternal [Variable, "_F"  [182:1] (typing)] (19ms)
2023-06-20 09:49:06.806 [info] (15052) [BG(1)]         getTypeOfExpression ["_F" (typing) [133:34]] (19ms)
2023-06-20 09:49:06.807 [info] (15052) [BG(1)]       getInferredTypeOfDeclarationInternal [Alias, ImportFromAs '"type_check_only"  [54:5]'   [54:5] (typing)] (20ms)
2023-06-20 09:49:06.807 [info] (15052) [BG(1)]     getTypeOfExpression ["type_check_only" (builtins) [968:2]] (77ms)
2023-06-20 09:49:06.807 [info] (15052) [BG(1)]      ...
2023-06-20 09:49:06.807 [info] (15052) [BG(1)]       parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi [fs read 1ms] (9ms)
2023-06-20 09:49:06.808 [info] (15052) [BG(1)]       binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi (3ms)
2023-06-20 09:49:06.808 [info] (15052) [BG(1)]      (12ms) [f:1, t:2, p:3, i:3, b:3]
2023-06-20 09:49:06.815 [info] (15052) [BG(1)]      ...
2023-06-20 09:49:06.815 [info] (15052) [BG(1)]       parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\types.pyi [fs read 1ms] (9ms)
2023-06-20 09:49:06.830 [info] (15052) [BG(1)]       binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\types.pyi (7ms)
2023-06-20 09:49:06.830 [info] (15052) [BG(1)]      (17ms) [f:1, t:3, p:4, i:1, b:7]
2023-06-20 09:49:06.841 [info] (15052) [BG(1)]     getTypeOfExpression ...
2023-06-20 09:49:06.841 [info] (15052) [BG(1)]        ...
2023-06-20 09:49:06.841 [info] (15052) [BG(1)]         parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\abc.pyi [fs read 0ms] (2ms)
2023-06-20 09:49:06.841 [info] (15052) [BG(1)]         binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\abc.pyi (0ms)
2023-06-20 09:49:06.842 [info] (15052) [BG(1)]        (2ms) [f:0, t:1, p:0, i:0, b:0]
2023-06-20 09:49:06.842 [info] (15052) [BG(1)]     getTypeOfExpression ["ABCMeta" (typing) [872:50]] (4ms)
2023-06-20 09:49:06.980 [info] (15052) [BG(1)]     getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:06.980 [info] (15052) [BG(1)]        ...
2023-06-20 09:49:06.980 [info] (15052) [BG(1)]         parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\__init__.pyi [fs read 1ms] (136ms)
2023-06-20 09:49:07.010 [info] (15052) [BG(1)]         binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\__init__.pyi (29ms)
2023-06-20 09:49:07.011 [info] (15052) [BG(1)]        (166ms) [f:1, t:19, p:33, i:82, b:29]
2023-06-20 09:49:07.011 [info] (15052) [BG(1)]     getInferredTypeOfDeclarationInternal [Alias, importAs 'moduleName '"numpy"  [1:8]'  [1:8]' '"np"  [1:17]'  [1:8] (numpy.__init__)] (166ms)
2023-06-20 09:49:07.011 [info] (15052) [BG(1)]   getDeclarationsForNameNode ["numpy" (slow) [1:8]] (302ms) [f:5, t:41, p:51, i:109, b:53]
2023-06-20 09:49:07.017 [info] (15052) [BG(1)]   getDeclarationsForNameNode ...
2023-06-20 09:49:07.017 [info] (15052) [BG(1)]     getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:07.017 [info] (15052) [BG(1)]        ...
2023-06-20 09:49:07.017 [info] (15052) [BG(1)]         parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\uncertainties\unumpy\__init__.py [fs read 1ms] (6ms)
2023-06-20 09:49:07.039 [info] (15052) [BG(1)]         binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\uncertainties\unumpy\__init__.py ...
2023-06-20 09:49:07.040 [info] (15052) [BG(1)]           parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\uncertainties\unumpy\core.py [fs read 1ms] (17ms)
2023-06-20 09:49:07.047 [info] (15052) [BG(1)]           binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\uncertainties\unumpy\core.py (12ms)
2023-06-20 09:49:07.047 [info] (15052) [BG(1)]         binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\uncertainties\unumpy\__init__.py (30ms)
2023-06-20 09:49:07.048 [info] (15052) [BG(1)]        (37ms) [f:2, t:6, p:9, i:4, b:30]
2023-06-20 09:49:07.048 [info] (15052) [BG(1)]     getInferredTypeOfDeclarationInternal [Alias, importAs 'moduleName '"uncertainties"  [2:8]."unumpy"  [2:22]'  [2:8]' '"unp"  [2:32]'  [2:8] (uncertainties.unumpy.__init__)] (37ms)
2023-06-20 09:49:07.048 [info] (15052) [BG(1)]   getDeclarationsForNameNode ["uncertainties" (slow) [2:8]] (37ms) [f:2, t:6, p:9, i:4, b:30]
2023-06-20 09:49:07.062 [info] (15052) [BG(1)]   resolveAliasDeclaration ...
2023-06-20 09:49:07.062 [info] (15052) [BG(1)]      ...
2023-06-20 09:49:07.062 [info] (15052) [BG(1)]       parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\core\multiarray.pyi [fs read 1ms] (12ms)
2023-06-20 09:49:07.066 [info] (15052) [BG(1)]       binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\core\multiarray.pyi (5ms)
2023-06-20 09:49:07.066 [info] (15052) [BG(1)]      (18ms) [f:1, t:5, p:5, i:1, b:5]
2023-06-20 09:49:07.066 [info] (15052) [BG(1)]   resolveAliasDeclaration [Alias, ImportFromAs '"array"  [318:5]' '"array"  [318:14]'  [318:5] (numpy.core.multiarray)] (18ms) [f:1, t:5, p:5, i:1, b:5]
2023-06-20 09:49:07.079 [info] (15052) [BG(1)]   getTypeForDeclaration ...
2023-06-20 09:49:07.080 [info] (15052) [BG(1)]     getTypeOfExpression ...
2023-06-20 09:49:07.080 [info] (15052) [BG(1)]        ...
2023-06-20 09:49:07.080 [info] (15052) [BG(1)]         parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\__init__.py [fs read 2ms] (13ms)
2023-06-20 09:49:07.080 [info] [Info  - 9:49:07 AM] (15052) Could not resolve source for '._ufunc' in file 'd:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\__init__.py'
2023-06-20 09:49:07.081 [info] [Info  - 9:49:07 AM] (15052)   Attempting to resolve relative import
2023-06-20 09:49:07.081 [info] [Info  - 9:49:07 AM] (15052)   Attempting to resolve using root path 'd:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing'
2023-06-20 09:49:07.081 [info] [Info  - 9:49:07 AM] (15052)   Resolved import with file 'd:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_ufunc.pyi'
2023-06-20 09:49:07.081 [info] [Info  - 9:49:07 AM] (15052)   Attempting to resolve using root path 'd:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing'
2023-06-20 09:49:07.082 [info] (15052) [BG(1)]         binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\__init__.py (1ms)
2023-06-20 09:49:07.082 [info] (15052) [BG(1)]        (14ms) [f:2, t:1, p:0, i:10, b:1]
2023-06-20 09:49:07.083 [info] (15052) [BG(1)]        ...
2023-06-20 09:49:07.083 [info] (15052) [BG(1)]         parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_dtype_like.py [fs read 1ms] (3ms)
2023-06-20 09:49:07.084 [info] (15052) [BG(1)]         binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_dtype_like.py (1ms)
2023-06-20 09:49:07.084 [info] (15052) [BG(1)]        (4ms) [f:1, t:0, p:2, i:0, b:1]
2023-06-20 09:49:07.097 [info] (15052) [BG(1)]       getTypeOfExpression ...
2023-06-20 09:49:07.098 [info] (15052) [BG(1)]         getTypeOfExpression ...
2023-06-20 09:49:07.098 [info] (15052) [BG(1)]           getTypeOfExpression ...
2023-06-20 09:49:07.099 [info] (15052) [BG(1)]             getTypeOfExpression ...
2023-06-20 09:49:07.099 [info] (15052) [BG(1)]               getTypeOfExpression ...
2023-06-20 09:49:07.099 [info] (15052) [BG(1)]                  ...
2023-06-20 09:49:07.099 [info] (15052) [BG(1)]                   parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_shape.py [fs read 0ms] (1ms)
2023-06-20 09:49:07.100 [info] (15052) [BG(1)]                   binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_shape.py (0ms)
2023-06-20 09:49:07.100 [info] (15052) [BG(1)]                  (1ms) [f:0, t:0, p:1, i:0, b:0]
2023-06-20 09:49:07.101 [info] (15052) [BG(1)]                 getTypeOfExpression ...
2023-06-20 09:49:07.101 [info] (15052) [BG(1)]                   getTypeOfExpression ...
2023-06-20 09:49:07.101 [info] (15052) [BG(1)]                     getTypeOfExpression ...
2023-06-20 09:49:07.101 [info] (15052) [BG(1)]                        ...
2023-06-20 09:49:07.102 [info] (15052) [BG(1)]                         parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\collections\abc.pyi [fs read 0ms] (0ms)
2023-06-20 09:49:07.102 [info] (15052) [BG(1)]                         binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\collections\abc.pyi ...
2023-06-20 09:49:07.105 [info] (15052) [BG(1)]                           parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\_collections_abc.pyi [fs read 0ms] (2ms)
2023-06-20 09:49:07.105 [info] (15052) [BG(1)]                           binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\_collections_abc.pyi (0ms)
2023-06-20 09:49:07.106 [info] (15052) [BG(1)]                         binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\collections\abc.pyi (2ms)
2023-06-20 09:49:07.106 [info] (15052) [BG(1)]                        (2ms) [f:0, t:0, p:1, i:0, b:2]
2023-06-20 09:49:07.106 [info] (15052) [BG(1)]                     getTypeOfExpression ["Sequence" (numpy._typing._shape) [7:35]] (3ms)
2023-06-20 09:49:07.106 [info] (15052) [BG(1)]                   getTypeOfExpression ["Sequence[SupportsIndex]" (numpy._typing._shape) [7:35]] (3ms)
2023-06-20 09:49:07.106 [info] (15052) [BG(1)]                 getTypeOfExpression ["Union[SupportsIndex, Sequence[ <shortened> " (numpy._typing._shape) [7:14]] (6ms)
2023-06-20 09:49:07.106 [info] (15052) [BG(1)]               getTypeOfExpression ["_ShapeLike" (numpy._typing._dtype_like) [100:29]] (7ms)
2023-06-20 09:49:07.107 [info] (15052) [BG(1)]             getTypeOfExpression ["tuple[_DTypeLikeNested, _Shape <shortened> " (numpy._typing._dtype_like) [100:5]] (8ms)
2023-06-20 09:49:07.112 [info] (15052) [BG(1)]           getTypeOfExpression ["Union[tuple[_DTypeLikeNested,  <shortened> " (numpy._typing._dtype_like) [96:18]] (18ms)
2023-06-20 09:49:07.113 [info] (15052) [BG(1)]         getTypeOfExpression ["_VoidDTypeLike" (numpy._typing._dtype_like) [126:5]] (19ms)
2023-06-20 09:49:07.113 [info] (15052) [BG(1)]       getTypeOfExpression ["Union[np.dtype[Any], None, typ <shortened> " (numpy._typing._dtype_like) [116:13]] (29ms)
2023-06-20 09:49:07.113 [info] (15052) [BG(1)]     getTypeOfExpression ["DTypeLike" (numpy.core.multiarray) [216:12]] (47ms)
2023-06-20 09:49:07.119 [info] (15052) [BG(1)]     getTypeOfExpression ...
2023-06-20 09:49:07.120 [info] (15052) [BG(1)]       getTypeOfExpression ...
2023-06-20 09:49:07.120 [info] (15052) [BG(1)]         getTypeOfExpression ...
2023-06-20 09:49:07.120 [info] (15052) [BG(1)]           getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:07.120 [info] (15052) [BG(1)]             getTypeOfExpression ...
2023-06-20 09:49:07.121 [info] (15052) [BG(1)]               getTypeOfExpression ...
2023-06-20 09:49:07.121 [info] (15052) [BG(1)]                 getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:07.121 [info] (15052) [BG(1)]                    ...
2023-06-20 09:49:07.121 [info] (15052) [BG(1)]                     parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\enum.pyi [fs read 0ms] (6ms)
2023-06-20 09:49:07.122 [info] (15052) [BG(1)]                     binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\enum.pyi (3ms)
2023-06-20 09:49:07.123 [info] (15052) [BG(1)]                    (10ms) [f:0, t:1, p:4, i:0, b:3]
2023-06-20 09:49:07.125 [info] (15052) [BG(1)]                 getInferredTypeOfDeclarationInternal [Alias, importAs 'moduleName '"enum"  [7:8]'  [7:8]'   [7:8] (enum)] (10ms)
2023-06-20 09:49:07.132 [info] (15052) [BG(1)]               getTypeOfExpression ["enum" (numpy.__init__) [3325:17]] (10ms)
2023-06-20 09:49:07.133 [info] (15052) [BG(1)]             getTypeOfExpression ["enum.Enum" (numpy.__init__) [3325:17]] (10ms)
2023-06-20 09:49:07.134 [info] (15052) [BG(1)]           getInferredTypeOfDeclarationInternal [Alias, ImportFromAs '"_CopyMode"  [47:5]'   [47:5] (numpy.__init__)] (10ms)
2023-06-20 09:49:07.134 [info] (15052) [BG(1)]         getTypeOfExpression ["_CopyMode" (numpy.core.multiarray) [218:18]] (10ms)
2023-06-20 09:49:07.134 [info] (15052) [BG(1)]       getTypeOfExpression ["_CopyMode" (numpy.core.multiarray) [218:18]] (10ms) [f:0, t:1, p:4, i:0, b:3]
2023-06-20 09:49:07.134 [info] (15052) [BG(1)]     getTypeOfExpression ["bool | _CopyMode" (numpy.core.multiarray) [218:11]] (10ms)
2023-06-20 09:49:07.134 [info] (15052) [BG(1)]     getTypeOfExpression ...
2023-06-20 09:49:07.135 [info] (15052) [BG(1)]       getTypeOfExpression ...
2023-06-20 09:49:07.135 [info] (15052) [BG(1)]         getTypeOfExpression ...
2023-06-20 09:49:07.135 [info] (15052) [BG(1)]            ...
2023-06-20 09:49:07.135 [info] (15052) [BG(1)]             parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_array_like.py [fs read 1ms] (2ms)
2023-06-20 09:49:07.136 [info] (15052) [BG(1)]             binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_array_like.py (1ms)
2023-06-20 09:49:07.136 [info] (15052) [BG(1)]            (3ms) [f:1, t:0, p:1, i:0, b:1]
2023-06-20 09:49:07.136 [info] (15052) [BG(1)]         getTypeOfExpression ["_SupportsArrayFunc" (numpy.core.multiarray) [222:18]] (5ms)
2023-06-20 09:49:07.136 [info] (15052) [BG(1)]       getTypeOfExpression ["_SupportsArrayFunc" (numpy.core.multiarray) [222:18]] (5ms) [f:1, t:0, p:1, i:0, b:1]
2023-06-20 09:49:07.137 [info] (15052) [BG(1)]     getTypeOfExpression ["None | _SupportsArrayFunc" (numpy.core.multiarray) [222:11]] (5ms)
2023-06-20 09:49:07.139 [info] (15052) [BG(1)]     getTypeOfExpression ...
2023-06-20 09:49:07.140 [info] (15052) [BG(1)]       getTypeOfExpression ...
2023-06-20 09:49:07.140 [info] (15052) [BG(1)]         getTypeOfExpression ...
2023-06-20 09:49:07.140 [info] (15052) [BG(1)]           getTypeOfExpression ...
2023-06-20 09:49:07.140 [info] (15052) [BG(1)]             getTypeOfExpression ...
2023-06-20 09:49:07.141 [info] (15052) [BG(1)]                ...
2023-06-20 09:49:07.141 [info] (15052) [BG(1)]                 parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_nested_sequence.py [fs read 1ms] (2ms)
2023-06-20 09:49:07.141 [info] (15052) [BG(1)]                 binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_typing\_nested_sequence.py (1ms)
2023-06-20 09:49:07.142 [info] (15052) [BG(1)]                (3ms) [f:1, t:0, p:1, i:0, b:1]
2023-06-20 09:49:07.142 [info] (15052) [BG(1)]             getTypeOfExpression ["_NestedSequence" (numpy._typing._array_like) [66:5]] (4ms)
2023-06-20 09:49:07.142 [info] (15052) [BG(1)]           getTypeOfExpression ["_NestedSequence[_SupportsArray <shortened> " (numpy._typing._array_like) [66:5]] (4ms)
2023-06-20 09:49:07.142 [info] (15052) [BG(1)]         getTypeOfExpression ["Union[_SupportsArray[dtype[_Sc <shortened> " (numpy._typing._array_like) [64:14]] (5ms)
2023-06-20 09:49:07.142 [info] (15052) [BG(1)]       getTypeOfExpression ["_ArrayLike" (numpy.core.multiarray) [182:13]] (7ms)
2023-06-20 09:49:07.145 [info] (15052) [BG(1)]     getTypeOfExpression ["_ArrayLike[_SCT]" (numpy.core.multiarray) [182:13]] (11ms)
2023-06-20 09:49:07.151 [info] (15052) [BG(1)]   getTypeForDeclaration [Function, function '"array"  [214:5]'  [213:1] (numpy.core.multiarray)] (86ms) [f:5, t:2, p:10, i:10, b:9]
2023-06-20 09:49:07.186 [info] (15052) [BG(1)]   getDeclarationsForNameNode ...
2023-06-20 09:49:07.187 [info] (15052) [BG(1)]     getTypeOfExpression ...
2023-06-20 09:49:07.187 [info] (15052) [BG(1)]       getTypeOfExpression ...
2023-06-20 09:49:07.187 [info] (15052) [BG(1)]         assignType ...
2023-06-20 09:49:07.188 [info] (15052) [BG(1)]           assignType ...
2023-06-20 09:49:07.188 [info] (15052) [BG(1)]             getEffectiveTypeOfSymbol ...
2023-06-20 09:49:07.189 [info] (15052) [BG(1)]               getTypeOfExpression ...
2023-06-20 09:49:07.189 [info] (15052) [BG(1)]                 getTypeOfExpression ...
2023-06-20 09:49:07.189 [info] (15052) [BG(1)]                   getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:07.189 [info] (15052) [BG(1)]                      ...
2023-06-20 09:49:07.190 [info] (15052) [BG(1)]                       parsing: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\sys.pyi [fs read 0ms] (15ms)
2023-06-20 09:49:07.190 [info] (15052) [BG(1)]                       binding: d:\dev\bschnurr\pyrx\packages\vscode-pylance\dist\typeshed-fallback\stdlib\sys.pyi (2ms)
2023-06-20 09:49:07.190 [info] (15052) [BG(1)]                      (17ms) [f:0, t:2, p:12, i:1, b:2]
2023-06-20 09:49:07.191 [info] (15052) [BG(1)]                   getInferredTypeOfDeclarationInternal [Alias, importAs 'moduleName '"sys"  [3:8]'  [3:8]'   [3:8] (sys)] (17ms)
2023-06-20 09:49:07.191 [info] (15052) [BG(1)]                 getTypeOfExpression ["sys" (builtins) [1003:86]] (18ms)
2023-06-20 09:49:07.191 [info] (15052) [BG(1)]               getTypeOfExpression ["sys.maxsize" (builtins) [1003:86]] (19ms)
2023-06-20 09:49:07.191 [info] (15052) [BG(1)]             getEffectiveTypeOfSymbol [symbol Function, function '"index"  [1003:9]'  [1003:5] (builtins)] (19ms) [f:0, t:2, p:12, i:1, b:2]
2023-06-20 09:49:07.191 [info] (15052) [BG(1)]           assignType [OverloadedFunction ["Function '__getitem__' (builtins)","Function '__getitem__' (builtins)"]] (33ms) [f:0, t:2, p:12, i:1, b:2]
2023-06-20 09:49:07.192 [info] (15052) [BG(1)]         assignType [Object 'list' (builtins)] (39ms) [f:0, t:2, p:12, i:1, b:2]
2023-06-20 09:49:07.203 [info] (15052) [BG(1)]         assignType ...
2023-06-20 09:49:07.212 [info] (15052) [BG(1)]           getEffectiveTypeOfSymbol ...
2023-06-20 09:49:07.212 [info] (15052) [BG(1)]             getTypeOfExpression ...
2023-06-20 09:49:07.212 [info] (15052) [BG(1)]               getTypeOfExpression ...
2023-06-20 09:49:07.213 [info] (15052) [BG(1)]                 getTypeOfExpression ...
2023-06-20 09:49:07.213 [info] (15052) [BG(1)]                   getTypeOfExpression ...
2023-06-20 09:49:07.213 [info] (15052) [BG(1)]                     getTypeOfExpression ...
2023-06-20 09:49:07.213 [info] (15052) [BG(1)]                       getTypeOfExpression ...
2023-06-20 09:49:07.213 [info] (15052) [BG(1)]                         getTypeOfExpression ...
2023-06-20 09:49:07.214 [info] (15052) [BG(1)]                           getTypeOfExpression ...
2023-06-20 09:49:07.214 [info] (15052) [BG(1)]                             getTypeOfExpression ...
2023-06-20 09:49:07.214 [info] (15052) [BG(1)]                               getTypeOfExpression ...
2023-06-20 09:49:07.214 [info] (15052) [BG(1)]                                 getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:07.214 [info] (15052) [BG(1)]                                   getTypeOfExpression ...
2023-06-20 09:49:07.215 [info] (15052) [BG(1)]                                     getTypeOfExpression ...
2023-06-20 09:49:07.215 [info] (15052) [BG(1)]                                       getTypeOfExpression ...
2023-06-20 09:49:07.215 [info] (15052) [BG(1)]                                         getTypeOfExpression ...
2023-06-20 09:49:07.215 [info] (15052) [BG(1)]                                           getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:07.215 [info] (15052) [BG(1)]                                             getTypeOfExpression ...
2023-06-20 09:49:07.216 [info] (15052) [BG(1)]                                               getTypeOfExpression ...
2023-06-20 09:49:07.216 [info] (15052) [BG(1)]                                                 getInferredTypeOfDeclarationInternal ...
2023-06-20 09:49:07.216 [info] (15052) [BG(1)]                                                   getTypeOfExpression ...
2023-06-20 09:49:07.216 [info] (15052) [BG(1)]                                                     getTypeOfExpression ...
2023-06-20 09:49:07.216 [info] (15052) [BG(1)]                                                        ...
2023-06-20 09:49:07.217 [info] (15052) [BG(1)]                                                         parsing: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_utils\__init__.py [fs read 1ms] (1ms)
2023-06-20 09:49:07.217 [info] (15052) [BG(1)]                                                         binding: d:\source\repos\triage\tensorflowGraphKeys\.venv\Lib\site-packages\numpy\_utils\__init__.py (2ms)
2023-06-20 09:49:07.217 [info] (15052) [BG(1)]                                                        (3ms) [f:1, t:0, p:0, i:0, b:2]
2023-06-20 09:49:07.218 [info] (15052) [BG(1)]                                                     getTypeOfExpression ["set_module" (numpy._typing.__init__) [11:2]] (3ms)
2023-06-20 09:49:07.218 [info] (15052) [BG(1)]                                                   getTypeOfExpression ["set_module("numpy.typing")" (numpy._typing.__init__) [11:2]] (3ms)
2023-06-20 09:49:07.218 [info] (15052) [BG(1)]                                                 getInferredTypeOfDeclarationInternal [Alias, ImportFromAs '"NBitBase"  [60:5]'   [60:5] (numpy._typing.__init__)] (4ms)
2023-06-20 09:49:07.219 [info] (15052) [BG(1)]                                               getTypeOfExpression ["NBitBase" (numpy.__init__) [2548:34]] (4ms)
2023-06-20 09:49:07.219 [info] (15052) [BG(1)]                                             getTypeOfExpression ["TypeVar("_NBit1", bound=NBitBa <shortened> " (numpy.__init__) [2548:10]] (4ms)
2023-06-20 09:49:07.219 [info] (15052) [BG(1)]                                           getInferredTypeOfDeclarationInternal [Variable, "_NBit1"  [2548:1] (numpy.__init__)] (4ms)
2023-06-20 09:49:07.219 [info] (15052) [BG(1)]                                         getTypeOfExpression ["_NBit1" (numpy.__init__) [2686:31]] (4ms)
2023-06-20 09:49:07.220 [info] (15052) [BG(1)]                                       getTypeOfExpression ["Generic[_NBit1]" (numpy.__init__) [2686:23]] (4ms)
2023-06-20 09:49:07.220 [info] (15052) [BG(1)]                                     getTypeOfExpression ["number" (numpy.__init__) [2824:15]] (4ms)
2023-06-20 09:49:07.220 [info] (15052) [BG(1)]                                   getTypeOfExpression ["number[_NBit1]" (numpy.__init__) [2824:15]] (4ms)
2023-06-20 09:49:07.221 [info] (15052) [BG(1)]                                 getInferredTypeOfDeclarationInternal [Alias, ImportFromAs '"integer"  [11:5]'   [11:5] (numpy.__init__)] (5ms)
2023-06-20 09:49:07.221 [info] (15052) [BG(1)]                               getTypeOfExpression ["integer" (numpy._typing._array_like) [102:24]] (5ms)
2023-06-20 09:49:07.221 [info] (15052) [BG(1)]                             getTypeOfExpression ["integer[Any]" (numpy._typing._array_like) [102:24]] (5ms)
2023-06-20 09:49:07.221 [info] (15052) [BG(1)]                           getTypeOfExpression ["Union[bool_, integer[Any]]" (numpy._typing._array_like) [102:11]] (6ms)
2023-06-20 09:49:07.222 [info] (15052) [BG(1)]                         getTypeOfExpression ["dtype[Union[bool_, integer[Any <shortened> " (numpy._typing._array_like) [102:5]] (6ms)
2023-06-20 09:49:07.222 [info] (15052) [BG(1)]                       getTypeOfExpression ["_DualArrayLike[dtype[Union[boo <shortened> " (numpy._typing._array_like) [101:20]] (8ms)
2023-06-20 09:49:07.222 [info] (15052) [BG(1)]                     getTypeOfExpression ["_ArrayLikeInt_co" (numpy.__init__) [3856:11]] (8ms)
2023-06-20 09:49:07.222 [info] (15052) [BG(1)]                   getTypeOfExpression ["_ArrayLikeInt_co" (numpy.__init__) [3856:11]] (8ms) [f:1, t:0, p:0, i:0, b:2]
2023-06-20 09:49:07.222 [info] (15052) [BG(1)]                 getTypeOfExpression ["SupportsIndex | _ArrayLikeInt_ <shortened> " (numpy.__init__) [3855:9]] (8ms)
2023-06-20 09:49:07.223 [info] (15052) [BG(1)]               getTypeOfExpression ["SupportsIndex | _ArrayLikeInt_ <shortened> " (numpy.__init__) [3855:9]] (8ms) [f:1, t:0, p:0, i:0, b:2]
2023-06-20 09:49:07.223 [info] (15052) [BG(1)]             getTypeOfExpression ["(SupportsIndex | _ArrayLikeInt <shortened> " (numpy.__init__) [3854:32]] (9ms)
2023-06-20 09:49:07.223 [info] (15052) [BG(1)]           getEffectiveTypeOfSymbol [symbol Function, function '"__getitem__"  [3854:9]'  [3853:5] (numpy.__init__)] (16ms) [f:1, t:0, p:0, i:0, b:2]
2023-06-20 09:49:07.572 [info] (15052) [BG(1)]         assignType [OverloadedFunction ["Function '__getitem__' (builtins)","Function '__getitem__' (builtins)"]] (374ms) [f:1, t:0, p:0, i:0, b:2]
2023-06-20 09:49:07.701 [info] (15052) [BG(1)]       getTypeOfExpression ["[unp.std_devs(values)]" (slow) [5:19]] (549ms)
2023-06-20 09:49:09.973 [info] (15052) [BG(1)]     getTypeOfExpression ["np.array([unp.std_devs(values) <shortened> " (slow) [5:10]] (2821ms)
2023-06-20 09:49:09.974 [info] [Info  - 9:49:09 AM] (15052) [BG(1)] Long operation: getTypeOfExpression (2821ms)
2023-06-20 09:49:09.974 [info] (15052) [BG(1)]   getDeclarationsForNameNode ["std_devs" (slow) [5:24]] (2821ms) [f:1, t:2, p:12, i:1, b:4]
2023-06-20 09:49:09.974 [info] [Info  - 9:49:09 AM] (15052) [BG(1)] Long operation: getDeclarationsForNameNode (2821ms)
2023-06-20 09:49:12.506 [info] (15052) [BG(1)]   getDeclarationsForNameNode ...
2023-06-20 09:49:12.507 [info] (15052) [BG(1)]     getTypeOfExpression ["np.array([unp.std_devs(values) <shortened> " (slow) [8:10]] (2532ms)
2023-06-20 09:49:12.507 [info] [Info  - 9:49:12 AM] (15052) [BG(1)] Long operation: getTypeOfExpression (2532ms)
2023-06-20 09:49:12.507 [info] (15052) [BG(1)]   getDeclarationsForNameNode ["std_devs" (slow) [8:24]] (2533ms)
2023-06-20 09:49:12.507 [info] [Info  - 9:49:12 AM] (15052) [BG(1)] Long operation: getDeclarationsForNameNode (2533ms)
2023-06-20 09:49:15.122 [info] (15052) [BG(1)]   getDeclarationsForNameNode ...
2023-06-20 09:49:15.124 [info] (15052) [BG(1)]     getTypeOfExpression ["np.array([unp.std_devs(values) <shortened> " (slow) [11:10]] (2614ms)
2023-06-20 09:49:15.124 [info] [Info  - 9:49:15 AM] (15052) [BG(1)] Long operation: getTypeOfExpression (2614ms)
2023-06-20 09:49:15.125 [info] (15052) [BG(1)]   getDeclarationsForNameNode ["std_devs" (slow) [11:24]] (2614ms)
2023-06-20 09:49:15.125 [info] [Info  - 9:49:15 AM] (15052) [BG(1)] Long operation: getDeclarationsForNameNode (2614ms)
2023-06-20 09:49:15.126 [info] (15052) [BG(1)] getSemanticTokens full at d:\source\repos\triage\tensorflowGraphKeys\slow.py (8611ms)
2023-06-20 09:49:15.126 [info] [Info  - 9:49:15 AM] (15052) [BG(1)] Long operation: getSemanticTokens full at d:\source\repos\triage\tensorflowGraphKeys\slow.py (8611ms)
2023-06-20 09:49:15.130 [info] (15052) Background analysis message: analyze
2023-06-20 09:49:15.155 [info] (15052) [BG(1)] runWithCancellationToken ...
2023-06-20 09:49:15.155 [info] (15052) [BG(1)]   analyzing: d:\source\repos\triage\tensorflowGraphKeys\slow.py ...
2023-06-20 09:49:15.155 [info] (15052) [BG(1)]     checking: d:\source\repos\triage\tensorflowGraphKeys\slow.py (32ms)
2023-06-20 09:49:15.156 [info] (15052) [BG(1)]   analyzing: d:\source\repos\triage\tensorflowGraphKeys\slow.py (32ms)
2023-06-20 09:49:15.156 [info] (15052) [BG(1)] runWithCancellationToken (33ms)
2023-06-20 09:49:15.157 [info] (15052) Background analysis message: getSemanticTokens range
2023-06-20 09:49:15.160 [info] (15052) [BG(1)] getSemanticTokens range 0:0 - 10:41 at d:\source\repos\triage\tensorflowGraphKeys\slow.py (4ms)
2023-06-20 09:49:15.161 [info] (15052) Background analysis message: getDiagnosticsForRange
2023-06-20 09:49:15.163 [info] (15052) Background analysis message: resumeAnalysis

@j-kleemann-old
Copy link
Author

Thanks for having a look!
Here is a different example not using the uncertainties package where the same issue appears, even after adding "python.analysis.useLibraryCodeForTypes": false to my vs code settings.json :

import numpy as np

def foo(array: np.ndarray):
  return np.concatenate(([-np.inf], array, [np.inf]))


def foo2(array: np.ndarray):
  return np.concatenate(([-np.inf], array, [np.inf]))


def foo3(array: np.ndarray):
  return np.concatenate(([-np.inf], array, [np.inf]))

So while uncertainties not having type hints certainly has some impact, the main issue seems to be somewhere with numpy.
But in general: Even if pyright needs to infer all types from library codes / other imported files, why does it need to do so every time I change anything in my source file (and leave the library / other files untouched), even if my change is, e.g., just in a comment? Shouldn't there be some cache of already analyzed functions, classes, etc.?

Logs in case it helps in this toggle block
2023-06-21 08:57:47.293 [info] [Info  - 8:57:47 AM] (8624) Pylance language server 2023.6.20 (pyright 73165c50) starting
2023-06-21 08:57:47.294 [info] [Info  - 8:57:47 AM] (8624) Server root directory: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist
2023-06-21 08:57:47.300 [info] [Info  - 8:57:47 AM] (8624) Auto format for strings enabled
2023-06-21 08:57:47.316 [info] [Info  - 8:57:47 AM] (8624) Starting service instance "<default>"
2023-06-21 08:57:47.336 [info] (8624) No pyproject.toml file found.
2023-06-21 08:57:47.336 [info] [Info  - 8:57:47 AM] (8624) Setting pythonPath for service "<default>": "C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\python.exe"
2023-06-21 08:57:47.338 [info] [Warn  - 8:57:47 AM] (8624) stubPath typings is not a valid directory.
2023-06-21 08:57:47.416 [info] [Info  - 8:57:47 AM] (8624) Assuming Python version 3.11
2023-06-21 08:57:47.416 [info] (8624) Assuming Python platform Windows
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624) Search paths for <default>
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   typings
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stubs\...
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\bundled\stubs
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\Dropbox\TUD\PythonPackages
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311
2023-06-21 08:57:47.592 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
2023-06-21 08:57:47.593 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
2023-06-21 08:57:47.593 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
2023-06-21 08:57:47.593 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin
2023-06-21 08:57:47.593 [info] [Info  - 8:57:47 AM] (8624) Adding fs watcher for library directories:
 C:\Users\jkleemann\Dropbox\TUD\PythonPackages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin
2023-06-21 08:57:47.595 [info] (8624) Searching for source files
2023-06-21 08:57:47.596 [info] [Info  - 8:57:47 AM] (8624) No source files found.
2023-06-21 08:57:47.696 [info] (8624) [IDX(FG)] index libraries  (index) ...
2023-06-21 08:57:47.697 [info] (8624) [IDX(FG)]   read stdlib indices (34ms)
2023-06-21 08:57:47.697 [info] (8624) [IDX(FG)] index libraries  (index) [succeed] (36ms)
2023-06-21 08:57:47.697 [info] (8624) No pyproject.toml file found.
2023-06-21 08:57:47.697 [info] [Info  - 8:57:47 AM] (8624) Setting pythonPath for service "<default>": "C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\python.exe"
2023-06-21 08:57:47.697 [info] [Warn  - 8:57:47 AM] (8624) stubPath typings is not a valid directory.
2023-06-21 08:57:47.753 [info] [Info  - 8:57:47 AM] (8624) Assuming Python version 3.11
2023-06-21 08:57:47.753 [info] (8624) Assuming Python platform Windows
2023-06-21 08:57:47.897 [info] [Info  - 8:57:47 AM] (8624) Search paths for <default>
2023-06-21 08:57:47.897 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib
2023-06-21 08:57:47.897 [info] [Info  - 8:57:47 AM] (8624)   typings
2023-06-21 08:57:47.897 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stubs\...
2023-06-21 08:57:47.897 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\bundled\stubs
2023-06-21 08:57:47.897 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\Dropbox\TUD\PythonPackages
2023-06-21 08:57:47.897 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
2023-06-21 08:57:47.898 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
2023-06-21 08:57:47.898 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311
2023-06-21 08:57:47.898 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
2023-06-21 08:57:47.898 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
2023-06-21 08:57:47.898 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
2023-06-21 08:57:47.898 [info] [Info  - 8:57:47 AM] (8624)   c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythonwin
2023-06-21 08:57:47.898 [info] [Info  - 8:57:47 AM] (8624) Adding fs watcher for library directories:
 C:\Users\jkleemann\Dropbox\TUD\PythonPackages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\DLLs
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib
C:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin
2023-06-21 08:57:47.899 [info] (8624) Searching for source files
2023-06-21 08:57:47.899 [info] [Info  - 8:57:47 AM] (8624) No source files found.
2023-06-21 08:57:47.905 [info] (8624) [IDX(FG)] index libraries  (index) ...
2023-06-21 08:57:47.905 [info] (8624) [IDX(FG)]   read stdlib indices (0ms)
2023-06-21 08:57:47.906 [info] (8624) [IDX(FG)] index libraries  (index) [succeed] (1ms)
2023-06-21 08:57:48.004 [info] (8624) [FG] parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (97ms)
2023-06-21 08:57:48.126 [info] (8624) [FG] parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 3ms] (122ms)
2023-06-21 08:57:48.155 [info] (8624) [FG] binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi (28ms)
2023-06-21 08:57:48.155 [info] (8624) [FG] binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (1ms)
2023-06-21 08:57:48.164 [info] [Info  - 8:57:48 AM] (8624) Background analysis(1) root directory: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist
2023-06-21 08:57:48.165 [info] [Info  - 8:57:48 AM] (8624) Background analysis(1) started
2023-06-21 08:57:48.165 [info] (8624) Background analysis message: setConfigOptions
2023-06-21 08:57:48.165 [info] (8624) Background analysis message: setImportResolver
2023-06-21 08:57:48.165 [info] (8624) Background analysis message: ensurePartialStubPackages
2023-06-21 08:57:48.165 [info] (8624) Background analysis message: setConfigOptions
2023-06-21 08:57:48.166 [info] (8624) Background analysis message: setTrackedFiles
2023-06-21 08:57:48.166 [info] (8624) Background analysis message: markAllFilesDirty
2023-06-21 08:57:48.166 [info] (8624) Background analysis message: setFileOpened
2023-06-21 08:57:48.166 [info] (8624) Background analysis message: setConfigOptions
2023-06-21 08:57:48.167 [info] (8624) Background analysis message: setImportResolver
2023-06-21 08:57:48.167 [info] (8624) Background analysis message: ensurePartialStubPackages
2023-06-21 08:57:48.167 [info] (8624) Background analysis message: setConfigOptions
2023-06-21 08:57:48.167 [info] (8624) Background analysis message: setTrackedFiles
2023-06-21 08:57:48.168 [info] (8624) Background analysis message: markAllFilesDirty
2023-06-21 08:57:48.168 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 08:57:48.168 [info] (8624) Background analysis message: getSemanticTokens full
2023-06-21 08:57:48.302 [info] (8624) [BG(1)] getSemanticTokens full at c:\Users\jkleemann\Desktop\slow\SlowFile.py ...
2023-06-21 08:57:48.302 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (143ms)
2023-06-21 08:57:48.387 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi [fs read 2ms] (84ms)
2023-06-21 08:57:48.425 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\builtins.pyi (37ms)
2023-06-21 08:57:48.425 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-21 08:57:48.446 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing.pyi [fs read 0ms] (14ms)
2023-06-21 08:57:48.454 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing.pyi (7ms)
2023-06-21 08:57:48.459 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing_extensions.pyi [fs read 1ms] (3ms)
2023-06-21 08:57:48.461 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\typing_extensions.pyi (2ms)
2023-06-21 08:57:48.493 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi [fs read 0ms] (10ms)
2023-06-21 08:57:48.495 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_typeshed\__init__.pyi (2ms)
2023-06-21 08:57:48.503 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\types.pyi [fs read 1ms] (7ms)
2023-06-21 08:57:48.506 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\types.pyi (3ms)
2023-06-21 08:57:48.514 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\abc.pyi [fs read 0ms] (1ms)
2023-06-21 08:57:48.515 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\abc.pyi (1ms)
2023-06-21 08:57:48.661 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\__init__.pyi [fs read 1ms] (144ms)
2023-06-21 08:57:48.685 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\__init__.pyi (22ms)
2023-06-21 08:57:48.699 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\multiarray.pyi [fs read 1ms] (7ms)
2023-06-21 08:57:48.702 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\multiarray.pyi (3ms)
2023-06-21 08:57:48.710 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\__init__.py [fs read 0ms] (6ms)
2023-06-21 08:57:48.710 [info] [Info  - 8:57:48 AM] (8624) Could not resolve source for '._ufunc' in file 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\__init__.py'
2023-06-21 08:57:48.710 [info] [Info  - 8:57:48 AM] (8624)   Attempting to resolve relative import
2023-06-21 08:57:48.711 [info] [Info  - 8:57:48 AM] (8624)   Attempting to resolve using root path 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing'
2023-06-21 08:57:48.711 [info] [Info  - 8:57:48 AM] (8624)   Resolved import with file 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_ufunc.pyi'
2023-06-21 08:57:48.711 [info] [Info  - 8:57:48 AM] (8624)   Attempting to resolve using root path 'c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing'
2023-06-21 08:57:48.712 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\__init__.py (1ms)
2023-06-21 08:57:48.718 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_array_like.py [fs read 5ms] (6ms)
2023-06-21 08:57:48.718 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_array_like.py (1ms)
2023-06-21 08:57:48.728 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_nested_sequence.py [fs read 0ms] (2ms)
2023-06-21 08:57:48.729 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_nested_sequence.py (1ms)
2023-06-21 08:57:48.741 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_generic_alias.py [fs read 0ms] (6ms)
2023-06-21 08:57:48.746 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_generic_alias.py (5ms)
2023-06-21 08:57:48.747 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\collections\abc.pyi [fs read 0ms] (0ms)
2023-06-21 08:57:48.748 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\collections\abc.pyi ...
2023-06-21 08:57:48.748 [info] (8624) [BG(1)]     parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_collections_abc.pyi [fs read 1ms] (2ms)
2023-06-21 08:57:48.749 [info] (8624) [BG(1)]     binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\_collections_abc.pyi (0ms)
2023-06-21 08:57:48.749 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\collections\abc.pyi (3ms)
2023-06-21 08:57:48.755 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_dtype_like.py [fs read 0ms] (2ms)
2023-06-21 08:57:48.756 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_dtype_like.py (1ms)
2023-06-21 08:57:48.759 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_shape.py [fs read 0ms] (0ms)
2023-06-21 08:57:48.759 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\_typing\_shape.py (0ms)
2023-06-21 08:57:48.788 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\sys.pyi [fs read 0ms] (6ms)
2023-06-21 08:57:48.790 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\.vscode\extensions\ms-python.vscode-pylance-2023.6.20\dist\typeshed-fallback\stdlib\sys.pyi (2ms)
2023-06-21 08:57:48.814 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\overrides.py [fs read 1ms] (10ms)
2023-06-21 08:57:48.815 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\AppData\Local\Programs\Python\Python311\Lib\site-packages\numpy\core\overrides.py (1ms)
2023-06-21 08:57:52.496 [info] (8624) [BG(1)] getSemanticTokens full at c:\Users\jkleemann\Desktop\slow\SlowFile.py (4337ms)
2023-06-21 08:57:52.496 [info] [Info  - 8:57:52 AM] (8624) [BG(1)] Long operation: getSemanticTokens full at c:\Users\jkleemann\Desktop\slow\SlowFile.py (4337ms)
2023-06-21 08:57:52.498 [info] (8624) Background analysis message: analyze
2023-06-21 08:57:52.509 [info] (8624) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py ...
2023-06-21 08:57:52.509 [info] (8624) [BG(1)]   checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (11ms)
2023-06-21 08:57:52.509 [info] (8624) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (12ms)
2023-06-21 08:57:52.511 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 08:57:52.511 [info] (8624) Background analysis message: getSemanticTokens range
2023-06-21 08:57:52.512 [info] (8624) [BG(1)] getSemanticTokens range 0:0 - 11:53 at c:\Users\jkleemann\Desktop\slow\SlowFile.py (2ms)
2023-06-21 08:57:52.513 [info] (8624) Background analysis message: resumeAnalysis
2023-06-21 08:57:52.514 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 08:59:35.808 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 08:59:35.811 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 08:59:36.529 [info] (8624) Background analysis message: setFileOpened
2023-06-21 08:59:36.529 [info] (8624) Background analysis message: markFilesDirty
2023-06-21 08:59:36.534 [info] (8624) [FG] parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (2ms)
2023-06-21 08:59:36.535 [info] (8624) [FG] binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-21 08:59:36.554 [info] (8624) Background analysis message: setFileOpened
2023-06-21 08:59:36.555 [info] (8624) Background analysis message: markFilesDirty
2023-06-21 08:59:36.815 [info] (8624) Background analysis message: analyze
2023-06-21 08:59:36.817 [info] (8624) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py ...
2023-06-21 08:59:36.817 [info] (8624) [BG(1)]   parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (2ms)
2023-06-21 08:59:36.817 [info] (8624) [BG(1)]   binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (1ms)
2023-06-21 08:59:36.928 [info] (8624) [FG] parsing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-21 08:59:36.928 [info] (8624) [FG] binding: c:\Users\jkleemann\Desktop\slow\SlowFile.py (0ms)
2023-06-21 08:59:40.681 [info] (8624) [BG(1)]   checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (3863ms)
2023-06-21 08:59:40.681 [info] [Info  - 8:59:40 AM] (8624) [BG(1)] Long operation: checking: c:\Users\jkleemann\Desktop\slow\SlowFile.py (3863ms)
2023-06-21 08:59:40.681 [info] (8624) [BG(1)] analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (3866ms)
2023-06-21 08:59:40.681 [info] [Info  - 8:59:40 AM] (8624) [BG(1)] Long operation: analyzing: c:\Users\jkleemann\Desktop\slow\SlowFile.py (3866ms)
2023-06-21 08:59:40.682 [info] (8624) Background analysis message: getSemanticTokens delta
2023-06-21 08:59:40.685 [info] (8624) [BG(1)] getSemanticTokens delta previousResultId:1687330668417 at c:\Users\jkleemann\Desktop\slow\SlowFile.py (3ms)
2023-06-21 08:59:40.686 [info] (8624) Background analysis message: resumeAnalysis
2023-06-21 09:00:18.712 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 09:00:18.713 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 09:00:19.099 [info] (8624) Background analysis message: getDiagnosticsForRange
2023-06-21 09:00:19.101 [info] (8624) Background analysis message: getDiagnosticsForRange

@StellaHuang95
Copy link
Contributor

The issue has been addressed in pyright 1.1.317, You can find more information in this issue.

I've also tried with pyright 1.1.317 and the analysis time has dropped significantly on my machine. The fix will be available in pylance once pyright 1.1.317 is included.

@StellaHuang95 StellaHuang95 added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Jul 18, 2023
@j-kleemann-old
Copy link
Author

Thanks! Replacing pylance by the pyright extension (which ships with pyright v1.1.318) for now indeed fixes the issues (also in my actual projects).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version needs investigation Could be an issue - needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants