Author Topic: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed  (Read 15251 times)

pkusbel

  • Community Member
  • Posts: 22
  • Hero Points: 4
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #15 on: May 01, 2009, 06:21:02 PM »
Options I have are:

Ignore loading spaces before text on each line
Ignore trailing spaces after text on each line
Do not compare newline characters
Skip comments at the beginning of the file
Assume match if date and size match

pkusbel

  • Community Member
  • Posts: 22
  • Hero Points: 4
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #16 on: May 01, 2009, 06:26:42 PM »
Ok, it appears to be "skip comments at beginning of file"

If I turn that on/off, the problem comes/disappears.  Oddly enough, I have to switch files to do this (using the "swap file" option in the diff dialog)

So, turn off "skip comments", it looks like it always works

Turn on "skip comments", it sometimes works, sometimes breaks.  It's worse if "file1" is in path1, and file2 in path2, and better if I swap them

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #17 on: May 01, 2009, 06:32:23 PM »
Got it.  Thanks for hanging in there.  ++heroPoints.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #18 on: May 01, 2009, 08:44:51 PM »
This will be fixed in an upcomming 14.0.1 release.  For now, please shut off "Skip Leading Comments"

jb

  • Community Member
  • Posts: 40
  • Hero Points: 0
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #19 on: May 04, 2009, 11:05:35 PM »
OK... I picked up on something I did not notice before, you are switching which is file 1 and which is file 2, correct?

Got it.  Thanks for hanging in there.  ++heroPoints.

This will be fixed in an upcomming 14.0.1 release.  For now, please shut off "Skip Leading Comments"

The attached screenshots show that DIFFzilla 2009 behaves asymmetrical in a very simple case (files with 2 and 3 lines), even when all options are disabled. The result is correct when comparing file1 with file2, but not when comparing file2 with file1!

Is this problem already solved by the promised fix?

I also tried DIFFzilla 2007 and three other comparers (Total Commander, Araxis Merge, and WinMerge) with the same two files.
DIFFzilla 2007 behaves asymmetrical like DIFFzilla 2009. The others behave symmetrical (and correct).

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #20 on: May 05, 2009, 12:36:24 PM »
Can you send me the files?

jb

  • Community Member
  • Posts: 40
  • Hero Points: 0
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #21 on: May 05, 2009, 08:04:42 PM »
Sent.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #22 on: May 05, 2009, 08:16:42 PM »
I'll see what I can do here.  In this case however, those lines do not match.  So while the output is certainly suboptimal this is not as concerning at the original problem.  If you were to do a merge all here, it would create the proper file.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #23 on: May 06, 2009, 08:25:27 PM »
Thanks for bringing this to my attention.  I found a good tweak.  While I am confident that is a good fix, I cannot check it in for 14.0.1.  It will be in 14.0.2.

sgranado

  • Community Member
  • Posts: 27
  • Hero Points: 0
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #24 on: May 07, 2009, 01:36:42 PM »
Are there any workarounds in the meantime?  When are 14.0.1 and 14.0.2 going to be available?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #25 on: May 07, 2009, 01:57:23 PM »
Are there any workarounds in the meantime?  When are 14.0.1 and 14.0.2 going to be available?

For which issue?

For the original issue, shut off "Skip leading comments" until 14.0.1 is released.  I do not have a more exact date than "coming soon".

The second issue, which is not new (and while inconvenient, is less serious), will be in 14.0.2.  In this case, I do not have a workaround.  14.0.2 will be out "later this summer".

sgranado

  • Community Member
  • Posts: 27
  • Hero Points: 0
Re: bug: Diff in 14.0.0.7 sometimes marks the wrong lines as changed
« Reply #26 on: May 07, 2009, 02:05:12 PM »
It was getting very annoying to keep switching apps to perform diffs.  I hope the workaround for the first issue will help me avoid switching.

Thanks!