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

Please update for Beyond Compare 5. #779

Open
michaelakin opened this issue Jan 9, 2025 · 5 comments
Open

Please update for Beyond Compare 5. #779

michaelakin opened this issue Jan 9, 2025 · 5 comments

Comments

@michaelakin
Copy link

Please update to add Beyond Compare 5 and also fix the parameters to be able to effectively compare json files in BC and change the method of comparing to sort the it in beyond compare.

https://forum.scootersoftware.com/forum/beyond-compare-discussion/general-aa/91626-windows-explorer-shell-extension-not-working-in-3rd-party-apps?p=94034#post94034

@sabrogden
Copy link
Owner

Added beyond compare 5 path to the file paths Ditto checks.

https://github.com/sabrogden/Ditto/releases/tag/nightly

FYI you can specify your own path in options - general - advanced - "Diff application path"

What parameters are you looking to be passed to compare json files

@michaelakin
Copy link
Author

michaelakin commented Jan 17, 2025

What parameters are you looking to be passed to compare json files

Thanks for the tip about the diff application path.

I haven't been able to figure out why when I used Beyond Compares Clipboard and compare, I can sort a json file, and when I used Ditto, I cannot.

Here is what I captured for the command line args when launching beyond compare.

Ditto:

Image

Beyond Compare "Clipboard Compare"

Image

I see a few differences, but I don't know why theirs works and Ditto does not.

  • BC is going to a different temporary location
  • BC has a title
  • BC doesn't have quotes around the paths
  • BC has a .tmp filename extension.

Here is the actual sorting command they do that fails:

C:\WINDOWS\system32\cmd.exe /c ""C:\Users\User\AppData\Roaming\Scooter Software\Beyond Compare 5\Helpers\JSON\JSON_sorted.bat" "C:\Users\User\Downloads\DittoPortable_64bit_3_24_323_0\Ditto\ClipCompare\ditto_compare_2.txt" "C:\Users\User\AppData\Local\Temp\BC555A5.tmp""

@sabrogden
Copy link
Owner

I found the utility that JSON_sorted calls only supports utf8 files, Ditto was passing in unicode files. Updated Ditto to save utf8 files when diffing, the latest is working for me, https://github.com/sabrogden/Ditto/releases/tag/nightly

It opens and then you can select the format JSON sorted.

@michaelakin
Copy link
Author

That sounds awesome. Thanks!

@SanderBouwhuis
Copy link

SanderBouwhuis commented Jan 30, 2025

Nice, nice, nice.
The nightly works with Beyond Compare 5 now (I needed to change the default diff application path for it to work, see the sagbrogden's instructions above).

PS
I immediately made a small donation to this project.

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

3 participants