Description

Hot Reload does not work if a project and the Engine that project is associated with are placed next to each other in the same root folder that shares the same name as the project. During the Hot Reload, the Engine appears to be looking for the .uproject file one folder higher in the file path than it is actually located.

This only appears to be an issue if both the project and the Engine are in the same root folder and the root folder and project share the same name. If either the Engine is located somewhere else, or the root folder and project names are different, then the Hot Reload completes successfully.

REGRESSION:
Yes. A Hot Reload in this situation in 4.19.2 completes successfully.

Steps to Reproduce
  1. Create a new folder for this test (eg. D:\TestHotReload).
  2. Place an Engine build in the new folder (eg. D:\TestHotReload\UE4).
  3. Using the Engine from step 2, create a new Basic Code project in the folder from step 1. Make sure the project has the same name as the folder (eg. D:\TestHotReload\TestHotReload\TestHotReload.uproject).
  4. Build the project in Visual Studio.
  5. Start debugging the project through Visual Studio.
  6. Open the Output Log window if it is not already open.
  7. Click the Compile button in the Editor.

RESULT:
The Hot Reload process fails with the following error: ERROR: System.IO.FileNotFoundException: Could not find file 'D:\TESTHotReload\TESTHotReload.uproject'.

EXPECTED:
The Hot Reload process completes successfully.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-68148 in the post.

2
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - Hot Reload
Affects Versions4.224.20.3
Target Fix4.22
CreatedJan 8, 2019
ResolvedJan 11, 2019
UpdatedJan 21, 2019