You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version (& distribution if applicable, e.g. Anaconda): 3.10.15
Code Snippet
NA
Repro Steps
When pytest is run from terminal, all tests run as expected (success)
With a small test module, when tests are added one at a time, Pylance discovery succeeds.
BUT, if many test functions are added to a module at once, or several test-modules are added, discovery hangs and fails.
blue 'loading' bar just goes without end.
Note that there is no message of any kind in Terminal, Output, or Test Results. No error message, no information of any find. App restart is the only way to stop the failing discovery.
This behavior is the same in all projects opened in VSCode
Expected behavior
Tests are discovered
Actual behavior
Discovery fails (hangs and never resolves).
Logs
Attached. This is the log produced when I click on the Testing button in the Activity Bar OUTPUT_PYTHON_TRACE.txt
2025-01-01 15:37:21.743 [info] Starting Pylance language server.
2025-01-01 15:37:21.745 [debug] Found cached env for /Users/em/Dropbox/bldgtyp-00/00_PH_Tools/honeybee_ph/.venv/bin/python
2025-01-01 15:37:21.746 [debug] Terminal shell path '/bin/zsh' identified as shell 'zsh'
2025-01-01 15:37:21.746 [debug] Shell identified as zsh
2025-01-01 15:37:21.746 [debug] Found cached env for /Users/em/Dropbox/bldgtyp-00/00_PH_Tools/honeybee_ph/.venv/bin/python
2025-01-01 15:37:27.942 [debug] Found cached env for /Users/em/Dropbox/bldgtyp-00/00_PH_Tools/honeybee_ph/.venv/bin/python
2025-01-01 15:37:27.943 [debug] Found cached env for /Users/em/Dropbox/bldgtyp-00/00_PH_Tools/honeybee_ph/.venv/bin/python
2025-01-01 15:38:34.005 [debug] Found cached env for /Users/em/Dropbox/bldgtyp-00/00_PH_Tools/honeybee_ph/.venv/bin/python
2025-01-01 15:39:01.188 [debug] Found cached env for /Users/em/Dropbox/bldgtyp-00/00_PH_Tools/honeybee_ph/.venv/bin/python
2025-01-01 15:39:04.339 [debug] Found cached env for /Users/em/Dropbox/bldgtyp-00/00_PH_Tools/honeybee_ph/.venv/bin/python
Note the last line continues to update and adds another identical line every 30-40 seconds.
The text was updated successfully, but these errors were encountered:
Environment data
Code Snippet
NA
Repro Steps
When
pytest
is run from terminal, all tests run as expected (success)With a small test module, when tests are added one at a time, Pylance discovery succeeds.
BUT, if many test functions are added to a module at once, or several test-modules are added, discovery hangs and fails.
blue 'loading' bar just goes without end.
Note that there is no message of any kind in Terminal, Output, or Test Results. No error message, no information of any find. App restart is the only way to stop the failing discovery.
This behavior is the same in all projects opened in VSCode
Expected behavior
Tests are discovered
Actual behavior
Discovery fails (hangs and never resolves).
Logs
Attached. This is the log produced when I click on the
Testing
button in theActivity Bar
OUTPUT_PYTHON_TRACE.txt
Note the last line continues to update and adds another identical line every 30-40 seconds.
The text was updated successfully, but these errors were encountered: