Pull Requests showing empty diffs

Stefan Kleist
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!
March 2, 2020

Lately Pull-Request-View is showing files as "empty diff" on the left while correctly reporting the number of added / removed lines in the files tree.

Same problem in "old" Pull Request view.

 

Is this a known Bitbucket Bug? Is there a workaround to get the correct diff?

bug.png

11 answers

6 votes
Ionut
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!
March 29, 2023

I've started to have this problem too since today.

In my case I couldn't see the diff in any pull request, even older pull requests that were already merged.

In my case I saw that I can't see the diff as long as I have the "TikTok Pixel Helper" browser extension is enabled.

I'm not sure why it stopped working today, because I've installed that extension a few months ago.

As long as I keep that extension disabled I can se the diff.

So check your browser extensions, maybe there are other that can break displaying the diff.

 

Edited:

As @natashabates suggests below another solution is to set "This can read and change site data" to "When you click the extension" for the "TikTok Pixel Helper" extension.

Tammy Keefer
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!
March 30, 2023

Same.  Disabling the TikTok Pixel Helper extension solved my problem.  So thank you!  If that extension isn't your problem, I was also able to see the diffs if I was in an incognito window.

nick.mcphedran
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!
March 30, 2023

Amazing thanks @Ionut - I would never have worked that out.  But I was having the exact same issue - everything worked fine yesterday but today I was just getting:

Empty diff

The diff for this file is empty.

 

Disabled the Chrome TikTok Pixel Helper, and now works fine again!  So odd, but thank you! 

Sajid Iqbal
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!
April 3, 2023

Pretty unusual but this helped. thanks @Ionut

natashabates
Contributor
April 4, 2023

Thank you for finding the solution! I changed the plugin to only read & change site data when clicked and it's resolved my issue.

Like Ionut likes this
Ionut
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!
April 4, 2023

That's also a good solution @natashabates  .

I'll update my answer to suggest that too.

Thanks.

Like natashabates likes this
Aakarsh Yadav
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!
April 5, 2023

Thanks, lot. 

 

Disable Tiktok pixel extension worked for me also. yeeahhhh 👍👍

Kiran Kumar
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!
April 10, 2023

Thank you... Even for me disabling the Tiktok pixel extension worked fine... smile

João André Simiquelli
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!
May 9, 2023

Thank you so much!

4 votes
Simon Travancas
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 9, 2021

For anyone who has this problem in the future and ends up here, one possible cause (and what happened in my case), is that the PR has whitespace-only diff in the file, and my "PR Viewing Preferences" were set to not show whitespace changes. Changing it to show whitespace changes fixed the problem

djordje.milojevic
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, 2023

This doesn't seem to be the fix, the file i have issue with is .gitkeep which is empty by default, and no matter what it always stays there with the empty diff. 

4 votes
Anthony Duhaime
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!
June 22, 2020

I am also facing the same issue.

 

Ctrl + shft + r didn't solve the issue for me.

zswanson June 24, 2020

Ditto - this is happening repeatedly. We can sometimes decline the PR and try again but now we're seeing it over and over on the same changes.

0 votes
ankitagrawal01
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!
September 18, 2024

// Checkout the PR branch

git checkout <pr branch>

 

// Checkout the affected file from base branch

git checkout origin/master -- <file path>

 

git commit -m "Removed empty file diff"

git push

0 votes
Maleesha Gunasekara
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!
October 2, 2023

once you have this issue try to commit from the source control in the Visual Studio code then you will have to add a new or same commit message and do the push from the source control, it works for me

0 votes
Robbe
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!
July 24, 2020

As of today, we also have this problem. Hard reloading or another browser (Firefox, Safari, Chrome) doesn't fix it. Very frustrating.

Nurudeen Akindele
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!
November 25, 2020

How did you eventually fix this then

zswanson November 25, 2020

Deleting the bad PR and re-creating it works for me when this happens.

Like pradipta likes this
0 votes
zswanson June 24, 2020

The other half of this problem is that bitbucket won't allow me to merge the PR. The commits are there, and shows the diff on the commit, but the PR interface is broken.

0 votes
John Moore
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!
June 7, 2020

I am also getting this same error "Empty Diff".  


Any ideas to root cause / fix?

Screen Shot 2020-06-07 at 1.51.48 PM.png

0 votes
Juanma
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!
May 8, 2020

It was failing me with Chrome, too. But with Firefox I was going fine.

I also checked that when I went to see a commit from the PR, the display worked correctly again when I came back.

0 votes
Kennedy Odife
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!
May 7, 2020

Suddenly facing this right now. Don't even know why it happens. My colleagues could view the PR correctly but I can not

Bhanu Prakash Vejju
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!
May 7, 2020

I too faced the same issue , hard reloading(cmd+shift+R) the page worked for me.

Like # people like this
pradipta
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!
May 8, 2020

Worked for me too @Bhanu Prakash Vejju 

Kennedy Odife
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!
May 8, 2020

Wow. Thanks @Bhanu Prakash Vejju 
Worked for me. Ctrl + shift + R on Linux

0 votes
pbazeliuk
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!
March 3, 2020

We faced the same issue.
Is there any decision?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events