Page 1 of 1

Issue when comparing directories

Posted: Wed Dec 22, 2021 3:50 am
by kisskool
Hi Folks

I'm evaluating examdiff for a customer and I have an issue while comparing directories :

I want to compare each file in folder 1 with its "cousin" in folder 2.
i'm using the command line to run the comparison because it will run in a CI/CD factory

the folders/files are attached to the message.
the command line is : ExamDiff C:\Users\demo\Desktop\PDF C:\Users\demo\Desktop\PDF2 /g:C:\Users\demo\Desktop\PDF\Options.txt /n /f /html /o:c:\output.html

there is a message warning me that the HTML output will take time but the process never stops.
in c:\output\ there is a temporary hml file instead of having 1 output per file.

can you help ?

Re: Issue when comparing directories

Posted: Wed Dec 22, 2021 10:07 am
by psguru
I can't reproduce this issue. Running your command:
report1.png
report1.png (7.39 KiB) Viewed 4672 times
The result:
report2.png
report2.png (64.24 KiB) Viewed 4643 times

Re: Issue when comparing directories

Posted: Wed Dec 22, 2021 3:34 pm
by psguru
BTW, what happens when you run the same same comparison from the UI and then save the results as recursive HTML report?

Re: Issue when comparing directories

Posted: Thu Dec 23, 2021 12:35 am
by kisskool
Hello !

thanks for your reply.
In fact, with the GUI it works, the changes are displayed file per file, but I wanted to do the same using the command line.
also, using the GUI to generate HTML report shows only the file changes not the details.

when the command line runs, it never stop. so the HTML reports are not created.

maybe I have to run file to file compare for each document in my folders :(

Re: Issue when comparing directories

Posted: Thu Dec 23, 2021 12:41 am
by kisskool
new comment :

my goal is to be able to generate a folder that contains all the HTML reports (one per diff) so in this case 2 HTML reports.

Re: Issue when comparing directories

Posted: Thu Dec 23, 2021 5:50 am
by JeremyNicoll
What was "psguru"'s second screenshot meant to show - it's the same as the first one.

Is there a way to get debug info generated as the command runs, and/or find out how long each part of the process takes?

Re: Issue when comparing directories

Posted: Thu Dec 23, 2021 8:53 am
by psguru
also, using the GUI to generate HTML report shows only the file changes not the details.
In the Save HTML Report file selection dialog, set "Include file diff" to Yes.
What was "psguru"'s second screenshot meant to show - it's the same as the first one.
It looks different for me.
Is there a way to get debug info generated as the command runs, and/or find out how long each part of the process takes?
You can use the logging to file mechanism to get an idea of what's happening. Also, Process Explorer can be used to figure out what command line is currently hanging.

Re: Issue when comparing directories

Posted: Thu Dec 23, 2021 11:17 am
by JeremyNicoll
psguru wrote: Thu Dec 23, 2021 8:53 am
What was "psguru"'s second screenshot meant to show - it's the same as the first one.
It looks different for me: https://www.prestoforums.com/download/file.php?id=314
No, that's your third screenshot. You posted the first screenshot twice, as far as I can see, but with two different introductory texts:

"I can't reproduce this issue. Running your command:" and "The result:"

then after that the picture of the html in a browser.

I only asked in case there was meant to be something, other than a duplicate of the first one, which we never saw.

Re: Issue when comparing directories

Posted: Thu Dec 23, 2021 11:28 am
by psguru
I see now, weird quirks of phpbb. I think I fixed this...