Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff against Depot doesn't work if the path contains a space (1.8.1) #130

Closed
Ewan-Selkirk opened this issue Jul 12, 2023 · 6 comments · Fixed by PlasticSCM/UEPlasticPlugin#86
Assignees
Labels

Comments

@Ewan-Selkirk
Copy link

After upgrading the plugin from 1.8.0 to 1.8.1 the 'Diff against Depot' function no longer works, stating that is is unable to find the revision twice.

image

Downgrading back to 1.8.0 fixes the issues.
This is happening with Unreal Engine 5.1 not built from source.

@SRombauts
Copy link
Owner

Thanks for reporting this, and for all the details, I'll take a quick look and will let you know!

@SRombauts SRombauts added the bug label Jul 12, 2023
@SRombauts SRombauts self-assigned this Jul 12, 2023
@SRombauts
Copy link
Owner

The old command was

LogSourceControl: Verbose: RunDumpToFile: 'cm cat "rev:C:/Users/sebastien.rombauts/Documents/Unreal Projects/UE52TestSpacesInPath/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset#cs:1@UE52TestSpacesInPath@SRombautsU@cloud" --raw --file="C:/Users/sebastien.rombauts/Documents/Unreal Projects/UE52TestSpacesInPath/Saved/Diff/temp-cs1-Blueprint_CeilingLight.uasset"'

while the new one is now

[2023.07.12-12.57.43:898][578]LogSourceControl: Verbose: RunCommand: 'getfile rev:C:/Users/sebastien.rombauts/Documents/Unreal Projects/UE52TestSpacesInPath/Content/StarterContent/Blueprints/Blueprint_CeilingLight.uasset#cs:1@UE52TestSpacesInPath@SRombautsU@cloud --raw --file="C:/Users/sebastien.rombauts/Documents/Unreal Pro' (334 chars, 0 files) 

Note that we dropped for some reason the double quotes around the "RevSpec" rev:C:/xxx

@SRombauts
Copy link
Owner

So the fix in RunGetFile() is simply to change back from

	Parameters.Add(InRevSpec);

to

	Parameters.Add(FString::Printf(TEXT("\"%s\""), *InRevSpec));

@SRombauts
Copy link
Owner

Thanks again for reporting this, I fixed it.
Are you able to install the dev version from the master branch, or will you require a new bugfix release @Ewan-Selkirk?

@Ewan-Selkirk
Copy link
Author

Thank you for the quick fix!
I'll give installing the plugin from the master branch a go when I get the chance

@Ewan-Selkirk
Copy link
Author

Just got it installed and everything is working.
Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants