If a project is opened in the Editor after previously having a hot reload performed, any subsequent hot reloads started from Visual Studio will result in the build being reported as failed in Visual Studio even though the Editor reports the hot reload was successful.
When comparing hot reload files in Intermediate\Build\Win64\UE4Editor\Development and Binaries\Win64, the most recent hot reload files in the latter folder have corresponding files in the former folder with the same numerical value in the file name. However, these files do not match the numerical value in the name of the file that Visual Studio reports as having been unable to produce.
REGRESSION:
Yes. This behavior did not occur in 4.14. Attempting to open a project that had previously had a hot reload would result in a prompt appearing saying the project .dll file could not be found and asking if it should be built.
RESULT:
Visual Studio reports that the build failed, displaying a message similar to ERROR : UBT error : Failed to produce item: D:\Unreal Projects\Current Issues\tps16\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-tps16-7257.lib. However, the Editor shows that the hot reload was successful.
EXPECTED:
The build completes successfully in Visual Studio.
WORKAROUND:
Delete the project's Intermediates folder, generate project files, and build the project normally in Visual Studio.
Head over to the existing Questions & Answers thread and let us know what's up.
45 |
Component | UE - Foundation - Cpp Tools - Hot Reload |
---|---|
Affects Versions | 4.15, 4.16, 4.16.1 |
Target Fix | 4.16.2 |
Fix Commit | 3475747 |
---|
Created | Feb 21, 2017 |
---|---|
Resolved | Jun 6, 2017 |
Updated | Apr 27, 2018 |
4447 - klorberg |