-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Uploading Python.log…
Type: Bug
Behaviour
Expected vs. Actual
Expected: I can code without interruptions.
Actual: Command prompt windows keep popping up, stealing focus from VSCode and making it difficult to write code.
Steps to reproduce:
I'm not certain how to reproduce the problem in general, but I've narrowed it down to the use of Pytest. After a clean reinstall, the issue wasn't present until I enabled Pytest in VSCode's Testing tab.
Studying the Python log in the Output tab, I noticed that whenever the window pops up, the following appears in the log:
2024-03-07 14:39:05.892 [info] Discover tests for workspace name: EyeZ - uri: c:\Users\matej\Documents\Programs\Python\EyeZ\eyez\data\sets\split.py
2024-03-07 14:39:05.898 [info] > conda run -n torch --no-capture-output python ~\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2024.2.1\pythonFiles\testing_tools\run_adapter.py discover pytest -- --rootdir ~\Documents\Programs\Python\EyeZ -s --cache-clear tests
2024-03-07 14:39:05.898 [info] cwd: ~\Documents\Programs\Python\EyeZ
Trying to exectue the above conda run command manually gives me an error, since ~ is not a thing in powershell or command prompt.
This issue only started appearing in the last month or two, prior to that I could use Pytest on the same machine with no issues.
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.5
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
- Value of the
python.languageServersetting: Pylance
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Python log attached, since it was too long to copy here.
User Settings
Multiroot scenario, following user settings may not apply:
languageServer: "Pylance"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
Extension version: 2024.2.1
VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:41:44.469Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 7 2700X Eight-Core Processor (16 x 3700) |
| 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 vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
| Load (avg) | undefined |
| Memory (System) | 31.95GB (19.90GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 0% |