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

File diff does not load for some images #2258

Open
saket opened this issue Dec 7, 2024 · 11 comments
Open

File diff does not load for some images #2258

saket opened this issue Dec 7, 2024 · 11 comments

Comments

@saket
Copy link

saket commented Dec 7, 2024

For some images, Fork seems to be unable to display a diff when they're updated. Here's one example: saket/telephoto@a19a646#diff-f9ca815bc1be6c794660be9f815c75fdb6696bd18c0b1993ba856d9bb801bae9

Before staging After staging
Screenshot 2024-12-07 at 5 00 31 PM Screenshot 2024-12-07 at 5 00 35 PM
@DanPristupov
Copy link
Contributor

Here's one example

What should I do to reproduce the problem on this example?

@saket
Copy link
Author

saket commented Dec 8, 2024

Sorry I should have mentioned that, can you try viewing that commit by checking out the project in fork?

@DanPristupov
Copy link
Contributor

Yes. Every commit looks correctly:

Screenshot 2024-12-08 at 21 34 41

@saket
Copy link
Author

saket commented Dec 8, 2024

What happens if you make some changes to that image without staging it? Does the diff show up in the preview pane?

@DanPristupov
Copy link
Contributor

Yes,
Screenshot 2024-12-09 at 9 13 52

Does the log file has any errors. The log is located at ~/Library/Logs/Fork.log

@saket
Copy link
Author

saket commented Dec 9, 2024

Here you go: Fork.log. And here's the image that you can add to my project to reproduce the bug. Its path will be:

zoomable-image/core/src/androidTest/screenshots/image_without_an_intrinsic_size_zoomed_in.png

@DanPristupov
Copy link
Contributor

Yes, I see the changes.
Screenshot 2024-12-09 at 18 20 08

It looks like LFS is not properly initialized in this repo. Try to run Repository -> LFS -> Initialize (if available) and Repository -> LFS -> Pull.

@saket
Copy link
Author

saket commented Dec 9, 2024

Huh, so weird.

If LFS were the issue, shouldn't I be seeing this error in all images then? I'm only seeing this error for 2-3 images. The error disappears when I stage the file (shown in the screenshot in the first post).

@DanPristupov
Copy link
Contributor

It could be that some of the files on your machine are not under LFS.

If comment out content of .gitattributes (which effectively disables LFS for new files), I see same result as you:

Screenshot 2024-12-09 at 18 58 22

@saket
Copy link
Author

saket commented Dec 9, 2024

Gotcha. Do you think Fork could display an error message for surfacing this information?

@DanPristupov
Copy link
Contributor

Yes, may be it's possible.

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

2 participants