-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Git bash terminals have a delay after command execution #212090
Comments
does this reproduce if you disable shell integration, |
If I uncheck Shell Integration, it works well after terminal restart. |
@meganrogge I have more details in #212286 with what's going wrong. The issue was introduced by this PR #211963 where |
I had the same issue and setting |
When I just hit the enter key on a bash prompt it takes about 4 seconds for the prompt to return. I ran process monitor and noticed many many (maybe over a hundred) instances of bash.exe being spawned to run the shellIntegration-bash.sh script. |
@meganrogge Any idea where this ticket is tracked? Every reference to the issue is closed marking duplicate. |
Closing an unfixed issue that everyone have ? |
@shivapoudel I closed this accidentally, have reopened. |
Hey guys I'm having the same issue. After disabling |
@shivapoudel no exact date, but probably later this week |
Turning off shell integration only sorta helped me out. It does return a result slightly faster, but it does not return the prompt back for 4 seconds or so, but only with python poetry workspaces/folders opened. This slowness goes away if I don't have a workspace/folder open, a non-poetry python one, a javascript one, etc. There's now a '(packagename-pythonversion)' at the top of my prompt when I open a python poetry folder and that seems to be taking forever to generate after each command. Definitely wasn't happening before my last update. This seems like a separate issue? Or is it related somehow? Happy to open a separate Issue if needed. |
@fisherbe I don't know if this is the same as your issue but I've found that, if I already opened a terminal in a workspace before changing the setting, I had to kill the terminal for that workspace and open a new one so it would be initiated with the updated setting. |
Yes. With the feature disabled, issue does not happen ✔. But the feature will not work also 😥. I can live without that feature but I like it. It makes my IDE look smarter. |
@Tyriar @meganrogge Was the fix included in 1.90.1? The shell integration is still too slow even after I updated to 1.90.1. It still takes over a second for all those bash commands to run every time press the enter key at the terminal. I have to keep it off to keep my Windows git bash terminal usable. It seems like it takes around a second and a half to get a new prompt with that setting on. Is this expected? I just updated to this version: |
@awmorgan it should be fixed yes, can you run |
$ for i in {1..10}; do time __vsc_report_prompt; done real 0m0.236s real 0m0.194s real 0m0.210s real 0m0.217s real 0m0.216s real 0m0.245s real 0m0.202s real 0m0.212s real 0m0.230s real 0m0.212s |
It seems like it's taking a long time to parse the prompt. My git bash prompt is user@host MINGW64 /c/path/to/dir (master), where the my /c/path/to/dir is a 29 character path. But sometimes it's a lot longer. Does a longer path make it slower? When I cd to a 135 character path, and try to time it it just prints 633;D;0: $ time __vsc_report_prompt $ __vsc_report_prompt |
@jherico v1.91 which I think is being released today includes the changes I mentioned in #212090 (comment), disabling the prompt reporting stuff completely (for the stable build): |
I'm running 1.91.0 (insiders) and I still see a significant delay between prompts (on windows, using git-bash terminal). Turning the shell integration off speeds it up quite a bit. |
@jtsom it's only disabled in the stable build. Insiders keeps the slower code as it provided reliability improvements and the plan is to optimize it soon. |
While v1.91 does seem to improve the delay, there's still a noticeable delay for me so I'll be sticking with the option disabled. |
Type: Bug
Recording.2024-05-06.142202.mp4
VS Code version: Code - Insiders 1.90.0-insider (ccba2fc, 2024-05-06T08:07:13.626Z)
OS version: Windows_NT x64 10.0.22631
Modes:
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
Extensions (42)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: