forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as duplicate of#24656
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Behaviour
When I open the testing side panel it runs discovery forever. There have been no changes to my config or my python environment since this was last seen working.
I have MANAGE_PY_PATH and DJANGO_SETTINGS_MODULE set in my .env file and my .vscode/settings.json is like so:
{
"python.testing.autoTestDiscoverOnSaveEnabled": false,
"python.defaultInterpreterPath": ".venv/bin/python",
"python.testing.unittestEnabled": true,
"python.testing.unittestArgs": [
"--keepdb"
]
}
Steps to reproduce:
- Configure test discovery for Django
- Open the testing side panel
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
2024-12-30 22:37:56.363 [info] Experiment 'pythonTestAdapter' is active
2024-12-30 22:37:56.363 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-12-30 22:37:56.363 [info] Experiment 'pythonSurveyNotification' is active
2024-12-30 22:37:56.363 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-12-30 22:37:56.363 [warning] Dir "/Users/kylemckay/code/cinder/.pixi/envs" is not watchable (directory does not exist)
2024-12-30 22:37:56.363 [info] VS Code was launched from an activated environment: '.venv', selecting it as the interpreter for workspace.
2024-12-30 22:37:56.363 [info] Python interpreter path: ./.venv/bin/python
2024-12-30 22:37:57.461 [info] > pyenv which python
2024-12-30 22:37:57.461 [info] cwd: .
2024-12-30 22:37:57.885 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/printEnvVariables.py
2024-12-30 22:37:57.885 [info] shell: zsh
2024-12-30 22:37:57.962 [info] > /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/printEnvVariables.py
2024-12-30 22:37:57.962 [info] shell: zsh
2024-12-30 22:37:58.246 [info] Prepending environment variable PATH in collection with /Users/kylemckay/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/deactivate/zsh:/Users/kylemckay/code/cinder/.venv/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-30 22:37:58.246 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to cinder-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-12-30 22:37:58.246 [info] Prepending environment variable PS1 in collection with cinder-py3.11 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-12-30 22:37:58.246 [info] Send text to terminal: /usr/bin/python3 /Users/kylemckay/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/kylemckay/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2024-12-30 22:37:58.703 [info] Starting Pylance language server.
2024-12-30 22:38:42.108 [info] > conda info --json
2024-12-31 09:18:11.683 [info] Discover tests for workspace name: cinder - uri: /Users/kylemckay/code/cinder
2024-12-31 09:18:11.683 [info] Running discovery for unittest using the new test adapter.
2024-12-31 09:18:11.735 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/printEnvVariables.py
2024-12-31 09:18:11.735 [info] shell: bash
2024-12-31 09:18:11.770 [info] Discovering unittest tests for workspace /Users/kylemckay/code/cinder with arguments: /Users/kylemckay/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/unittestadapter/discovery.py,--udiscovery,--keepdb
2024-12-31 09:18:11.770 [info] > ./.venv/bin/python ~/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/unittestadapter/discovery.py --udiscovery --keepdb
2024-12-31 09:18:11.770 [info] cwd: .
2024-12-31 09:18:11.816 [info] MANAGE_PY_PATH is set, running Django discovery with path to manage.py as: $./manage.py
2024-12-31 09:18:11.816 [info] Running Django tests with command: ['/Users/kylemckay/code/cinder/.venv/bin/python', './manage.py', 'test', '--testrunner=django_test_runner.CustomDiscoveryTestRunner', '--keepdb']
Extension version: 2024.22.1
VS Code version: Code 1.96.2 (Universal) (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 24.2.0
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.4
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Poetry
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Pylance"
testing
• unittestArgs: "<placeholder>"
• unittestEnabled: true
• autoTestDiscoverOnSaveEnabled: false
experiments
• optInto: ["pythonTestAdapter"]
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| .NET Install Tool | ms-dotnettools.vscode-dotnet-runtime | 2.2.3 |
| Biome | biomejs.biome | 2.3.0 |
| C/C++ | ms-vscode.cpptools | 1.22.11 |
| C# | ms-dotnettools.csharp | 2.55.29 |
| Docker | ms-azuretools.vscode-docker | 1.29.3 |
| EditorConfig for VS Code | EditorConfig.EditorConfig | 0.16.4 |
| ESLint | dbaeumer.vscode-eslint | 3.0.10 |
| Even Better TOML | tamasfe.even-better-toml | 0.21.2 |
| GitHub Copilot | GitHub.copilot | 1.254.0 |
| GitHub Copilot Chat | GitHub.copilot-chat | 0.23.2 |
| GitLens — Git supercharged | eamodio.gitlens | 16.1.1 |
| Go | golang.go | 0.44.0 |
| GraphQL | mquandalle.graphql | 0.1.2 |
| HashiCorp Terraform | hashicorp.terraform | 2.34.2 |
| isort | ms-python.isort | 2023.10.1 |
| JavaScript Debugger | ms-vscode.js-debug | 1.96.0 |
| JavaScript Debugger Companion Extension | ms-vscode.js-debug-companion | 1.1.3 |
| Jupyter | ms-toolsai.jupyter | 2024.11.0 |
| Jupyter Cell Tags | ms-toolsai.vscode-jupyter-cell-tags | 0.1.9 |
| Jupyter Keymap | ms-toolsai.jupyter-keymap | 1.1.2 |
| Jupyter Notebook Renderers | ms-toolsai.jupyter-renderers | 1.0.21 |
| Jupyter Slide Show | ms-toolsai.vscode-jupyter-slideshow | 0.1.6 |
| Kubernetes | ms-kubernetes-tools.vscode-kubernetes-tools | 1.3.18 |
| Pylance | ms-python.vscode-pylance | 2024.12.1 |
| Python | ms-python.python | 2024.22.1 |
| Python Debugger | ms-python.debugpy | 2024.14.0 |
| Ruff | charliermarsh.ruff | 2024.56.0 |
| Simple React Snippets | burkeholland.simple-react-snippets | 1.2.8 |
| Table Visualizer for JavaScript Profiles | ms-vscode.vscode-js-profile-table | 1.0.10 |
| YAML | redhat.vscode-yaml | 1.15.0 |
System Info
| Item | Value |
|---|---|
| CPUs | Apple M2 Pro (10 x 2400) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 2, 2, 3 |
| Memory (System) | 16.00GB (0.21GB free) |
| Process Argv | . --crash-reporter-id 8ef3b5b9-2249-469d-bec0-04835ab05199 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31179978
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
christiansegercrantz, nyxgear, hbridge, hellej and dabeeeenster
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team