0xdevalias / dotfiles

devalias does dotfiles
http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/
MIT License
8 stars 1 forks source link

[sourcetree / xcode] Merge tool (filemerge) opens then quits straight away #19

Open 0xdevalias opened 4 years ago

0xdevalias commented 4 years ago

Semi-related: https://github.com/0xdevalias/dotfiles/issues/10

Running opendiff on the commandline (SourceTree's helper tool) reveals the following:

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

I found the fix here:

Which apparently originally came from:

You can do a quick sanity check with opendiff again:

⇒  opendiff
2020-11-19 11:44:47.285 opendiff[90705:38075941] too few arguments
2020-11-19 11:44:47.290 opendiff[90705:38075941] usage: opendiff file1 file2 [-ancestor ancestorFile] [-merge mergeFile]

In this case, you're good to go!

It would be good to add this to the dotfiles so it's handled automagically on new system setup