The diff for this file is empty

William Lemieux February 19, 2024

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

2 answers

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2024

Hello @William Lemieux ,

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 !

Patrik S

 

William Lemieux February 20, 2024

I confirm that the git diff command returns me all the diffs as bitbucket is supposed to. 

Thank you for your help @Patrik S 

git diff.png

remi_ferland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2024

@Patrik S I confirm I can see the changes locally using the provided command. I can also see the diff when clicking on "View raw commit"

William Lemieux February 20, 2024

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

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2024

Hello @William Lemieux  ,

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 , 

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 

Takuya Iwatsuka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2024

@Patrik S 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.

Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 21, 2024

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

William Lemieux February 21, 2024

I confirm, its fixed

Like Patrik S likes this
Takuya Iwatsuka
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2024

@Patrik S I have just confirmed the fix. Thank you.

Like Patrik S likes this
0 votes
remi_ferland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2024

Same problem on our end. Works in some repo and not in others.

Tried:

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events