yousseb / meld

Meld for macOS
https://yousseb.github.io/meld/
GNU General Public License v2.0
2.29k stars 120 forks source link

Meld 3.21.0 cannot see git. #119

Open timboxyz opened 3 years ago

timboxyz commented 3 years ago

Trying to use the version control option, select a git directory but Meld shows

Git (git not installed) in the version control selector however:-

tim$ which git /usr/local/bin/git

and

tim$ /usr/local/bin/git --version git version 2.27.0

timboxyz commented 3 years ago

Hmmm. It seems to only work if the Xcode command line tools version is installed (and working) in/usr/bin even though /usr/local/bin takes precedence:-

tim$ echo $PATH /Users/tim/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

MacOS upgrades seem to break Xcode command line tools installation.

dsbecker commented 3 years ago

I’ve see that before as well where macOS upgrades break Xcode CLI. Reinstalling them always fixes it.

On Thu, Feb 11, 2021 at 9:21 AM timboxyz notifications@github.com wrote:

Hmmm. It seems to only work if the Xcode command line tools version is installed (and working) in /usr/bin even though /usr/local/bin takes precedence:-

tim$ echo $PATH /Users/tim/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

MacOS upgrades seem to break Xcode command line tools installation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yousseb/meld/issues/119#issuecomment-777656220, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLN7MR47A5ETJGK62POR73S6QGZVANCNFSM4XPF5RWQ .

--

-- This message was sent from my mobile phone. Please excuse any typos or auto-corrections I might have missed.

timboxyz commented 3 years ago

I’ve see that before as well where macOS upgrades break Xcode CLI. Reinstalling them always fixes it.

Certainly, however, the Xcode tools code is several versions behind (currently 2.24.3) so if it Meld fails on a broken /usr/bin/git install it is not honouring the $PATH variable and even fixing the Xcode CLI won't get Meld to use the later version in /usr/local/bin