Author Topic: vsdiff broken  (Read 9948 times)

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: vsdiff broken
« Reply #30 on: January 28, 2019, 09:17:15 PM »
I also have problems with vsdiff from SlickEdit Pro 2018 (v23.0.0.11 32-bit), please see attachment diff_broken.png.

The source files old.js and new.js are attached.

It works fine with vsdiff from SlickEdit Pro 22.0.2, please see attachment diff_working.png.

I must say that in general I am not very happy with the diff quality of vsdiff:
  • it is non-deterministic in the sense that the same diff will be displayed differently depending on where in the file it occurs
  • it has no awareness of syntax, e.g. it will happily split a function with no changes if just a tiny part of a newly added function matches the start/end of the old function
  • it has poor understanding of changes in indentation

Sorry to just be getting back to this now, but I've had to cover some other territory to get back to the sub-optimal cases.

Do you recall (I'm hoping maybe you still have these files) if this was the last different section in the file?  It looks like it judging by the scroll bar.