[UE5/Main] Running GenerateProjectFiles.bat for the first time shows "The system cannot find the path specified"

I noticed that running GPF on a recent clean UE5 Main repo (either freshly checked out or all build artifacts removed) shows unexpected “The system cannot find the path specified” error message when running GenerateProjectFiles.bat.

This seems to stem from CL47948460 which added the following in Engine/Build/BatchFiles/BuildUBT.bat, which emits the error since Intermediate/Build directory at this point has not been created yet.

set TEMP_DEPENDS_FILE=..\Intermediate\Build\UnrealBuildTool.dep.tmp-%random%%random%.csv
if exist "%TEMP_DEPENDS_FILE%" goto :tempRetry
echo >"%TEMP_DEPENDS_FILE%"

I suppose this is benign, but thought nevertheless worth reporting as it was okay up to 5.7.

Regards,

Thanks a lot for the report and for digging out the root cause. Getting a 100% repro error message from one of your first steps of setting up a new workspace is clearly very bad.

I’ve submitted a silencing of the benign error in cl 53505444 that should make it to 5.8. Please try it out.

Thank you! Confirmed fixed in our working environment as well.