-
Notifications
You must be signed in to change notification settings - Fork 66
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
dyff stutters when diffing some multiline documents #264
Comments
Thanks for letting me know. I do not know where this happens, but I have a feeling. Support for comments was definitely done in a later iteration when I changed the YAML libraries. So this sounds very much like a gap in the implementation there. |
By the way, regarding screenshots, I hope this does not sound like cheap advertisement, but these kind of screenshot were actually the reason why I started to write https://github.com/homeport/termshot. You can give it a try, if you want. |
I saw that utility, but I think maybe not until after I filed this. Looks nice. |
👋 any updates on getting to the bottom of this? thanks! 🎉 |
Interesting. Thanks for the files to reproduce it. I will have a look. |
Dealt with this issue by splitting Using
|
I have files with these contents:
and
If I dyff them, I get
which I'm pretty sure is not right.
The issue is very sensitive to the contents of the string. I haven't been able to get it to reproduce with fewer than three lines in both
object
andis_longenough123
, or changing the keys very much. The keys inobject
can't be shortened (or at least not much; I haven't tried all possible combinations) either, which is weird. Other than the length, it doesn't seem like the key names matter.For instance, if I drop the
ccccccc_ccccccc_ccccccc
key, I get what I'd expect:(Screenshots are necessary, since the colors are what actually indicate what
dyff
thinks is being added or removed, and the problem goes away with--color=no
. The blue bits are just iTerm2 being helpful.)The text was updated successfully, but these errors were encountered: