-
Notifications
You must be signed in to change notification settings - Fork 807
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
ExitCode always 2 with /enableexitcode with no apparent issues #2450
Comments
I have just downloaded 2.16.40 and i can confirm that the same folder and call to winmerge returns 0 (as expected) as opposed to 2 |
In my environment, I was not able to reproduce the issue where the exit code is always 2 in the latest version. Exit code 2 indicates that an error occurred while comparing folders. Such an error occurs when another application has a file in the folder open exclusively and WinMerge cannot compare the file. Or, if you run WinMerge from a command prompt or batch file, the exitcode may remain at its previous value if you refer to it without waiting for WinMerge to finish. To wait for WinMerge to finish from a command prompt or batch file, use start /wait as follows:
|
Hi, thank you for the reply.
I am already waiting for the comparison to complete with a call similar to what you proposed.
This issue doesn’t happen always, on simplifier folders it works fine.
In my case I’m comparing bigger folder that contains binaries, exe and other type of files.
Also im outputting the result to a file and at the end the comparison log says that all files are the same.
Again if I rollback to the previous version the comparison works and the error code return is 0 like I would expect.
It is really hard to understand what could be the cause since there is no error message nor error log.
At this stage I’ll rollback to the previous version which is behaving fine.
Le 25 sept. 2024 à 6:50 p.m., Takashi Sawanaka ***@***.***> a écrit :
In my environment, I was not able to reproduce the issue where the exit code is always 2 in the latest version.
Exit code 2 indicates that an error occurred while comparing folders.
Such an error occurs when another application has a file in the folder open exclusively and WinMerge cannot compare the file.
Or, if you run WinMerge from a command prompt or batch file, the exitcode may remain at its previous value if you refer to it without waiting for WinMerge to finish.
To wait for WinMerge to finish from a command prompt or batch file, use start /wait as follows:
start /wait "" "c:\Program Files\WinMerge\WinMergeU.exe" d:\dev\winmerge\src e:\dev\winmerge\src /noninteractive /enableexitcode
echo %errorlevel%
—
Reply to this email directly, view it on GitHub<#2450 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BFTMROHB6HRXULCGWFXTPVDZYM427AVCNFSM6AAAAABO3IOIEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZVGQYDONBYGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Ah, I was able to confirm that exitcode returns 2 when folder comparison takes a long time. |
I found that the exit status is 2 if the "Include unique subfolder contents" option in the Compare/Folder category of the Options window is turned off and one of the subfolders in the compared folders does not exist. What about the above settings? This issue was fixed in this commit 1646333. |
Ever since I upgraded to V2.16.42.1 i've been facing some issue with the program returning error 2 wheneever i comparer two big folders.
They seem like the program complete without any issues, and the log says that there are no differences.
I was wondering what could be wrong, is there a log that actually list what is the error ecountered?
Thank you!
The text was updated successfully, but these errors were encountered: