When I choose "Launch external merge tool" I get
Mergetool path issue
Current path:/Library/Developer/CommandLineTools
Please set the command tool path in Xcode and Try again!
I don't know what this means or how to fix
External diff tool works fine
I have Sourcetree 4.1.3
xcode-select --print-path
displays
/Library/Developer/CommandLineTools
(same path referred to in error message)
I tried
sudo rm -rf /Library/Developer/CommandLineTools
Sourcetree immediately prompted me to instal Xcode. Which I did.
Still get the error
Reverting to Sourcetree 4.1.2 (or 4.1.1) solved issue
Solved for me by ensuring Command Line Tools were set correctly in Xcode (Preferences->Locations).
For some reason this was not set.
Thank you, this did the trick for me as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, maybe the issue is coming when Xcode is not installed? I only have the command line tools installed. Downgrade to 4.1.1. worked out for me. I kinda don't want to install Xcode as I don't use it at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me on 4.1.8. Unfortunate for people who don't want to install Xcode though :-/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! It works for me.
To set up Command Line Tools in Xcode, follow these steps:
That's it! You have now set up Command Line Tools in Xcode. You can now use the command line tools in Terminal or in Xcode.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reverting to 4.1.1 fixed this for me.
Download here: https://www.sourcetreeapp.com/download-archives
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not being able to launch my KDiff3 merge tool to resolve conflicts is is a big problem for me. Downgrading to 4.1.2 as suggested above fixed it for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
created issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bradley Kent Did you install Xcode? If yes, then could you please check the Xcode tool path using this command "xcode-select --print-path". Also, Could you please share the system information?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same problem occurred for me using sourcetree version 4.1.3 (239)
for command "xcode-select --print-path"
printed "/Library/Developer/CommandLineTools"
system information "uname -a"
Darwin xxxxx.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
note: trying to use Kdiff3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a bug, here is the ticket, as pointed out in other answers: https://jira.atlassian.com/browse/SRCTREE-7737
The bug is finally fixed in 4.2.0, build date 24-Aug-2022 (see https://www.sourcetreeapp.com/download-archives).
Installing Xcode is not a viable workaround, as xcode shouldn't be a required dependency for sourcetree. I do not have xcode installed, I confirmed the issue is resolved in 4.2.0. For anybody still stumbling on this issue, upgrade to 4.2.0, should do the trick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still got the same issue on 4.2.0. Downgrading to 4.1.2 also did not help.
Only fiddling with location settings in XCode, as described here, fixed it for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue in 4.1.7.
I do not have Xcode installed.
Searching Sourcetree docs for "requirements", "xcode" gives no results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmmm... this bug has existed for ~5 months. SourceTree doesn't seem to receive bug fixes quickly. Going to explore Fork instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fork is working well for me. But since I like the "Reverse Hunk" feature of SourceTree, I thought I'd give it another shot.
I was not successful with v4.1.6. (sadness). Anyone else explore v4.1.6?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, normally I hate these "Fix my bug or I'm out of here!" posts, especially for free (if not Free) software, but I might make an exception this time. ;)
With Fork, you can collapse all merge commits and only display those you need right now. Collapse all branches using the context menu of the graph and expand the ones you’d like to keep.
Hellll-low nice. I was just complaining about not being to do this today.
(Dirty secret: On Windows, I still use SourceTree v1.7 precisely to avoid these sorts of overly common dealbreaking bugs. I've yet to regret it.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue here with 4.1.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue here with 4.1.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I reinstalled xcode tools and I'm facing the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Downgrade to 4.1.1 fixed the issue for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Has this been resolved in the latest release? Still seems to be an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
same issue on version 4.5.1 (241)
I had it working fine before but can't get my merge tool to work with my new Mac
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess this issue is the same as reported here?
https://jira.atlassian.com/browse/SRCTREE-7737
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same problem here. I reinsetalled XCode and command line tools and now having the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Downgrading to 4.1.2 fixed it for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.