microsoft / vscode

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

Randomly failure to save file. #212943

Closed kujukuju closed 1 week ago

kujukuju commented 2 weeks ago

Type: Bug

Unfortunately it seems completely random. But the file remains unsaved randomly, with the white dot indicator in the file tab indicating it can't be saved. Ctrl + S doesn't work. Right click + save doesn't work. Restarting only sometimes fixes it.

VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 3693)| |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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.90GB (14.47GB free)| |Process Argv|--crash-reporter-id 92ca2ef5-0944-47a8-b32e-50f85ae2ff6a| |Screen Reader|no| |VM|0%|
Extensions (14) Extension|Author (truncated)|Version ---|---|--- vscode-glsllint|dto|1.8.1 todo-tree|Gru|0.0.226 mayukaithemevsc|Gul|3.2.4 discord-vscode|icr|5.8.0 vscode-jetbrains-keybindings|isu|0.1.9 better-cpp-syntax|jef|1.17.2 cpptools|ms-|1.20.5 cpptools-extension-pack|ms-|1.3.0 desmos-calculator-window|oct|0.0.1 the-language|one|0.0.86 material-icon-theme|PKi|5.3.0 shader|sle|1.1.5 vscode-todo-highlight|way|1.0.5 change-case|wma|1.0.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 chatpanelc:31048052 dsvsc021:30996838 bdiig495:31013172 pythoncenvpt:31049070 fchga941:31046352 88717513:31044517 pythonprt:31047983 dwnewjupyter:31046869 26j00206:31048877 ```
IllusionMH commented 2 weeks ago

/confirmPlease

Do you have any Actions on Save configured? Please follow steps from bot below to see if you can reproduce error in different setups.

VSCodeTriageBot commented 2 weeks ago

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.

Happy Coding!

kujukuju commented 2 weeks ago

/confirmPlease

Do you have any Actions on Save configured? Please follow steps from bot below to see if you can reproduce error in different setups.

No actions on save configured. Occasionally it's reliably reproducible even on restart. If that happens I will attempt the troubleshoot bot.

bpasero commented 1 week ago

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

StanleyLiangAT commented 1 week ago

Same on Mac OS, command + s is always not working

Version: 1.89.1 (Universal)
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:14:24.611Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0
bpasero commented 1 week ago

https://github.com/microsoft/vscode/issues/212943#issuecomment-2120917304

kujukuju commented 1 week ago

I haven't yet been able to repro without extensions.

When I launch without extensions, it works. But then when I launch back into my IDE with extensions, it also works.

It is at some random time later my IDE begins to not be able to save new files. I'll continue trying every now and then.

bpasero commented 1 week ago

👍

kujukuju commented 1 week ago

For my use case, I'm pretty sure I narrowed it down to this extension: https://marketplace.visualstudio.com/items?itemName=isudox.vscode-jetbrains-keybindings

I manually bisected, and I went back and forth with this extension ~5 times and successfully reproed 5 times in a row.

VSCodeTriageBot commented 1 week ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!