Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Compare removes random tags #105

Open
ghost opened this issue Jan 31, 2020 · 6 comments
Open

XML Compare removes random tags #105

ghost opened this issue Jan 31, 2020 · 6 comments

Comments

@ghost
Copy link

ghost commented Jan 31, 2020

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

@pnedev
Copy link
Contributor

pnedev commented Jan 31, 2020

@psi5asp ,
Can you share the tested files so I can test them on my own?

@ghost
Copy link
Author

ghost commented Jul 23, 2020

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:

@pnedev
Copy link
Contributor

pnedev commented Jul 23, 2020

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.

@ghost
Copy link
Author

ghost commented Jul 24, 2020

-> 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.

@ghost
Copy link
Author

ghost commented Jul 24, 2020

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.

@pnedev
Copy link
Contributor

pnedev commented Jul 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant