microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.58k stars 29.03k forks source link

auto formatting after saving with `ctrl+s` suddenly fail #223655

Closed HelloKittyX closed 2 months ago

HelloKittyX commented 2 months ago

Type: Performance Issue

tried: reinstall all plugin about c/cpp (ain't solve)

Disabled some system startup items recently. Does this matter?

VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.19042 Modes: Remote OS version: Linux x64 5.10.0-15-amd64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) m3-7Y30 CPU @ 1.00GHz (4 x 1608)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|3.92GB (0.33GB free)| |Process Argv|--crash-reporter-id 3bd23448-6d68-48f1-8461-91cb516a0278| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: aliyun| |OS|Linux x64 5.10.0-15-amd64| |CPUs|Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz (2 x 2494)| |Memory (System)|1.78GB (1.15GB free)| |VM|100%|
Process Info ``` CPU % Mem MB PID Process 5 65 5872 code main 0 34 740 shared-process 0 15 2360 extensionHost [1] 2 169 3104 window [1] (typeconv.cc - root [SSH: aliyun] - Visual Studio Code [Administrator]) 0 3 3232 crashpad-handler 0 4 3616 fileWatcher [1] 0 13 8196 utility-network-service 5 175 9192 gpu-process 0 12 9884 ptyHost 0 7 2420 conpty-agent 0 5 6160 C:\WINDOWS\System32\cmd.exe /c (type "C:\Users\zxq\AppData\Local\Temp\vscode-linux-multi-line-command-aliyun-749545685.sh" | "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 51471 aliyun bash) & exit /b 0 0 11 3812 "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 51471 aliyun bash 4 79 10312 window [2] (Issue Reporter) Remote: SSH: aliyun CPU % Mem MB PID Process 36 0 1066958 remote agent 0 0 1067004 ptyHost 0 0 1085979 /bin/bash --init-file /root/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh 0 0 1070391 extension-host 0 0 1070403 fileWatcher 0 0 1086274 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 1086275 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= ```
Workspace Info ``` | Remote: SSH: aliyun| Folder (root): more than 20125 files| File types: pyi(8152) cc(1611) c(1452) json(1199) py(868) md(530) | dll(360) svg(331) pyc(307) js(298) | Conf files: package.json(124) makefile(13) launch.json(7) | settings.json(3) tasks.json(3) tsconfig.json(3) | dockerfile(2) devcontainer.json(2) tslint.json(1); ```
Extensions (9) Extension|Author (truncated)|Version ---|---|--- remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.1 python|ms-|2023.14.0 vscode-pylance|ms-|2024.2.3 cmake-tools|ms-|1.18.43 cpptools|ms-|1.21.3 cpptools-extension-pack|ms-|1.3.0 cmake|twx|0.0.17 (2 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 9c06g630:31013171 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 2f103344:31071589 impr_priority:31102340 refactorc:31101458 ccplti:31103428 pythonrstrctxt:31103193 hdi1a554:31097393 ```
vscodenpa commented 2 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.91.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

HelloKittyX commented 2 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.91.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

have done the update; that's not helpful. finally tried reinstall clang-format on host, and the plugin as well. now it works. thanks for the advice

HelloKittyX commented 2 months ago

solved