GenerateProjectFiles fails if space in path. [Linux]

If there’s a space in the path it looks like when the UnrealHeaderTool gets called it doesn’t preserve quotes.

example command:

./GenerateProjectFiles.sh -project="'/home//Documents/Unreal Projects/Dialogues/Dialogues.uproject'" -game -engine

I tried including a \ after Unreal with no success.

UHT only follows the path till Documents.

Empty Spaces on Unix are #Q§X!!!
You could just type ./GenerateProjectFiles.sh
that is enough, this’ll download the dependecies in your gameengine folder.

Or you can just rename the directory to Unreal_Projects like I did

Oh, I do stuff like that. It’s still a bug since those paths should be wrapped with quotes to preserve the spaces.

Hey -

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here Unreal Engine Issues and Bug Tracker (UE-38334) . You can track the report’s status as the issue is reviewed by our development staff.

Cheers

For me the fix was to change the file GenerateProjectFiles.sh and add a pair of missing quotation marks:

diff --git a/GenerateProjectFiles.sh b/GenerateProjectFiles.sh
index d744d1e2a..f094bc3a6 100755
--- a/GenerateProjectFiles.sh
+++ b/GenerateProjectFiles.sh
@@ -25,5 +25,5 @@ if [ "$(uname)" = "Darwin" ]; then
 else
     # assume (GNU/)Linux
        cd Engine/Build/BatchFiles/Linux
-       bash ./GenerateProjectFiles.sh $@
+       bash ./GenerateProjectFiles.sh "$@"
 fi