Cannot Save File
Type: Bug
Whenever attempting to save a file, I keep getting this notification on the bottom that doesn't go away: Saving 'filename.go': Getting code actions from "Go','Github Copilot Chat" (configure). After waiting for a while, the file still does not save. Only encountering this on my Surface Laptop with the Snapdragon X processor
Extension version: 0.17.0 VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:20.204Z) OS version: Windows_NT arm64 10.0.26100 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Snapdragon(R) X 12-core X1E80100 @ 3.40 GHz (12 x 2976) |
| 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) | 15.36GB (6.53GB free) |
| Process Argv | --crash-reporter-id 1f6d6216-4011-492f-bd92-12b6b21a6a5d |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
f3je6385:31013174
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
legacy_priority:31082724
I have the same issue on GitHub Copilot extension version: v1.213.0
VS Code Version: 1.91.1 (Universal) Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729 Date: 2024-07-09T22:07:54.982Z (2 days ago) Electron: 29.4.0 ElectronBuildId: 9728852 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin x64 23.5.0
macOS: Sosoma version 14.5
In my case I think the issue is caused by ESLint I did the following:
- I have disabled GitHub Copilot extension and I still got the issue.
- Then I disabled all my extensions from VS code and I did not got the problem anymore
- I enabled only GIthub Copilot and everything was fine, I could save the file
- I enabled ESLint extension then the issue started to creep up again. I got ESLint version 3.0.10
- I disabled again GitHub Copilot extension and I still got the issue, so it's ESLint extension the culprit (I'll raise an issue on their page)
this has been an ongoing issue :( I've been seeing this happen mostly from eslint as @eianc mentioned, but I don't have a reliable repro.
maybe @dbaeumer has a good repro or idea of what might be going on?
This is mostly an issue with eslint itself. There is an issue to help analyze this: https://github.com/microsoft/vscode-eslint/issues/1344 and how to file an issue against ESLint if none of the proposed solutions help.
A colleague of mine just started getting the same issue with a new Mac. When he used Ubuntu or Windows he did not get the issue. It's strange that on other codebases that I'm working on I don't get the issue, only on a monorepo setup with Lerna I'm getting it.
I also experience this issue regularly. Same message at the bottom (Saving '....html': Getting code actions from "GitHub Copilot Chat" (configure). It is a recurring issue that seems to be related to closing the lid of my MacBook over the weekend and returning on Monday. I assume that the Copilot Extension has an issue with the MacBook going into sleep mode for a longer period. So far, I restarted VSCode to get rid of the problem. This time, I only restarted the Copilot Extensions and this seems to resolve the issue. At least I could save the modified HTML file.
However, my understanding is that a text editor MUST NEVER loose any files, so regardless of the problem I would recommend to look into ways to implement an exception handler that ensures that the files are saved as a backup at least.
Version: 1.92.1 (Universal) Commit: eaa41d57266683296de7d118f574d0c2652e1fc4 Date: 2024-08-07T20:16:39.455Z Electron: 30.1.2 ElectronBuildId: 9870757 Chromium: 124.0.6367.243 Node.js: 20.14.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.5.0
GitHub Copilot Chat v0.18.2 GitHub Copilot v1.223.0 Angular Language Service v18.2.0 ESLint v3.0.10 HTML CSS Support v2.0.10 LiveServer v5.7.9 Traycer v0.12.1 TypeSpec v0.59.0 ...
Happens to me very often. I feel like it should not prevent saving the file In my case is the GitHub Copilot Chat extension causing it
Happens to me very often. GitHub Copilot chat might be causing it. My work around is to ctrl + shift + P then Developer: Reload Window It is warning me then what the issue is "Saving text files. Do you want to proceed anyway?" I click yes and I am all good.
Same issue here. If I have the chat window open and I save it takes minutes. It shows me: Code Actions - organizing imports. Reloading window without extensions and then reloading extensions is fixing it for me until a new chat request.
Facing this issue too; seems like this was raised before but closed https://github.com/microsoft/vscode-copilot-release/issues/1230
It definitely is something related to Copilot because disabling the extension allows saving as normal, with the same settings as before.
For me, workspace settings has:
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
User settings has:
"editor.codeActionsOnSave": {
"source.fixAll": "never",
"source.organizeImports": "never"
},
"editor.formatOnSave": false,
"github.copilot.editor.enableCodeActions": false
I'm getting this issue, which is very annoying.