FileMerge quits immediately after launching from SourceTree

前端 未结 5 1570
清酒与你
清酒与你 2021-01-31 07:57

I regularly use Atlassian SourceTree (on Mac OS X) to launch FileMerge to resolve git merge conflicts. Out of the blue it has stopped working: when I right click and select

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 08:08

    To diagnose the problem, I ran opendiff from the Terminal. I received the following error:

    xcode-select: error: tool 'opendiff' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    To solve:

    1. Open Xcode > Preferences > Locations
    2. Click on the drop-down box beside Command Line Tools and select your current Xcode version. (This was empty for me because I had recently installed Xcode on a new Mac.)

    1. Run opendiff in Terminal again, and the above error should no longer appear.

    Now FileMerge will open correctly from SourceTree when you click Launch External Merge Tool.

提交回复
热议问题