compare-plugin
compare-plugin copied to clipboard
XML Compare removes random tags
When comparing some XML/SQL text files, this plugin removes certain tags from the compared file.
I had 2 configs files, with slight setting differences, ran this compare and it removed the SQL UNION command for some reason. I've also noticed it removed a WHERE (SQL) command from the right text file.
I've also seen it remove a XML tag <Settings ......text...> or other <> tags.
Using N++ 7.8.2 Plugin version: Compare 2.0.0
@psi5asp , Can you share the tested files so I can test them on my own?
Sorry for the delay. Unfortunately I can't send the test files, but here is a sample example (no editing was done, just running compare):
done via RDP to Windows 2012 Server (locally works fine otherwise):
Before:
After:
Hi @psi5asp ,
Unfortunately I can't send the test files ...
But you have shared the files contents (the screenshots) so why can't you send two files containing what's on the screen?
no editing was done ...
It is not relevant but both files seem edited (the tab symbols are red). Just saying ...
It looks like you have selected the SELECT
word with one TAB in front of it and then replaced it with single Space.
Are you sure you haven't done that manually?
Try saving the files (so both files tabs have blue symbols) then re-compare/re-do your test and see if the file with missing SELECT
has its tab symbol again turned to red.
Don't use shortcuts, try re-testing by accessing the plugin command via the menu with the mouse.
-> no editing was done between before and after is what I meant. So no, there was no single space entered manually between the shots.
I'll try saving them both beforehand and see if it makes a difference for troubleshooting.
These were done via the menu using the mouse, no shortcuts were used.
It appears to remove characters only when in split view. It appears that the text is scanned in some way prior to an operation (eg saving a modified file, comparing, etc.) when in split view, which causes only certain characters to be removed just before that operation is actioned (eg just before saving, it removes the character(s).
Normal Notepad++ editing works fine, saves fine, changes are retained, etc.
However, when using the Compare 2 screen mode , when adding/editing a file it removes certain characters (like ">) when saving the modified file or doing the compare.
I've replicated it on the local machine however it seems random. I checked it 5 times (eg inserting ">) and had the issue (saving or comparing removed the ">), but now when checking again it doesn't have the issue.
I'll see if I can check on another machine as well.
Sorry, I didn't understand you explanation at all. What do you mean by "split view", "saving", "comparing", etc.? I mean, what were the exact steps when the problem occurred? It seems you have updated your Notepad++, perhaps using the auto-update feature. If so, please use PluginAdmin to remove Compare plugin then install it again.