The diff for this file is empty
Asked by William Lemieux:

Since this morning, I've been unable to see the differences in the files when I view a pull request or a commit. It indicates to me "The diff for this file is empty."

The "Whitespace changes" parameter is checked, and I've disabled all extensions installed on Chrome.

The files indeed contain modifications.  

![diff.png](/t5/image/serverpage/image-id/307314i75ECD8C00BC7D8BF/image-size/large?v=v2&px=999 "diff.png")


Answers:
author: Patrik S
body: Hello [@William Lemieux](/t5/user/viewprofilepage/user-id/3450709) ,

thank you for reaching out to the community.

Could you please confirm if when running the diff locally using the following command you get any output for those files?

```
git diff PR_destination_branch...PR_source_branch?
```

This is the diff that is calculated in the UI when opening a pull request, so I'm interested to see if those files are listed with any change if executing the same command locally.

Thank you, [@William Lemieux](/t5/user/viewprofilepage/user-id/3450709) !

Patrik S

comments: author: William Lemieux
body: I confirm that the git diff command returns me all the diffs as bitbucket is supposed to.   

Thank you for your help [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)   

![git diff.png](https://community.atlassian.com/t5/image/serverpage/image-id/307566iE229C14ABD8781C4/image-size/large?v=v2&px=999 "git diff.png")


author: remi_ferland
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) I confirm I can see the changes locally using the provided command. I can also see the diff when clicking on "View raw commit"


author: William Lemieux
body: I noticed, in my case, that the problem seems to be present when the files names contains spaces OR files are present in a folder that contains spaces in the name


author: Patrik S
body: Hello [@William Lemieux](/t5/user/viewprofilepage/user-id/3450709) ,

Thank you for sharing additional details.

I can see you have an active bitbucket subscription in your workspace, so I will be raising an internal support ticket for this issue as we would like to take a look at the affected PR.

You should be receiving an email with the ticket link soon. In case you don't receive it, please let me know and I can share it with you here.

If you could respond to the ticket with the affected PR, this will definitely help speed up the investigation.

Hey [@remi_ferland](/t5/user/viewprofilepage/user-id/5434105) ,

I see you also have a workspace with an active subscription, so I will be raising a support ticket for you as well, so we can also investigate the issue you reported, as it may be caused by a different factor.

Thank you, folks!

Patrik S


author: Takuya Iwatsuka
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) I'm facing the same issue. In my case, I can't see the diff of the the files which contains Japanese characters in its file path.


author: Patrik S
body: Hello all,

Our development team has already deployed a fix for the issue where some files were not correctly showing the diffs of pull requests/branches.

Could you please confirm if you are able to see the diffs now?

Thank you!

Patrik S


author: William Lemieux
body: I confirm, its fixed


author: Takuya Iwatsuka
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) I have just confirmed the fix. Thank you.


author: remi_ferland
body: Same problem on our end. Works in some repo and not in others.

Tried:

* Disabling all extensions
* CTRL+Shift+R
* Incognito mode
* Edge


Tags: bitbucket-cloud

cloud