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
When trying to restart a Python unit test, unit test adatper crashes with "Error: Could not connect to RUN_TEST_IDS_PIPE: [Errno 2] No such file or directory: '\\.\pipe\python-test-ids-20dfe7a7d2563588ca21-sock'"
This started recently after a VSCode or Python extension update specifically, not sure which. My Python environment and version has stayed the same. I've uninstalled all other extensions, cleared cache, and restarted VSCode. This now occurs on multiple machines, both at home and at work. Been a month or two now and I've just been dealing with it.
Steps to reproduce:
Debug Python unit test and hit breakpoint
Click restart or CTRL+SHIFT+5
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Error: Could not connect to RUN_TEST_IDS_PIPE: [Errno 2] No such file or directory: '\\\\.\\pipe\\python-test-ids-a73e2016afb4903ed58f-sock'
Traceback (most recent call last):
File "c:\Users\WolfI\.vscode\extensions\ms-python.python-2024.12.2-win32-x64\python_files\unittestadapter\execution.py", line 294, in <module>
with socket_manager.PipeManager(run_test_ids_pipe) as sock:
File "c:\Users\WolfI\.vscode\extensions\ms-python.python-2024.12.2-win32-x64\python_files\testing_tools\socket_manager.py", line 17, in __enter__
return self.connect()
File "c:\Users\WolfI\.vscode\extensions\ms-python.python-2024.12.2-win32-x64\python_files\testing_tools\socket_manager.py", line 24, in connect
self._writer = open(self.name, "w", encoding="utf-8") # noqa: SIM115, PTH123
FileNotFoundError: [Errno 2] No such file or directory: '\\\\.\\pipe\\python-test-ids-a73e2016afb4903ed58f-sock'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\WolfI\Anaconda3\envs\clean-3.10.13\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\WolfI\Anaconda3\envs\clean-3.10.13\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "c:\Users\WolfI\.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy\__main__.py", line 39, in <module>
cli.main()
File "c:\Users\WolfI\.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy/..\debugpy\server\cli.py", line 430, in main
run()
File "c:\Users\WolfI\.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy/..\debugpy\server\cli.py", line 284, in run_file
runpy.run_path(target, run_name="__main__")
File "c:\Users\WolfI\.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 321, in run_path
return _run_module_code(code, init_globals, run_name,
File "c:\Users\WolfI\.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 135, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "c:\Users\WolfI\.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code
exec(code, run_globals)
File "c:\Users\WolfI\.vscode\extensions\ms-python.python-2024.12.2-wi
Extension version: 2024.12.2
VS Code version: Code 1.92.0 (b1c0a14de1414fcdaa400695b4db1c0799bc3124, 2024-07-31T23:26:45.634Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Python version (& distribution if applicable, e.g. Anaconda): 3.10.13
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
Value of the python.languageServer setting: Pylance
Also, when I use "Python: report an issue" from VSCode, the template above has the behavior and steps to reproduce sections duplicated? Is that intentional? I even restarted the process to make sure I didn't do something wrong, but it still did it. I deleted it as it made things messy.
As you can see I actually even commented on this (/facepalm) but couldn't find the thread again after coming back from vacation!
I see you are assigned to that one as well @eleanorjboyd. I'll leave it up to you to close this one if you think it's the same or leave it open for the time being.
Type: Bug
Behaviour
When trying to restart a Python unit test, unit test adatper crashes with "Error: Could not connect to RUN_TEST_IDS_PIPE: [Errno 2] No such file or directory: '\\.\pipe\python-test-ids-20dfe7a7d2563588ca21-sock'"
This started recently after a VSCode or Python extension update specifically, not sure which. My Python environment and version has stayed the same. I've uninstalled all other extensions, cleared cache, and restarted VSCode. This now occurs on multiple machines, both at home and at work. Been a month or two now and I've just been dealing with it.
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.12.2
VS Code version: Code 1.92.0 (b1c0a14de1414fcdaa400695b4db1c0799bc3124, 2024-07-31T23:26:45.634Z)
OS version: Windows_NT x64 10.0.19045
Modes:
python.languageServer
setting: PylanceUser Settings
Installed Extensions
System Info
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
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: