Hot reload not working sometimes

Sqobar
Sun, 05 Mar 2017 20:59:05 +0000
Plugins

Hello Unreal community. I made plugin (just few simple classes) and use it in my project. Everything works fine, but i can’t compile in Visual Studio when Editor is running. In VS i see error message:

Compiling game modules for hot reload
2>  Performing 4 actions (4 in parallel)
2>  [2/4] Link UE4Editor-MyPluginRuntime-5769.lib
2>     Creating library D:\Unreal\TestProject\Plugins\MyPluginRuntime\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyPluginRuntime-5769.lib and object D:\Unreal\TestProject\Plugins\MyPluginRuntime\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyPluginRuntime-5769.exp
2>  TestProjectGameMode.cpp
2>  [3/4] Link UE4Editor-TestProject-8983.dll
2>  [4/4] Link UE4Editor-TestProject-7949.lib
2>     Creating library D:\Unreal\TestProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestProject-8983.lib and object D:\Unreal\TestProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestProject-8983.exp
2>     Creating library D:\Unreal\TestProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestProject-8983.suppressed.lib and object D:\Unreal\TestProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestProject-8983.suppressed.exp
2>ERROR : UBT error : Failed to produce item: D:\Unreal\TestProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-TestProject-7949.lib

And in Editor:

LogModuleManager:Warning: ModuleManager: Unable to load module 'D:/Unreal/TestProject/Binaries/Win64/UE4Editor-TestProject-8983.dll' because the file couldn't be loaded by the OS.
Warning: HotReload failed, reload failed /Script/TestProject.

But if i’m compiling in Editor, no errors and hot reload is working as usual.

Maybe i’m doing something wrong? Please help me.

19 posts - 7 participants