Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonTestAdapter hangs other processes #24645

Closed
ivan-toriya opened this issue Dec 20, 2024 · 1 comment
Closed

pythonTestAdapter hangs other processes #24645

ivan-toriya opened this issue Dec 20, 2024 · 1 comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@ivan-toriya
Copy link

Type: Bug

Behaviour

When

"python.experiments.optInto": [
        "pythonTestAdapter"
    ],
"python.testing.pytestEnabled": true,

make change -> Ctrl+S -> make change -> Ctrl+S ... observe hanged processes.

Steps to reproduce:

mkdir /tmp/vscode-bug
cd /tmp/vscode-bug
python -m venv .venv
code . --profile temp
  1. Install ms-python.python
  2. Add to settings.json
"python.testing.pytestEnabled": true,
"python.experiments.optInto": [
        "pythonTestAdapter"
    ],
  1. "Developer: Restart extension host". In Output [Python] you should see
[info] Experiment 'pythonTestAdapter' is active
...
[info] Running discovery for pytest using the new test adapter.
  1. Create hello.py, select .venv as Python Interpreter
  2. Start making changes and saving file (Ctrl+S), repeat this ~4 times and see the hanged state.
  3. Source Control, Renaming files, Copilot hangs (in my case)

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2024-12-20 10:36:24.568 [info] Telemetry level is off
2024-12-20 10:36:24.568 [info] Experiments are disabled, only manually opted experiments are active.
2024-12-20 10:36:24.568 [info] Experiment 'pythonTestAdapter' is active
2024-12-20 10:36:24.568 [warning] Dir "/tmp/vscode-bug/.pixi/envs" is not watchable (directory does not exist)
2024-12-20 10:36:25.006 [info] > ~/.pyenv/bin/pyenv which python
2024-12-20 10:36:25.006 [info] cwd: .
2024-12-20 10:36:25.025 [info] > ./.venv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files/interpreterInfo.py
2024-12-20 10:36:25.071 [info] Python interpreter path: ./.venv/bin/python
2024-12-20 10:36:25.680 [info] Starting Pylance language server.
2024-12-20 10:36:37.225 [info] Discover tests for workspace name: vscode-bug - uri: /tmp/vscode-bug/hello.py
2024-12-20 10:36:37.226 [info] Running discovery for pytest using the new test adapter.
2024-12-20 10:36:37.267 [info] All environment variables set for pytest discovery: {"ATUIN_HISTORY_ID":"0193e35fd11c7b0eb9ad23339d962d36","ATUIN_SESSION":"0193e339d179799b81f4b2275ad27d76","BLE_SESSION_ID":"1734684037.691526/24348","CHROME_DESKTOP":"code.desktop","COLORTERM":"truecolor","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DESKTOP_SESSION":"gnome","DISPLAY":":0","DOCKER_CONTEXT":"desktop-linux","ELECTRON_NO_ATTACH_CONSOLE":"1","GDK_BACKEND":"x11","GDMSESSION":"gnome","GDM_LANG":"en_US.UTF-8","GEM_HOME":"/home/ivan/gems","GIO_LAUNCHED_DESKTOP_FILE_PID":"24336","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_KEYRING_CONTROL":"/run/user/1000/keyring","GNOME_SETUP_DISPLAY":":1","GTK_MODULES":"gail:atk-bridge","HOME":"/home/ivan","IM_CONFIG_PHASE":"1","INVOCATION_ID":"df1fefe974dc4314a0f344f7dd953ce3","JOURNAL_STREAM":"8:28369","KITTY_INSTALLATION_DIR":"/home/ivan/.local/kitty.app/lib/kitty","KITTY_PID":"24336","KITTY_PUBLIC_KEY":"1:3;z!ui_nS>8GDaxBP~A(Uv5w>g{vgA7p&JU6YEGs","KITTY_WINDOW_ID":"1","LANG":"en_US.UTF-8","LANGUAGE":"en_US:en","LINENO":"50","LOGNAME":"ivan","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:","MANAGERPID":"1967","MANPATH":"/home/ivan/.local/kitty.app/share/man:","OLDPWD":"/","ORIGINAL_XDG_CURRENT_DESKTOP":"GNOME","PIPX_DEFAULT_PYTHON":"/home/ivan/.pyenv/shims/python","PWD":"/tmp/vscode-bug","PYENV_ROOT":"/home/ivan/.pyenv","PYENV_SHELL":"bash","QTWEBENGINE_DICTIONARIES_PATH":"/usr/share/hunspell-bdic/","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/t490s:@/tmp/.ICE-unix/2163,unix/t490s:/tmp/.ICE-unix/2163","SHELL":"/usr/bin/bash","SHLVL":"1","SSH_AGENT_LAUNCHER":"openssh","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","STARSHIP_SESSION_KEY":"2331521580115992","STARSHIP_SHELL":"bash","SYSTEMD_EXEC_PID":"2519","TERM":"xterm-kitty","TERMINFO":"/home/ivan/.local/kitty.app/lib/kitty/terminfo","USER":"ivan","USERNAME":"ivan","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/ivan/.config/Code/CachedData/fabdb6a30b49f79a7aba0f2ad9df9b399473380f","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/tmp/vscode-bug","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-c6d150be-1.96-main.sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"/usr/share/code/resources/app/out/nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"43156","WAYLAND_DISPLAY":"wayland-0","XAUTHORITY":"/run/user/1000/.mutter-Xwaylandauth.EEEDZ2","XDG_CURRENT_DESKTOP":"GNOME","XDG_DATA_DIRS":"/usr/share/gnome:/home/ivan/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"gnome","XDG_SESSION_TYPE":"wayland","XMODIFIERS":"@im=ibus","_":"/usr/bin/code","bleopt_connect_tty":"1","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/ivan/gems/bin:/home/ivan/.pyenv/shims:/home/ivan/.pyenv/bin:/home/ivan/.atuin/bin:/home/ivan/.cargo/bin:/home/ivan/.local/kitty.app/bin:/home/ivan/.local/bin:/home/ivan/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/nvim-linux64/bin:/usr/local/go/bin","PYTHONPATH":"/home/ivan/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files","TEST_RUN_PIPE":"/run/user/1000/python-test-discovery-d25c98f9c13d91b48044"}
2024-12-20 10:36:37.285 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files/printEnvVariables.py
2024-12-20 10:36:37.286 [info] shell: bash
2024-12-20 10:36:37.324 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only --rootdir=.
2024-12-20 10:36:37.324 [info] cwd: .
2024-12-20 10:36:37.337 [error] /tmp/vscode-bug/.venv/bin/python: No module named pytest

2024-12-20 10:36:37.340 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /tmp/vscode-bug.
2024-12-20 10:36:37.352 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /tmp/vscode-bug. Creating and sending error discovery payload
2024-12-20 10:36:37.352 [error] pytest test discovery error for workspace:  /tmp/vscode-bug 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /tmp/vscode-bug
2024-12-20 10:36:39.138 [info] Discover tests for workspace name: vscode-bug - uri: /tmp/vscode-bug/hello.py
2024-12-20 10:36:39.138 [info] Running discovery for pytest using the new test adapter.
2024-12-20 10:36:39.168 [info] arg: --rootdir already exists in args, not adding.
2024-12-20 10:36:39.168 [info] All environment variables set for pytest discovery: {"ATUIN_HISTORY_ID":"0193e35fd11c7b0eb9ad23339d962d36","ATUIN_SESSION":"0193e339d179799b81f4b2275ad27d76","BLE_SESSION_ID":"1734684037.691526/24348","CHROME_DESKTOP":"code.desktop","COLORTERM":"truecolor","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DESKTOP_SESSION":"gnome","DISPLAY":":0","DOCKER_CONTEXT":"desktop-linux","ELECTRON_NO_ATTACH_CONSOLE":"1","GDK_BACKEND":"x11","GDMSESSION":"gnome","GDM_LANG":"en_US.UTF-8","GEM_HOME":"/home/ivan/gems","GIO_LAUNCHED_DESKTOP_FILE_PID":"24336","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_KEYRING_CONTROL":"/run/user/1000/keyring","GNOME_SETUP_DISPLAY":":1","GTK_MODULES":"gail:atk-bridge","HOME":"/home/ivan","IM_CONFIG_PHASE":"1","INVOCATION_ID":"df1fefe974dc4314a0f344f7dd953ce3","JOURNAL_STREAM":"8:28369","KITTY_INSTALLATION_DIR":"/home/ivan/.local/kitty.app/lib/kitty","KITTY_PID":"24336","KITTY_PUBLIC_KEY":"1:3;z!ui_nS>8GDaxBP~A(Uv5w>g{vgA7p&JU6YEGs","KITTY_WINDOW_ID":"1","LANG":"en_US.UTF-8","LANGUAGE":"en_US:en","LINENO":"50","LOGNAME":"ivan","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:","MANAGERPID":"1967","MANPATH":"/home/ivan/.local/kitty.app/share/man:","OLDPWD":"/","ORIGINAL_XDG_CURRENT_DESKTOP":"GNOME","PIPX_DEFAULT_PYTHON":"/home/ivan/.pyenv/shims/python","PWD":"/tmp/vscode-bug","PYENV_ROOT":"/home/ivan/.pyenv","PYENV_SHELL":"bash","QTWEBENGINE_DICTIONARIES_PATH":"/usr/share/hunspell-bdic/","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/t490s:@/tmp/.ICE-unix/2163,unix/t490s:/tmp/.ICE-unix/2163","SHELL":"/usr/bin/bash","SHLVL":"1","SSH_AGENT_LAUNCHER":"openssh","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","STARSHIP_SESSION_KEY":"2331521580115992","STARSHIP_SHELL":"bash","SYSTEMD_EXEC_PID":"2519","TERM":"xterm-kitty","TERMINFO":"/home/ivan/.local/kitty.app/lib/kitty/terminfo","USER":"ivan","USERNAME":"ivan","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/ivan/.config/Code/CachedData/fabdb6a30b49f79a7aba0f2ad9df9b399473380f","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/tmp/vscode-bug","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-c6d150be-1.96-main.sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"/usr/share/code/resources/app/out/nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"43156","WAYLAND_DISPLAY":"wayland-0","XAUTHORITY":"/run/user/1000/.mutter-Xwaylandauth.EEEDZ2","XDG_CURRENT_DESKTOP":"GNOME","XDG_DATA_DIRS":"/usr/share/gnome:/home/ivan/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"gnome","XDG_SESSION_TYPE":"wayland","XMODIFIERS":"@im=ibus","_":"/usr/bin/code","bleopt_connect_tty":"1","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/ivan/gems/bin:/home/ivan/.pyenv/shims:/home/ivan/.pyenv/bin:/home/ivan/.atuin/bin:/home/ivan/.cargo/bin:/home/ivan/.local/kitty.app/bin:/home/ivan/.local/bin:/home/ivan/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/nvim-linux64/bin:/usr/local/go/bin","PYTHONPATH":"/home/ivan/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files","TEST_RUN_PIPE":"/run/user/1000/python-test-discovery-77206af70d33b5604f8e"}
2024-12-20 10:36:39.179 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only --rootdir=.
2024-12-20 10:36:39.180 [info] cwd: .
2024-12-20 10:36:39.196 [error] /tmp/vscode-bug/.venv/bin/python: No module named pytest

2024-12-20 10:36:39.200 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /tmp/vscode-bug.
2024-12-20 10:36:39.205 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /tmp/vscode-bug. Creating and sending error discovery payload
2024-12-20 10:36:39.205 [error] pytest test discovery error for workspace:  /tmp/vscode-bug 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /tmp/vscode-bug
2024-12-20 10:36:40.449 [info] Discover tests for workspace name: vscode-bug - uri: /tmp/vscode-bug/hello.py
2024-12-20 10:36:40.450 [info] Running discovery for pytest using the new test adapter.
2024-12-20 10:36:40.480 [info] arg: --rootdir already exists in args, not adding.
2024-12-20 10:36:40.481 [info] All environment variables set for pytest discovery: {"ATUIN_HISTORY_ID":"0193e35fd11c7b0eb9ad23339d962d36","ATUIN_SESSION":"0193e339d179799b81f4b2275ad27d76","BLE_SESSION_ID":"1734684037.691526/24348","CHROME_DESKTOP":"code.desktop","COLORTERM":"truecolor","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DESKTOP_SESSION":"gnome","DISPLAY":":0","DOCKER_CONTEXT":"desktop-linux","ELECTRON_NO_ATTACH_CONSOLE":"1","GDK_BACKEND":"x11","GDMSESSION":"gnome","GDM_LANG":"en_US.UTF-8","GEM_HOME":"/home/ivan/gems","GIO_LAUNCHED_DESKTOP_FILE_PID":"24336","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_KEYRING_CONTROL":"/run/user/1000/keyring","GNOME_SETUP_DISPLAY":":1","GTK_MODULES":"gail:atk-bridge","HOME":"/home/ivan","IM_CONFIG_PHASE":"1","INVOCATION_ID":"df1fefe974dc4314a0f344f7dd953ce3","JOURNAL_STREAM":"8:28369","KITTY_INSTALLATION_DIR":"/home/ivan/.local/kitty.app/lib/kitty","KITTY_PID":"24336","KITTY_PUBLIC_KEY":"1:3;z!ui_nS>8GDaxBP~A(Uv5w>g{vgA7p&JU6YEGs","KITTY_WINDOW_ID":"1","LANG":"en_US.UTF-8","LANGUAGE":"en_US:en","LINENO":"50","LOGNAME":"ivan","LS_COLORS":"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:","MANAGERPID":"1967","MANPATH":"/home/ivan/.local/kitty.app/share/man:","OLDPWD":"/","ORIGINAL_XDG_CURRENT_DESKTOP":"GNOME","PIPX_DEFAULT_PYTHON":"/home/ivan/.pyenv/shims/python","PWD":"/tmp/vscode-bug","PYENV_ROOT":"/home/ivan/.pyenv","PYENV_SHELL":"bash","QTWEBENGINE_DICTIONARIES_PATH":"/usr/share/hunspell-bdic/","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/t490s:@/tmp/.ICE-unix/2163,unix/t490s:/tmp/.ICE-unix/2163","SHELL":"/usr/bin/bash","SHLVL":"1","SSH_AGENT_LAUNCHER":"openssh","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","STARSHIP_SESSION_KEY":"2331521580115992","STARSHIP_SHELL":"bash","SYSTEMD_EXEC_PID":"2519","TERM":"xterm-kitty","TERMINFO":"/home/ivan/.local/kitty.app/lib/kitty/terminfo","USER":"ivan","USERNAME":"ivan","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/ivan/.config/Code/CachedData/fabdb6a30b49f79a7aba0f2ad9df9b399473380f","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/tmp/vscode-bug","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-c6d150be-1.96-main.sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en-us\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"/usr/share/code/resources/app/out/nls.messages.json\",\"locale\":\"en-us\",\"availableLanguages\":{}}","VSCODE_PID":"43156","WAYLAND_DISPLAY":"wayland-0","XAUTHORITY":"/run/user/1000/.mutter-Xwaylandauth.EEEDZ2","XDG_CURRENT_DESKTOP":"GNOME","XDG_DATA_DIRS":"/usr/share/gnome:/home/ivan/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"gnome","XDG_SESSION_TYPE":"wayland","XMODIFIERS":"@im=ibus","_":"/usr/bin/code","bleopt_connect_tty":"1","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/ivan/gems/bin:/home/ivan/.pyenv/shims:/home/ivan/.pyenv/bin:/home/ivan/.atuin/bin:/home/ivan/.cargo/bin:/home/ivan/.local/kitty.app/bin:/home/ivan/.local/bin:/home/ivan/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/nvim-linux64/bin:/usr/local/go/bin","PYTHONPATH":"/home/ivan/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files","TEST_RUN_PIPE":"/run/user/1000/python-test-discovery-7860b73e6cb5d0b0b416"}
2024-12-20 10:36:40.498 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only --rootdir=.
2024-12-20 10:36:40.498 [info] cwd: .
2024-12-20 10:36:40.520 [error] /tmp/vscode-bug/.venv/bin/python: No module named pytest

2024-12-20 10:36:40.524 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /tmp/vscode-bug.
2024-12-20 10:36:40.525 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /tmp/vscode-bug. Creating and sending error discovery payload
2024-12-20 10:36:40.525 [error] pytest test discovery error for workspace:  /tmp/vscode-bug 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /tmp/vscode-bug
2024-12-20 10:36:41.579 [info] Discover tests for workspace name: vscode-bug - uri: /tmp/vscode-bug/hello.py
2024-12-20 10:36:41.580 [info] Running discovery for pytest using the new test adapter.
2024-12-20 10:36:42.774 [info] Discover tests for workspace name: vscode-bug - uri: /tmp/vscode-bug/hello.py
2024-12-20 10:36:42.774 [info] Running discovery for pytest using the new test adapter.
2024-12-20 10:36:42.776 [error] Test discovery already in progress, not starting a new one.
2024-12-20 10:36:45.339 [info] Discover tests for workspace name: vscode-bug - uri: /tmp/vscode-bug/hello.py
2024-12-20 10:36:45.340 [info] Running discovery for pytest using the new test adapter.
2024-12-20 10:36:45.341 [error] Test discovery already in progress, not starting a new one.
2024-12-20 10:36:46.598 [info] Discover tests for workspace name: vscode-bug - uri: /tmp/vscode-bug/hello.py
2024-12-20 10:36:46.599 [info] Running discovery for pytest using the new test adapter.
2024-12-20 10:36:46.601 [error] Test discovery already in progress, not starting a new one.

Extension version: 2024.22.0
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Linux x64 6.1.0-28-amd64
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.1
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings

Multiroot scenario, following user settings may not apply:

languageServer: "Pylance"

testing
• pytestEnabled: true

experiments
• optInto: ["pythonTestAdapter"]

Installed Extensions
Extension Name Extension Id Version
JavaScript Debugger ms-vscode.js-debug 1.96.0
JavaScript Debugger Companion Extension ms-vscode.js-debug-companion 1.1.3
Pylance ms-python.vscode-pylance 2024.12.1
Python ms-python.python 2024.22.0
Python Debugger ms-python.debugpy 2024.14.0
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.10
System Info
Item Value
CPUs Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 4005)
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 2, 1
Memory (System) 15.31GB (3.64GB free)
Process Argv .
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 20, 2024
@karthiknadig
Copy link
Member

Please try pre-release version, it has a fix for this.

Duplicate of #24633

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants