vscode: Error when resolving conflicts.The editor for merging conflict file is crashing.

Type: Bug

When resolving conflicts after clicking “Resolve in merge editor”

It shows the below text: “The editor could not be opened due to an unexpected error. Please consult the log for more details.”

VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z) OS version: Linux x64 6.8.0-52-generic Modes:

System Info
Item Value
CPUs AMD Ryzen 3 5300U with Radeon Graphics (8 x 3894)
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 1
Memory (System) 19.36GB (7.08GB free)
Process Argv –crash-reporter-id c808e319-86df-462a-9189-3d5bd0aeb120
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Extensions (30)
Extension Author (truncated) Version
tailwind-docs aus 2.1.0
vscode-tailwindcss bra 0.14.6
simple-react-snippets bur 1.2.8
es7-react-js-snippets dsz 4.4.3
gitlens eam 16.3.0
prettier-vscode esb 11.0.0
code-runner for 0.12.2
copilot Git 1.272.0
copilot-chat Git 0.24.1
go gol 0.44.0
terraform has 2.34.3
shortcut-menu-bar jer 3.0.4
vscode-docker ms- 1.29.4
playwright ms- 1.1.13
debugpy ms- 2025.0.1
python ms- 2025.0.0
vscode-pylance ms- 2025.2.1
remote-containers ms- 0.397.0
cmake-tools ms- 1.19.52
cpptools ms- 1.23.6
cpptools-extension-pack ms- 1.3.0
angular-console nrw 18.40.0
vscode-thunder-client ran 2.34.1
LiveServer rit 5.7.9
bash-debug rog 0.3.9
cody-ai sou 1.70.0
code-spell-checker str 4.0.34
cmake twx 0.0.17
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31238123
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
copilothoveroff:31240707

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 43
  • Comments: 35 (5 by maintainers)

Commits related to this issue

Most upvoted comments

This appears to happen only for some of the files in my project.

I had that problem too, to fix it, install the VS Code 1.96.4.

Still happens in the newest version. Had to downgrade to 1.96.4 to have a working editor.

Can you share reproduction steps in an empty profile? Thanks!

I can confirm that with an empty profile you will be able to reproduce the problem by following these steps :

  1. Clone my 2 repos (https://github.com/dburnier/TPIntro1 and https://github.com/dburnier/TPIntro2) in an empty folder
  2. From the TPintro1 subfolder apply these commands: a) git remote add another_remote https://github.com/dburnier/TPIntro2.git b) git merge --allow-unrelated-histories another_remote/main
  3. Then from vscode (1.97.2 with an empty profile) open the TPIntro1 folder, then open the main.c file needing to be resolved. If you click on ‘Resolve in Merge Editor’ button you will see the error “The editor could not be opened due to an unexpected error. Please consult the log for more details.” and you can check yourself the logs.
  4. The same problem if you are opening the main.c from the Source control then ‘Resolve in Merge Editor’
Image Image Image Image Image Image

I confirm the same problem with all versions 1.97.x, while with 1.96.x, the function “Resolve in Merge Editor” is available and opens the editor as expected.

And the problem is on any OS : Tested on MacOS 15.3.1 Apple or Intel silicon, Windows 11, Fedora 41

Version 1.99.x and still the same issue.

Version: 1.99.3
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0

still waiting to get release. 😕

I had that problem too, to fix it, install the VS Code 1.96.4.

It worked. Thanks.

While I will say “same”, you can get a different merge editor working.

If you switch to the Explorer view, and open a file that needs merging, you will get

  1. The standard git nomenclature of “<<<<<<< HEAD”, “=======”, and “>>>>>>> (merge source)”
  2. You will also get options to merge, with the same “Accept Incoming” and etc. that you get in the (broken) merge editor.

You just have to deal with it as a single file stream, rather than having the parallel view that the VSCode MergEditor gives you.

I had that problem too, to fix it, install the VS Code 1.96.4.

also had same issue. and this fix works for me.

Same here. Happening when trying to resolve conflicts on a remote repository. Only occurring with some files.

Version: 1.97.2 (user setup) V8: 12.8.374.38-electron.0 OS: Windows_NT x64 10.0.26100

Downgrading VSCode to version 1.96.4 solved the issue