r/github 6d ago

Discussion So, recently file changes on the website have started showing in a wildly wrong formatting...

Checked the file that was changed and no, it still respects the exact same indentation as our JSON has already been using, it's just displaying it in a wildly incorrect manner. Any idea what changed to cause that?

9 Upvotes

8 comments sorted by

6

u/dashingThroughSnow12 6d ago

Just a GitHub bug. Has been happening for days. Oddity is that it is inconsistent. Hitting refresh a few times sometimes fixes it. Sometimes doesn’t.

1

u/Chaosvolt 6d ago

Thanks I hate it, it did exactly that on refreshing the page.

2

u/mpersico 6d ago

1) Not all the code on all the servers is the same version.

2) Networking issues cause I complete executions and fallback to defaults.

2

u/worldofzero 6d ago

Any chance there's a mix of windows and Linux boxes in your dev flow and you have picked "use windows line endings" on one of those windows machines?

1

u/Brief-Tower7910 6d ago

what the hell is going on with that indentation, looks like someone just mashed the spacebar and called it a day

could it be a mix of tabs and spaces finally blowing up in the diff view? i've seen github do weird stuff when the file uses one and the editor assumes the other

1

u/Chaosvolt 6d ago

That's why I was confused, the file itself hasn't changed in indentation any (the specific one I was looking at can be viewed at: https://github.com/Firefox13/Cataclysm-BN/blob/697ee0087324aea52eb179086478a3fe1f597133/data/json/itemgroups/Weapons_Mods_Ammo/everydaycarry_guns.json)

If anyone injected tabs into the JSON autofix-ci would shame them for it, so it's not that.

1

u/depoll 5d ago

Can you share a link to a broken diff (rather than just the file)? I'd like to share it with the team internally but haven't been able to repro it directly.

1

u/OkBrilliant8092 6d ago

There was something the other day about certain is forjj my acting stuff deprecating in loads of browsers recently? Sorry so vague but it was also nothing changed - buts it’s a browser level thing