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

Python extension causing all git operations to fail #236411

Closed
kossyrev-bg opened this issue Dec 17, 2024 · 5 comments
Closed

Python extension causing all git operations to fail #236411

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

Comments

@kossyrev-bg
Copy link

kossyrev-bg commented Dec 17, 2024

Type: Bug

In the last 2 days, I have this issue where after editing code for a bit, if I attempt to sync my changes, I get the little horizontal blue bar scrolling forever and things seem to stop updating.

For example, once this "hanging" starts, even if I undo all the changes in the file, it still shows up under "changes" in the source control. Github copilot also stops giving any suggestions and times out when I use the Ctrl+I interface. And gitlens refuses to load any info on my repo, also just hanging indefinitely.

Restarting VSCode or restarting extension host fixes the problem temporarily. Then it'll work for a bit (a few minutes) before the hanging issue begins again.

Note that I can continue using Git just fine in the VSCode terminal while this goes on. It doesn't seem to happen when I turn off all extensions, but I didn't test extensively with this.

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

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-13800H (20 x 674)
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) 2, 1, 1
Memory (System) 30.92GB (20.16GB 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
Extensions (47)
Extension Author (truncated) Version
vscode-openapi 42C 4.30.1
TabOut alb 0.2.2
preview-html ana 1.0.0
python-snippets cst 0.1.2
vscode-eslint dba 3.0.10
es7-react-js-snippets dsz 4.4.3
gitlens eam 16.0.5
RunOnSave eme 0.2.7
copilot Git 1.252.0
copilot-chat Git 0.23.1
go gol 0.44.0
vscode-drawio hed 1.6.6
btree jan 1.6.0
plantuml jeb 2.18.1
vsc-python-indent Kev 1.18.0
vscode-docker ms- 1.29.3
debugpy ms- 2024.14.0
isort ms- 2023.10.1
python ms- 2024.22.0
vscode-pylance ms- 2024.12.1
jupyter ms- 2024.11.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-containers ms- 0.394.0
remote-ssh ms- 0.116.1
remote-ssh-edit ms- 0.87.0
cpptools ms- 1.22.11
live-server ms- 0.4.15
remote-explorer ms- 0.4.3
remote-server ms- 1.5.2
vscode-react-native msj 1.13.0
autodocstring njp 0.6.1
postman-for-vscode Pos 1.5.1
vscode-yaml red 1.15.0
rust-analyzer rus 0.3.2220
multi-command ryu 1.6.0
markdown-preview-enhanced shd 0.8.15
vsc-workspace-sidebar ske 2.1.0
even-better-toml tam 0.19.2
tilt Tch 1.0.9
tiltfile til 0.0.4
pdf tom 1.2.2
vscode-lldb vad 1.11.1
markdown-pdf yza 1.5.0
vscode-proto3 zxh 0.5.5
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

@einarwar
Copy link

I have a similar issue, started a couple of days ago. Everything works fine, when suddenly without seemingly any trigger, a blue loading bar is shown in the source-control button on the sidebar, and a blue "waiting" icon is shown, see image.
Image

Restarting VSCode solves the problem temporarily, but the problem comes back after some minutes

@kossyrev-bg
Copy link
Author

UPDATE: I was able to make the issue go away by disabling the "Python" plug in VSCode, but obviously that's not ideal since it disables all the python goodies. Not sure if I should post this issue elsewhere.

@kossyrev-bg kossyrev-bg changed the title Git Sync Randomly Hangs after a bit Python extension causing all git operations to fail Dec 17, 2024
@einarwar
Copy link

Thanks for the info @kossyrev-bg. Nice that you isolated it to that extension.

I guess a more appropriate place to make an issue would be the repo for the vscode-python extension: https://github.com/Microsoft/vscode-python

@kossyrev-bg
Copy link
Author

Will do @einarwar , thanks

@kossyrev-bg
Copy link
Author

Opened a ticket microsoft/vscode-python#24633

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants