pyright icon indicating copy to clipboard operation
pyright copied to clipboard

Pyright hangs when analyzing scipy project

Open erictraut opened this issue 1 year ago • 0 comments

This is related to https://github.com/microsoft/pyright/issues/8272. I'm creating issues for each hang so I can track them separately.

This particular issue specifically affects the lobpcg function in module scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py.

To repro:

  • Clone the repro https://github.com/scipy/scipy
  • Open the file scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py in VS Code with pyright installed

There are also other modules that take a long time to analyze:

/scipy/scipy/optimize/_lsq/trf.py (20542ms) /scipy/doc/source/tutorial/examples/newton_krylov_preconditioning.py (6041ms) /scipy/scipy/sparse/tests/test_base.py (3504ms) /scipy/scipy/stats/tests/test_stats.py (3007ms) /scipy/scipy/signal/tests/test_filter_design.py (2897ms) /scipy/scipy/signal/tests/test_signaltools.py (2755ms) /scipy/scipy/linalg/tests/test_lapack.py (2657ms) /scipy/scipy/stats/tests/test_distributions.py (2640ms) /scipy/scipy/linalg/tests/test_basic.py (2529ms) /scipy/scipy/linalg/tests/test_decomp.py (2470ms) /scipy/scipy/sparse/linalg/_isolve/iterative.py (2425ms)

erictraut avatar Jul 01 '24 00:07 erictraut