gumtree icon indicating copy to clipboard operation
gumtree copied to clipboard

Problem with Git integration on windows

Open csiefer2 opened this issue 3 years ago • 8 comments

Gumtree using git difftool integration described here, only lists one file at a time through the list page, http://127.0.0.1:4567/list .

Is there some way to get it to list all the files which have been modified in the repo changes?

csiefer2 avatar Sep 10 '21 16:09 csiefer2

Hi Chris!

Normally listing all file changes is the behavior of the list view. Do you use the -d option ? Make a screenshot perhaps.

Cheers.

jrfaller avatar Sep 12 '21 10:09 jrfaller

I forgot the -d option, but when I add it, I get a temp directory errors when I add it.

If I'm using the Windows command prompt or cygwin , I get something like this:

java.nio.file.FileSystemException:  C:\cygwin64\tmp\git-difftool.fROKIR\r: The file cannot be accessed by the system

Windows tells me that the file is there, but it is zero bytes in size. Notepad cannot open it.

csiefer2 avatar Sep 13 '21 14:09 csiefer2

Mmm this one looks like a Windows bug, i'll try to gain access to a windows machine to reproduce, but maybe the way I deal with temporary files is broken on Windows (which is odd because I use the standard library for this)

jrfaller avatar Sep 14 '21 15:09 jrfaller

Could you check if the path is correct and the file is readable?

jrfaller avatar Sep 14 '21 15:09 jrfaller

The file does exist, but it isn't a file, rather a Windows Junction point (which is evidently kind of like a symbolic link). Unfortunately, the link doesn't point to anywhere, which is what I think the problem is.

csiefer2 avatar Sep 15 '21 02:09 csiefer2

Could you look if it exists when GumTree is executing?

jrfaller avatar Sep 15 '21 12:09 jrfaller

Any good idea how to check that? The file doesn't exist before GumTree starts, and by the time I can find out where the temporary file is generated, GumTree has already crashed.

csiefer2 avatar Sep 17 '21 16:09 csiefer2

mmm good point ;)

jrfaller avatar Sep 18 '21 13:09 jrfaller