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

All Git Operations Fail #24633

Open
kossyrev-bg opened this issue Dec 17, 2024 · 3 comments
Open

All Git Operations Fail #24633

kossyrev-bg opened this issue Dec 17, 2024 · 3 comments
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@kossyrev-bg
Copy link

kossyrev-bg commented Dec 17, 2024

Type: Bug

Behaviour

After a bit of coding, when I try to sync in source control, I get the horizontal scrolling blue bar and all git-related things seem to fail. Pushes and pulls hang. Gitlens won't display anything in the view. Copilot fails to suggest anything and explicit calls via Ctrl+I just timeout.

The only way out is to restart VSCode or restart extensions host. Either way, this only fixes the issue for a few minutes at most.

Steps to reproduce:

  1. In a git repo, open any python file. I had a test file opened, called test_abc.py, FWIW
  2. Add a print('hi') statement
  3. Delete it
  4. Add it again
  5. Do this a few times until you notice that the "Changes" under "Source Control" continues to show your file even when it has no changes
  6. Attempt to sync via "Synchronize changes" button
  7. Notice the horizontal blue bar infinitely scrolling

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-17 16:20:32.450 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-12-17 16:20:32.450 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-12-17 16:20:32.450 [info] Experiment 'pythonTestAdapter' is active
2024-12-17 16:20:32.450 [warning] Dir "/home/berkshiregrey.com/michael.kossyrev/devel/src/.pixi/envs" is not watchable (directory does not exist)
2024-12-17 16:20:32.456 [info] > pyenv which python
2024-12-17 16:20:32.456 [info] cwd: .
2024-12-17 16:20:32.776 [info] > /bin/python3.10 -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-17 16:20:32.794 [info] Python interpreter path: /bin/python3.10
2024-12-17 16:20:32.851 [info] > conda info --json
2024-12-17 16:20:43.570 [info] Starting Pylance language server.
2024-12-17 16:21:02.617 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-12-17 16:21:02.617 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-12-17 16:21:02.617 [info] Experiment 'pythonTestAdapter' is active
2024-12-17 16:21:02.617 [warning] Dir "/home/berkshiregrey.com/michael.kossyrev/devel/src/.pixi/envs" is not watchable (directory does not exist)
2024-12-17 16:21:02.871 [info] > pyenv which python
2024-12-17 16:21:02.871 [info] cwd: .
2024-12-17 16:21:02.894 [info] > conda info --json
2024-12-17 16:21:03.025 [info] > /bin/python3.10 -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-17 16:21:03.115 [info] Python interpreter path: /bin/python3.10
2024-12-17 16:21:04.281 [info] Starting Pylance language server.
2024-12-17 16:21:25.311 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-12-17 16:21:25.311 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-12-17 16:21:25.311 [info] Experiment 'pythonTestAdapter' is active
2024-12-17 16:21:25.311 [warning] Dir "/home/berkshiregrey.com/michael.kossyrev/devel/src/.pixi/envs" is not watchable (directory does not exist)
2024-12-17 16:21:25.352 [info] > pyenv which python
2024-12-17 16:21:25.352 [info] cwd: .
2024-12-17 16:21:25.378 [info] > conda info --json
2024-12-17 16:21:25.497 [info] > /bin/python3.10 -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-17 16:21:25.591 [info] Python interpreter path: /bin/python3.10
2024-12-17 16:21:26.861 [info] Starting Pylance language server.
2024-12-17 16:21:38.213 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-12-17 16:21:38.213 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-12-17 16:21:38.213 [info] Experiment 'pythonTestAdapter' is active
2024-12-17 16:21:38.213 [warning] Dir "/home/berkshiregrey.com/michael.kossyrev/devel/src/.pixi/envs" is not watchable (directory does not exist)
2024-12-17 16:21:38.514 [info] > pyenv which python
2024-12-17 16:21:38.514 [info] cwd: .
2024-12-17 16:21:38.535 [info] > /bin/python3.10 -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-17 16:21:38.644 [info] Python interpreter path: /bin/python3.10
2024-12-17 16:21:40.221 [info] Starting Pylance language server.
2024-12-17 16:21:57.638 [info] Discover tests for workspace name: src - uri: /home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/putwall_supervisor/tests/state_machine/test_features/test_aged_orders.py
2024-12-17 16:21:57.638 [info] Running discovery for pytest using the new test adapter.
2024-12-17 16:21:57.648 [info] All environment variables set for pytest discovery: {"CHROME_DESKTOP":"code.desktop","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1553201454/bus","DESKTOP_SESSION":"ubuntu","DISPLAY":":1","GDK_BACKEND":"x11","GDMSESSION":"ubuntu","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code.desktop","GIO_LAUNCHED_DESKTOP_FILE_PID":"155355","GJS_DEBUG_OUTPUT":"stderr","GJS_DEBUG_TOPICS":"JS ERROR;JS LOG","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_SHELL_SESSION_MODE":"ubuntu","GPG_AGENT_INFO":"/run/user/1553201454/gnupg/S.gpg-agent:0:1","GTK_IM_MODULE":"ibus","GTK_MODULES":"gail:atk-bridge","HOME":"/home/berkshiregrey.com/michael.kossyrev","IM_CONFIG_PHASE":"1","INVOCATION_ID":"4ec5dbe0f7fa45ccab664f4db704527c","JOURNAL_STREAM":"8:24750","KRB5CCNAME":"FILE:/tmp/krb5cc_1553201454_sMldpf","KUBECONFIG":"/home/berkshiregrey.com/michael.kossyrev/.kube/config:/home/berkshiregrey.com/michael.kossyrev/.kube/config-auto","LANG":"en_US.UTF-8","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LOGNAME":"michael.kossyrev","MANAGERPID":"3151","MY_WORKSPACE":"/home/berkshiregrey.com/michael.kossyrev/devel","ORIGINAL_XDG_CURRENT_DESKTOP":"ubuntu:GNOME","PWD":"/home/berkshiregrey.com/michael.kossyrev","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/LT8RW4SV3:@/tmp/.ICE-unix/3651,unix/LT8RW4SV3:/tmp/.ICE-unix/3651","SHELL":"/bin/bash","SHLVL":"0","SSH_AGENT_LAUNCHER":"gnome-keyring","SSH_AUTH_SOCK":"/run/user/1553201454/keyring/ssh","SYSTEMD_EXEC_PID":"3704","USER":"michael.kossyrev","USERNAME":"michael.kossyrev","VAULT_ADDR":"https://vault.aws.bgrey.io","VAULT_CACERT":"/home/berkshiregrey.com/michael.kossyrev/.bg-auth/vault-ca.pem","VSCODE_CODE_CACHE_PATH":"/home/berkshiregrey.com/michael.kossyrev/.config/Code/CachedData/138f619c86f1199955d53b4166bef66ef252935c","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/berkshiregrey.com/michael.kossyrev","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1553201454/vscode-7cfdd366-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":"155355","WINDOWPATH":"2","XAUTHORITY":"/run/user/1553201454/gdm/Xauthority","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_CURRENT_DESKTOP":"Unity","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1553201454","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"ubuntu","XDG_SESSION_TYPE":"x11","XMODIFIERS":"@im=ibus","_":"/usr/share/code/code","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/berkshiregrey.com/michael.kossyrev/.local/bin:/home/berkshiregrey.com/michael.kossyrev/.bg-auth/plugins:/home/berkshiregrey.com/michael.kossyrev/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/berkshiregrey.com/michael.kossyrev/devel/bin","PYTHONPATH":"/home/berkshiregrey.com/michael.kossyrev/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files","TEST_RUN_PIPE":"/run/user/1553201454/python-test-discovery-de89e26d647aa7368a21"}
2024-12-17 16:21:57.663 [info] > /bin/python3.10 -m pytest -p vscode_pytest --collect-only bg_putwall --rootdir=.
2024-12-17 16:21:57.663 [info] cwd: .
2024-12-17 16:21:57.777 [error] ImportError while loading conftest '/home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/conftest.py'.

2024-12-17 16:21:57.783 [error] bg_putwall/conftest.py:7: in <module>
    from putwall_test.base_fixtures import *
E   ModuleNotFoundError: No module named 'putwall_test.base_fixtures'

2024-12-17 16:21:57.798 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/berkshiregrey.com/michael.kossyrev/devel/src.
2024-12-17 16:21:57.799 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/berkshiregrey.com/michael.kossyrev/devel/src. Creating and sending error discovery payload
2024-12-17 16:21:57.799 [error] pytest test discovery error for workspace:  /home/berkshiregrey.com/michael.kossyrev/devel/src 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 4, Signal: null for workspace /home/berkshiregrey.com/michael.kossyrev/devel/src
2024-12-17 16:22:06.334 [info] Discover tests for workspace name: src - uri: /home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/putwall_supervisor/tests/state_machine/test_features/test_aged_orders.py
2024-12-17 16:22:06.334 [info] Running discovery for pytest using the new test adapter.
2024-12-17 16:22:06.345 [info] arg: --rootdir already exists in args, not adding.
2024-12-17 16:22:06.345 [info] All environment variables set for pytest discovery: {"CHROME_DESKTOP":"code.desktop","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1553201454/bus","DESKTOP_SESSION":"ubuntu","DISPLAY":":1","GDK_BACKEND":"x11","GDMSESSION":"ubuntu","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code.desktop","GIO_LAUNCHED_DESKTOP_FILE_PID":"155355","GJS_DEBUG_OUTPUT":"stderr","GJS_DEBUG_TOPICS":"JS ERROR;JS LOG","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_SHELL_SESSION_MODE":"ubuntu","GPG_AGENT_INFO":"/run/user/1553201454/gnupg/S.gpg-agent:0:1","GTK_IM_MODULE":"ibus","GTK_MODULES":"gail:atk-bridge","HOME":"/home/berkshiregrey.com/michael.kossyrev","IM_CONFIG_PHASE":"1","INVOCATION_ID":"4ec5dbe0f7fa45ccab664f4db704527c","JOURNAL_STREAM":"8:24750","KRB5CCNAME":"FILE:/tmp/krb5cc_1553201454_sMldpf","KUBECONFIG":"/home/berkshiregrey.com/michael.kossyrev/.kube/config:/home/berkshiregrey.com/michael.kossyrev/.kube/config-auto","LANG":"en_US.UTF-8","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LOGNAME":"michael.kossyrev","MANAGERPID":"3151","MY_WORKSPACE":"/home/berkshiregrey.com/michael.kossyrev/devel","ORIGINAL_XDG_CURRENT_DESKTOP":"ubuntu:GNOME","PWD":"/home/berkshiregrey.com/michael.kossyrev","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/LT8RW4SV3:@/tmp/.ICE-unix/3651,unix/LT8RW4SV3:/tmp/.ICE-unix/3651","SHELL":"/bin/bash","SHLVL":"0","SSH_AGENT_LAUNCHER":"gnome-keyring","SSH_AUTH_SOCK":"/run/user/1553201454/keyring/ssh","SYSTEMD_EXEC_PID":"3704","USER":"michael.kossyrev","USERNAME":"michael.kossyrev","VAULT_ADDR":"https://vault.aws.bgrey.io","VAULT_CACERT":"/home/berkshiregrey.com/michael.kossyrev/.bg-auth/vault-ca.pem","VSCODE_CODE_CACHE_PATH":"/home/berkshiregrey.com/michael.kossyrev/.config/Code/CachedData/138f619c86f1199955d53b4166bef66ef252935c","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/berkshiregrey.com/michael.kossyrev","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1553201454/vscode-7cfdd366-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":"155355","WINDOWPATH":"2","XAUTHORITY":"/run/user/1553201454/gdm/Xauthority","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_CURRENT_DESKTOP":"Unity","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1553201454","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"ubuntu","XDG_SESSION_TYPE":"x11","XMODIFIERS":"@im=ibus","_":"/usr/share/code/code","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/berkshiregrey.com/michael.kossyrev/.local/bin:/home/berkshiregrey.com/michael.kossyrev/.bg-auth/plugins:/home/berkshiregrey.com/michael.kossyrev/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/berkshiregrey.com/michael.kossyrev/devel/bin","PYTHONPATH":"/home/berkshiregrey.com/michael.kossyrev/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files","TEST_RUN_PIPE":"/run/user/1553201454/python-test-discovery-39218be1aa28832be114"}
2024-12-17 16:22:06.357 [info] > /bin/python3.10 -m pytest -p vscode_pytest --collect-only bg_putwall --rootdir=.
2024-12-17 16:22:06.357 [info] cwd: .
2024-12-17 16:22:06.480 [error] ImportError while loading conftest '/home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/conftest.py'.

2024-12-17 16:22:06.486 [error] bg_putwall/conftest.py:7: in <module>
    from putwall_test.base_fixtures import *
E   ModuleNotFoundError: No module named 'putwall_test.base_fixtures'

2024-12-17 16:22:06.504 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/berkshiregrey.com/michael.kossyrev/devel/src.
2024-12-17 16:22:06.504 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/berkshiregrey.com/michael.kossyrev/devel/src. Creating and sending error discovery payload
2024-12-17 16:22:06.504 [error] pytest test discovery error for workspace:  /home/berkshiregrey.com/michael.kossyrev/devel/src 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 4, Signal: null for workspace /home/berkshiregrey.com/michael.kossyrev/devel/src
2024-12-17 16:22:30.463 [info] Discover tests for workspace name: src - uri: /home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/putwall_supervisor/tests/state_machine/test_features/test_aged_orders.py
2024-12-17 16:22:30.463 [info] Running discovery for pytest using the new test adapter.
2024-12-17 16:22:30.470 [info] arg: --rootdir already exists in args, not adding.
2024-12-17 16:22:30.470 [info] All environment variables set for pytest discovery: {"CHROME_DESKTOP":"code.desktop","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1553201454/bus","DESKTOP_SESSION":"ubuntu","DISPLAY":":1","GDK_BACKEND":"x11","GDMSESSION":"ubuntu","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code.desktop","GIO_LAUNCHED_DESKTOP_FILE_PID":"155355","GJS_DEBUG_OUTPUT":"stderr","GJS_DEBUG_TOPICS":"JS ERROR;JS LOG","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_SHELL_SESSION_MODE":"ubuntu","GPG_AGENT_INFO":"/run/user/1553201454/gnupg/S.gpg-agent:0:1","GTK_IM_MODULE":"ibus","GTK_MODULES":"gail:atk-bridge","HOME":"/home/berkshiregrey.com/michael.kossyrev","IM_CONFIG_PHASE":"1","INVOCATION_ID":"4ec5dbe0f7fa45ccab664f4db704527c","JOURNAL_STREAM":"8:24750","KRB5CCNAME":"FILE:/tmp/krb5cc_1553201454_sMldpf","KUBECONFIG":"/home/berkshiregrey.com/michael.kossyrev/.kube/config:/home/berkshiregrey.com/michael.kossyrev/.kube/config-auto","LANG":"en_US.UTF-8","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LOGNAME":"michael.kossyrev","MANAGERPID":"3151","MY_WORKSPACE":"/home/berkshiregrey.com/michael.kossyrev/devel","ORIGINAL_XDG_CURRENT_DESKTOP":"ubuntu:GNOME","PWD":"/home/berkshiregrey.com/michael.kossyrev","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/LT8RW4SV3:@/tmp/.ICE-unix/3651,unix/LT8RW4SV3:/tmp/.ICE-unix/3651","SHELL":"/bin/bash","SHLVL":"0","SSH_AGENT_LAUNCHER":"gnome-keyring","SSH_AUTH_SOCK":"/run/user/1553201454/keyring/ssh","SYSTEMD_EXEC_PID":"3704","USER":"michael.kossyrev","USERNAME":"michael.kossyrev","VAULT_ADDR":"https://vault.aws.bgrey.io","VAULT_CACERT":"/home/berkshiregrey.com/michael.kossyrev/.bg-auth/vault-ca.pem","VSCODE_CODE_CACHE_PATH":"/home/berkshiregrey.com/michael.kossyrev/.config/Code/CachedData/138f619c86f1199955d53b4166bef66ef252935c","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/berkshiregrey.com/michael.kossyrev","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1553201454/vscode-7cfdd366-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":"155355","WINDOWPATH":"2","XAUTHORITY":"/run/user/1553201454/gdm/Xauthority","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_CURRENT_DESKTOP":"Unity","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1553201454","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"ubuntu","XDG_SESSION_TYPE":"x11","XMODIFIERS":"@im=ibus","_":"/usr/share/code/code","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/berkshiregrey.com/michael.kossyrev/.local/bin:/home/berkshiregrey.com/michael.kossyrev/.bg-auth/plugins:/home/berkshiregrey.com/michael.kossyrev/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/berkshiregrey.com/michael.kossyrev/devel/bin","PYTHONPATH":"/home/berkshiregrey.com/michael.kossyrev/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files","TEST_RUN_PIPE":"/run/user/1553201454/python-test-discovery-66e74b7263915c31147b"}
2024-12-17 16:22:30.479 [info] > /bin/python3.10 -m pytest -p vscode_pytest --collect-only bg_putwall --rootdir=.
2024-12-17 16:22:30.479 [info] cwd: .
2024-12-17 16:22:30.589 [error] ImportError while loading conftest '/home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/conftest.py'.

2024-12-17 16:22:30.594 [error] bg_putwall/conftest.py:7: in <module>
    from putwall_test.base_fixtures import *
E   ModuleNotFoundError: No module named 'putwall_test.base_fixtures'

2024-12-17 16:22:30.609 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/berkshiregrey.com/michael.kossyrev/devel/src.
2024-12-17 16:22:30.610 [error] Subprocess exited unsuccessfully with exit code 4 and signal null on workspace /home/berkshiregrey.com/michael.kossyrev/devel/src. Creating and sending error discovery payload
2024-12-17 16:22:30.610 [error] pytest test discovery error for workspace:  /home/berkshiregrey.com/michael.kossyrev/devel/src 
  
 The python test process was terminated before it could exit on its own, the process errored with: Code: 4, Signal: null for workspace

... THIS REPEATS UNTIL THE END ...

Extension version: 2024.22.0
VS Code version: Code 1.96.0 (138f619c86f1199955d53b4166bef66ef252935c, 2024-12-11T02:29:09.626Z)
OS version: Linux x64 6.2.0-26-generic
Modes:

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


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions
Extension Name Extension Id Version
autoDocstring - Python Docstring Generator njpwerner.autodocstring 0.6.1
Behavior Tree jan-dolejsi.btree 1.6.0
C/C++ ms-vscode.cpptools 1.22.11
CodeLLDB vadimcn.vscode-lldb 1.11.1
Dev Containers ms-vscode-remote.remote-containers 0.394.0
Docker ms-azuretools.vscode-docker 1.29.3
Draw.io Integration hediet.vscode-drawio 1.6.6
ES7+ React/Redux/React-Native snippets dsznajder.es7-react-js-snippets 4.4.3
ESLint dbaeumer.vscode-eslint 3.0.10
Even Better TOML tamasfe.even-better-toml 0.19.2
GitHub Copilot GitHub.copilot 1.252.1268
GitHub Copilot Chat GitHub.copilot-chat 0.24.2024121201
GitLens — Git supercharged eamodio.gitlens 16.0.5
Go golang.go 0.44.0
HTML Preview analytic-signal.preview-html 1.0.0
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
Live Preview ms-vscode.live-server 0.4.15
Markdown PDF yzane.markdown-pdf 1.5.0
Markdown Preview Enhanced shd101wyy.markdown-preview-enhanced 0.8.15
multi-command ryuta46.multi-command 1.6.0
OpenAPI (Swagger) Editor 42Crunch.vscode-openapi 4.30.1
PlantUML jebbs.plantuml 2.18.1
Postman Postman.postman-for-vscode 1.5.1
Pylance ms-python.vscode-pylance 2024.12.1
Python ms-python.python 2024.22.0
Python Debugger ms-python.debugpy 2024.14.0
Python Indent KevinRose.vsc-python-indent 1.18.0
python-snippets cstrap.python-snippets 0.1.2
React Native Tools msjsdiag.vscode-react-native 1.13.0
Remote - SSH ms-vscode-remote.remote-ssh 0.116.1
Remote - SSH: Editing Configuration Files ms-vscode-remote.remote-ssh-edit 0.87.0
Remote - Tunnels ms-vscode.remote-server 1.5.2
Remote Explorer ms-vscode.remote-explorer 0.4.3
Run on Save emeraldwalk.RunOnSave 0.2.7
rust-analyzer rust-lang.rust-analyzer 0.3.2220
Table Visualizer for JavaScript Profiles ms-vscode.vscode-js-profile-table 1.0.10
TabOut albert.TabOut 0.2.2
Tilt Tchoupinax.tilt 1.0.9
Tiltfile tilt-dev.tiltfile 0.0.4
vscode-pdf tomoki1207.pdf 1.2.2
vscode-proto3 zxh404.vscode-proto3 0.5.5
Workspace Sidebar sketchbuch.vsc-workspace-sidebar 2.1.0
YAML redhat.vscode-yaml 1.15.0
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-13800H (20 x 4850)
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, 1, 1
Memory (System) 30.92GB (19.69GB free)
Process Argv --crash-reporter-id 0eb7379d-e023-4eeb-8e06-90494905dacd
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
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
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Dec 17, 2024
@kossyrev-bg
Copy link
Author

Maybe it has something to do with:

2024-12-17 16:21:57.638 [info] Running discovery for pytest using the new test adapter.
2024-12-17 16:21:57.648 [info] All environment variables set for pytest discovery: {"CHROME_DESKTOP":"code.desktop","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1553201454/bus","DESKTOP_SESSION":"ubuntu","DISPLAY":":1","GDK_BACKEND":"x11","GDMSESSION":"ubuntu","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/code.desktop","GIO_LAUNCHED_DESKTOP_FILE_PID":"155355","GJS_DEBUG_OUTPUT":"stderr","GJS_DEBUG_TOPICS":"JS ERROR;JS LOG","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_SHELL_SESSION_MODE":"ubuntu","GPG_AGENT_INFO":"/run/user/1553201454/gnupg/S.gpg-agent:0:1","GTK_IM_MODULE":"ibus","GTK_MODULES":"gail:atk-bridge","HOME":"/home/berkshiregrey.com/michael.kossyrev","IM_CONFIG_PHASE":"1","INVOCATION_ID":"4ec5dbe0f7fa45ccab664f4db704527c","JOURNAL_STREAM":"8:24750","KRB5CCNAME":"FILE:/tmp/krb5cc_1553201454_sMldpf","KUBECONFIG":"/home/berkshiregrey.com/michael.kossyrev/.kube/config:/home/berkshiregrey.com/michael.kossyrev/.kube/config-auto","LANG":"en_US.UTF-8","LESSCLOSE":"/usr/bin/lesspipe %s %s","LESSOPEN":"| /usr/bin/lesspipe %s","LOGNAME":"michael.kossyrev","MANAGERPID":"3151","MY_WORKSPACE":"/home/berkshiregrey.com/michael.kossyrev/devel","ORIGINAL_XDG_CURRENT_DESKTOP":"ubuntu:GNOME","PWD":"/home/berkshiregrey.com/michael.kossyrev","QT_ACCESSIBILITY":"1","QT_IM_MODULE":"ibus","SESSION_MANAGER":"local/LT8RW4SV3:@/tmp/.ICE-unix/3651,unix/LT8RW4SV3:/tmp/.ICE-unix/3651","SHELL":"/bin/bash","SHLVL":"0","SSH_AGENT_LAUNCHER":"gnome-keyring","SSH_AUTH_SOCK":"/run/user/1553201454/keyring/ssh","SYSTEMD_EXEC_PID":"3704","USER":"michael.kossyrev","USERNAME":"michael.kossyrev","VAULT_ADDR":"https://vault.aws.bgrey.io","VAULT_CACERT":"/home/berkshiregrey.com/michael.kossyrev/.bg-auth/vault-ca.pem","VSCODE_CODE_CACHE_PATH":"/home/berkshiregrey.com/michael.kossyrev/.config/Code/CachedData/138f619c86f1199955d53b4166bef66ef252935c","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/berkshiregrey.com/michael.kossyrev","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1553201454/vscode-7cfdd366-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":"155355","WINDOWPATH":"2","XAUTHORITY":"/run/user/1553201454/gdm/Xauthority","XDG_CONFIG_DIRS":"/etc/xdg/xdg-ubuntu:/etc/xdg","XDG_CURRENT_DESKTOP":"Unity","XDG_DATA_DIRS":"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1553201454","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"ubuntu","XDG_SESSION_TYPE":"x11","XMODIFIERS":"@im=ibus","_":"/usr/share/code/code","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/berkshiregrey.com/michael.kossyrev/.local/bin:/home/berkshiregrey.com/michael.kossyrev/.bg-auth/plugins:/home/berkshiregrey.com/michael.kossyrev/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/berkshiregrey.com/michael.kossyrev/devel/bin","PYTHONPATH":"/home/berkshiregrey.com/michael.kossyrev/.vscode/extensions/ms-python.python-2024.22.0-linux-x64/python_files","TEST_RUN_PIPE":"/run/user/1553201454/python-test-discovery-de89e26d647aa7368a21"}
2024-12-17 16:21:57.663 [info] > /bin/python3.10 -m pytest -p vscode_pytest --collect-only bg_putwall --rootdir=.
2024-12-17 16:21:57.663 [info] cwd: .
2024-12-17 16:21:57.777 [error] ImportError while loading conftest '/home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/conftest.py'.

2024-12-17 16:21:57.783 [error] bg_putwall/conftest.py:7: in <module>
    from putwall_test.base_fixtures import *
E   ModuleNotFoundError: No module named 'putwall_test.base_fixtures'

though that's purely a guess.

@kossyrev-bg
Copy link
Author

Update: I think I was able to resolve this by going into user settings, searching pytest and disabling all the settings I found related to that. Afterwards my logs showed:

2024-12-17 16:57:12.428 [info] Discover tests for workspace name: src - uri: /home/berkshiregrey.com/michael.kossyrev/devel/src/bg_putwall/putwall_supervisor/tests/state_machine/test_features/test_aged_orders.py

every time I saved the file, and nothing else. And git continued to work as expected.

So I guess the problem is "fixed" for me, though there appears to be a core issue with that pytest adapter that isn't working.

As a note: we run all of our tests inside a docker container that has a few more paths/builds/etc such that modules like putwall_test can be found. But I run vscode and edit code in baremetal, using a LOT of python.analysis.extraPaths for completions. So maybe that adapter isn't set up for such a usecase; ie I'm not surprised that bare VSCode wasn't able to find the module. Not sure why that led to things like git hanging though.

@einarwar
Copy link

Chiming in here: I experienced the same issue. I tried switching to the pre-release version of ms-python.python, and after that i have not experienced the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants