Hey there,
Apologies for the delay, as I’ve been out at a conference the past week.
Just reading through the code, I can see where this could go wrong.
In PerforceViewMap.cs, you can implement a bit of a workaround as follows:
`public static PerforceViewMapEntry Parse(string entry)
{
Match match = Regex.Match(entry, @“^\s*(-?)\s*(?:”“([^”“]+)”“|([^ “”\t]+))\s+(?:”“([^”“]+)”“|([^ “”\t]+))\s*$”);
if (!match.Success)
{
throw new PerforceException($“Unable to parse view map entry: {entry}”);
}
string left = match.Groups[2].Success ? match.Groups[2].Value : match.Groups[3].Value;
string right = match.Groups[4].Success ? match.Groups[4].Value : match.Groups[5].Value;
bool isInclude = match.Groups[1].Length == 0;
return new PerforceViewMapEntry(isInclude, left, right);
}`I’ve verified this with the PerforceViewMapTests.cs:
// ... spaces AssertMapSpec("\"//MyDepot/UE5-AutoSdk-Windows/HostWin64/Win64/Windows Kits/10/Extension SDKs/WindowsDesktop/10.0.22621.0/...\" \"HostWin64/Win64/Windows Kits/10/Extension SDKs/WindowsDesktop/10.0.22621.0/...\"") .Maps("//MyDepot/UE5-AutoSdk-Windows/HostWin64/Win64/Windows Kits/10/Extension SDKs/WindowsDesktop/10.0.22621.0/SomeFile.xml", "HostWin64/Win64/Windows Kits/10/Extension SDKs/WindowsDesktop/10.0.22621.0/SomeFile.xml");
I can create a jira ticket internally to get this fixed.
Julian