Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Git Provider and Visual Studio 2012 failed to start the configured compare tool

I'm working with most recent Visual Studio 2012 Update 2 and I have installed official Microsoft's Git support. But when I try to diff modified file studio screams:

Failed to start the configured compare tool.

But it seems there is no configuration for compare tool in Git provider! What should I do to solve the issue?

Maybe I'm missing something?

I've asked the same question in Q&A section in Visual Studio Tools for Git support forum, but no answer for now.

like image 463
shytikov Avatar asked Mar 06 '13 09:03

shytikov


3 Answers

Restarting Visual Studio (2019) solved it.

like image 142
Hakan Fıstık Avatar answered Oct 23 '22 22:10

Hakan Fıstık


If anyone lands on this question for the same issue (like I did), VS 2015 has ability to configure under Git Settings.

enter image description here

like image 29
WiSeeker Avatar answered Oct 23 '22 22:10

WiSeeker


Make sure that you've set diff.tool for the git environment that visual studio uses. Normally you find this by starting Git bash from the start menu. If you use other git tools, you must set this for the global scope:

git config --global difftool.vs11.cmd "c:/program files (x86)/microsoft visual studio 11.0/common7/ide/devenv.exe" '//diff' "$LOCAL" "$REMOTE"

git config --global diff.tool vs11

like image 2
Per-Frode Pedersen Avatar answered Oct 23 '22 22:10

Per-Frode Pedersen