Code (CSharp): Failed to resolve packages: The file [E:\Work\<project-name>\Packages\manifest.json] is not valid JSON: Unexpected token '' at 1:1 { ^. No packages loaded. Happens every time after merging the .json file with p4merge. Caused by p4merge inserting a BOM at the start of the file (not shown in the error message). Please use a parser that doesn't choke on BOM. (Tested with latest versions of 2018.2, 2018.3, 2019.1)
Hi @Hyp-X, I've done a quick scan on the internet and it seems BOM issues are common with p4merge. Can you check your p4merge or perforce configuration? As what it worth, this Stack Overflow answer makes me believe it will be hard to find a JSON parser that supports BOM character since this is not required by the spec: https://stackoverflow.com/a/38038099/449712 Regards, Pascal
I see. https://forums.perforce.com/index.p...t-respect-bom-presenceabsence-in-utf-8-files/ It looks like p4merge can be configured to always add BOM (breaking .json files) or always remove BOM (breaking .cs files). I wish there was a good alternative for p4merge that supports 4-pane merging...