# error using `git mergetool --tool=meld`

2 messages from 2017-05-16 to 2017-05-16. Participants: Matthew Groth, Samuel Lijin.
Thread: https://gitlist.dev/t/45982

## Matthew Groth, 2017-05-16 18:26

Subject: error using `git mergetool --tool=meld`
Message-ID: <83801c20-96e6-7f9c-1e0e-2d46e32dc5f6@gmail.com>
URL: https://gitlist.dev/e/83801c20-96e6-7f9c-1e0e-2d46e32dc5f6%40gmail.com

```
When using `git mergetool --tool=kdiff3`, it works fine. But with `git 
mergetool --tool=meld` I get this for every merge conflict:

ˋˋˋ
Normal merge conflict for 'builders/pdfBuilder.py':
   {local}: created file
   {remote}: created file
Traceback (most recent call last):
   File "/usr/local/bin/meld", line 20, in <module>
     filename = arg.split('=')[1]
IndexError: list index out of range
builders/pdfBuilder.py seems unchanged.
ˋˋˋ

And the contents of /usr/local/bin/meld are:

arglist = []
for arg in sys.argv[1:]:
     if arg.startswith('--output'):
         filename = arg.split('=')[1] ##### <<--------- line 20
         newArg = '--output=' + fix_abspath(filename)
     elif arg.startswith('-'):
         newArg = arg
     else:
         newArg = fix_abspath(arg)
     arglist.append(newArg)

I'm on OSX: 10.12.4

git --version
git version 2.12.2

This is my first post to the mailing list, sorry if the bug report is 
missing anything.


```

## Samuel Lijin, 2017-05-16 18:49

Subject: Re: error using `git mergetool --tool=meld`
Message-ID: <CAJZjrdVg=Fqp0nd0h7r1MY3FK_WE1RENbZPs+AY2Th7ZrDBJjA@mail.gmail.com>
URL: https://gitlist.dev/e/CAJZjrdVg%3DFqp0nd0h7r1MY3FK_WE1RENbZPs%2BAY2Th7ZrDBJjA%40mail.gmail.com
In-Reply-To: <83801c20-96e6-7f9c-1e0e-2d46e32dc5f6@gmail.com>

```
Can you try `git config mergetool.meld.hasOutput true` and see if that
fixes the issue?

```
