[SOLVED] Editor 'View Changes' and 'View Diff' not showing code difference

Hello, I’ve been having an issue with the native version control system, first noted last night. Code differences are not showing up when in ‘View Changes’ and ‘View Diff’ modes, only a blank tab where the code difference would normally be. I tried clearing caches and restarting the browser and system multiple times, but the problem persists. Any ideas what could be causing it?

Editor-based changes, such as deleted or created scenes and objects, show as normal. It appears to be a problem exclusively with code changes.

Hi yes this was recorded as an issue yesterday and we rolled out a patch which should have fixed this. Please let me know if it is still an issue and I will investigate for you :slight_smile:

1 Like

Hi KPal, as of right now it is unfortunately still happening for me. Is there any way I can check if the patch has been applied on my end?

The patch for applied on the server.
Could you please try in a different browser, just to avoid some possible browser related issues (with plugins for example).

@KPal

I originally tested on Chrome, but I just finished testing on Edge and Firefox and consistently got the bug in all of them

1 Like

Can you please open the dev console to see if there’re some errors there.
We’ll investigate this and sort it out tomorrow.

In Chrome … 3 dots menu on right top → More Tools → Dev Tools, and then Console tab.

1 Like

No problem, thank you for investigating.
I inspected and yes, there are some errors. I am attaching the screenshots. Please let me know if there is anything else I can provide


1 Like

We have just rolled out a new update to the Editor which includes a fix for this. Please let me know if its resolved for you :slight_smile:

Hi KPal, thank you but unfortunately it is still happening, with the same console errors. I tested in two different browsers and also got a team member to test it, and he was having the same bug as well

Hmm okay could you give me which steps you took to repro? Or if possible add me to your project username: kpal

The steps I took were:

  1. Made any changes to a script while in a specific branch
  2. Opened Version Control, clicked ‘View changes’ or used ‘view diff’ between two checkpoints where that script’s code differ (will have the same result)

The entry for the differences in said script will be blank and upon inspection there will be errors (just like in the screenshots).

I am not sure I can add you to the project as I am not the owner. @Jurgen_Clausen1 may be able to help

I have just tested and verified and the change are in fact displayed. Maybe there is some caching on your end? Make sure Disable cache is enabled in the dev tools a hard reload:

  1. Hold down Ctrl and click the Reload button.
  2. Or Hold down Ctrl and press F5.

I followed your instructions, cleared all caches, restarted browsers, even restarted the system, still getting the issue. I will ask other teammates to try as well once they have a moment

Could you please add ‘kpal’ user to your project to investigate?

@Jurgen_Clausen1 Can you please see about this?

@luisacmazzi @KPal I’m facing the same issue. I’ve encountered this problem on 2 different accounts and devices, so it seems like an editor/version control bug. I’ve added kpal to my project (PlayCanvas 3D HTML5 Game Engine) hoping it’ll help with investigating. Feel free to make changes.

2 Likes

@mvaligursky @KPal I’ve did some debugging and it seems that resolved flag is breaking requests.
I’ve tried both url?resolved=true and url?resolved=false, but none of them works for me. It works with url without resolved flag.
I was modifying url property here:


Hope it’ll help you.

1 Like

Hi @michal00 yes this is what I found also but the resolved query parameter shouldn’t make a different if it is set to false or not set at all I have confirmed this with our REST API

Could you find out what your file name is? It might be a url encoding issue

Sure, file name is Game.js (ID 197672317). The full url that editor requests is
https://playcanvas.com/api/merge/5dc15288-e6df-4acd-be20-7baf1cc7d00f/conflicts/f2b9e376-d839-4910-b814-6123187e092d/file/Game.js?resolved=false.
Please let me know if you need anything else.

1 Like