Author Topic: B6: Diff Not Detecting Changes  (Read 5368 times)

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
B6: Diff Not Detecting Changes
« on: October 09, 2018, 01:09:50 PM »
I am using SE diff as my git difftool and when I diff the file it pops up and says no changes.  I select "Yes" that I would like to view the file anyways--because I know there ARE changes.  The attached screenshot clearly shows my changes but they are not marked different (I marked the diff on the right).  I have seen this a couple times.  This file is 100% reproducible.  Other files in the "git difftool" call are diffed correctly.

I am running Ubuntu 16.04, SE B6.  My .gitconfig is:

Code: [Select]
[diff]
    tool=vsdiff

[difftool "vsdiff"]
    cmd = /home/username/slickedit-pro2018beta6/bin/vsdiff "-r1" "$LOCAL" "$REMOTE"

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: B6: Diff Not Detecting Changes
« Reply #1 on: October 09, 2018, 01:12:12 PM »
Is this being launched from multi-file diff?

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
Re: B6: Diff Not Detecting Changes
« Reply #2 on: October 09, 2018, 01:17:58 PM »
No, this is being started from "git difftool".

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: B6: Diff Not Detecting Changes
« Reply #3 on: October 09, 2018, 01:21:21 PM »
Hm, Ok, I'll set that up.  In the meantime, can you try diffing the two files from in SlickEdit and see what happens?  It works OK for me.  I'm wondering if it's because I don't have the whole files, but typed the snippets in verbatim.

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
Re: B6: Diff Not Detecting Changes
« Reply #4 on: October 09, 2018, 01:35:29 PM »
My "git difftool" has 4 files that differ, and this is the only one that was showing this problem.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: B6: Diff Not Detecting Changes
« Reply #5 on: October 09, 2018, 03:48:12 PM »
Ok, I'll set that up.  In the meantime, can you try diffing the two files from in SlickEdit and see what happens?  It works for me.

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
Re: B6: Diff Not Detecting Changes
« Reply #6 on: October 09, 2018, 04:53:05 PM »
Appears to do the same thing in the SE diff.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: B6: Diff Not Detecting Changes
« Reply #7 on: October 09, 2018, 04:54:38 PM »
Any chance you can send me the whole files?   I typed in the snippets you gave me and it detected the differences.

What are your diff options set to?

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
Re: B6: Diff Not Detecting Changes
« Reply #8 on: October 09, 2018, 05:58:31 PM »
I'd prefer not post the code (work related), but could email it if that is fine.  Also, I try the same file and it is not happening.  Yet I did see it on a different file in a different repo and the problem happened.  I have now tried both files and neither are currently showing this problem.  Seems to come and go.
« Last Edit: October 09, 2018, 06:01:45 PM by PiezonTM »

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: B6: Diff Not Detecting Changes
« Reply #9 on: October 09, 2018, 05:59:40 PM »
I will PM you an email address.

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
Re: B6: Diff Not Detecting Changes
« Reply #10 on: October 09, 2018, 06:05:30 PM »
See attachments for my settings.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: B6: Diff Not Detecting Changes
« Reply #11 on: October 09, 2018, 06:18:34 PM »
Is the top one vsdiff, and the bottom one the options in SlickEdit?

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
Re: B6: Diff Not Detecting Changes
« Reply #12 on: October 09, 2018, 06:22:20 PM »
They are both from the settings when I open from SE.  I see no options from the diff when run from the command line using "git difftool".

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: B6: Diff Not Detecting Changes
« Reply #13 on: October 09, 2018, 06:23:57 PM »
Sorry, I missed that it was for the two different tree settings.

PiezonTM

  • Senior Community Member
  • Posts: 140
  • Hero Points: 8
Re: B6: Diff Not Detecting Changes
« Reply #14 on: October 09, 2018, 09:01:17 PM »
I just had the problem happen again. I sent my files to you in email (my file and the temp git file).

As a side note, since I had the problem, I did a "git add/git commit/git push".  Afterwards I modified this file again and did another "git difftool" and the problem still exists.  So it seems that the "git temp" file may not be the problem since it creates a new temp file each time.