diffplex icon indicating copy to clipboard operation
diffplex copied to clipboard

DiffPlex strange result (apparent bug)

Open iagoz opened this issue 12 years ago • 3 comments

Hi, I'm currently working on application which allows user to compare between two strings which might contain a single character, xaml, xml, or another format of documents. I'm using a DiffPlex .Net algorithm for comparing and I get a strange result. Here is a DiffPlex for Silverlight project. This is a state before generating DiffPlex Model: before generate diff

After the model was built the result is: after generate diff

Can you please explain me why do I get the blank spaces over there (marked in red)? This behaviour does not reproduce with other Diff tools (e.g. BeyondCompare). Thanks,

iagoz avatar Nov 10 '14 17:11 iagoz

Is this an artifact of the silverlight differ or does it happen when you use diffplex library manually? That silverlight support was kind of hacky so I wouldn't be surprised if it had issue. But if this an issue in the diff algo itself I will need to look into that.

mmanela avatar Nov 10 '14 18:11 mmanela

Hi, This scenario happens not only with Silverlight. We have WPF project which uses DiffPlex for compare, using the latest DiffPlex NuGet package. The project updates the UI with the result of a DiffPlex and we've end up with the same result we get in Silverlight. It appears as though the problem lies in DiffPlex's algorithm itself.

iagoz avatar Nov 11 '14 09:11 iagoz

Interesting, This will need to be investigated

mmanela avatar Nov 11 '14 15:11 mmanela