-
Notifications
You must be signed in to change notification settings - Fork 18
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
Prettyprinted diff mangled when using advanced compilation in cljs #51
Comments
I played around a bit and found that if I add the following two entries to '$cljs$core$PersistentArrayMap$$
map-handler
'$cljs$core$MapEntry$$
map-entry-handler But of course depending on |
Making the names work in code with symbol renaming might need some significant rearchitecting. Deep-diff is typically used for dev tooling, what is your use case for needing it in a production build? If someone comes up with an approach that works for clj and cljs and doesn't introduce breaking changes then a PR would be much appreciated, but I don't currently see this as a priority. |
Our use case is a integration testing tool we use internally. We use deep-diff2 to visualize the differences when the results are not as expected. I was able to make it work, but the approach feels kind of dirty: main...kthu:deep-diff2:main If you are interested I can make a PR |
Hmmm ok if that works then there's probably a better solution that's not too hard to do. I'll try to have a look but it might be a few weeks before I get to it. |
Great. Thanks! It turned out the records from We are now running my fork in our app and have not been able to break it so far. I'll comment here if we stumble upon a diff that still creates problems. |
Happy to hear you found a workaround! |
Thanks for the awesome tool! We are currently using it in an internal web-based integration testing tool. It's working great right up until trying to display a pretty printed version of diffs.
It seems the pretty printer messes up the diff when compiled with advanced optimizations.
Here is a shell session demonstrating the problem:
It seems minimized names (as seen in the
Xo
andWo
tags here) are confusing the printer. The two tags seen here are minimized versions of$lambdaisland$deep_diff2$diff_impl$Insertion$$
and$lambdaisland$deep_diff2$diff_impl$Deletion$$
The text was updated successfully, but these errors were encountered: