microsoft / vscode

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

Format on save not working #223084

Closed pranavJha18 closed 1 month ago

pranavJha18 commented 1 month ago

Type: Bug

i was coding in c/cpp and set format on save but it is not working i am using clangd and clang format none of those foramtted on save

VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:08:12.169Z) OS version: Linux x64 6.9.10-arch1-1 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i3-1215U (8 x 3535)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|1, 1, 0| |Memory (System)|7.45GB (5.30GB free)| |Process Argv|. --crash-reporter-id ca933e07-2fc3-417e-948f-40352ef5e703| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|plasma| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|KDE| |XDG_SESSION_TYPE|wayland|
Extensions (11) Extension|Author (truncated)|Version ---|---|--- catppuccin-vsc|Cat|3.15.0 code-runner|for|0.12.2 vscode-clangd|llv|0.1.29 debugpy|ms-|2024.8.0 python|ms-|2024.10.0 vscode-pylance|ms-|2024.7.1 rust-analyzer|rus|0.3.2045 glassit|s-n|0.2.6 vscode-icons|vsc|12.8.0 vim|vsc|1.27.3 clang-format|xav|1.9.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31094925 ccpltc:31098111 pythonrstrctxt:31093869 ```
jrieken commented 1 month ago

It looks like the issue is caused by one of your installed extensions. All extensions execute together on a single nodejs process, so in order to narrow down the possible problematic extension, please try the following:

initial step final
image image image
vs-code-engineering[bot] commented 1 month ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!