I moved my project directories around from ~/Documents/Unreal Projects to ~/Unreal Projects. Since then, live coding compilation fails because it’s looking for a file in the wrong place:
File C:\Users\me\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\ObstacleAssaultEditor\Development\Engine\SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.h.obj was modified or is new
File C:\Users\me\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\MovingPlatform.gen.cpp.obj was modified or is new
File C:\Users\me\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\ObstacleAssault.init.gen.cpp.obj was modified or is new
File C:\Users\me\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\MovingPlatform.cpp.obj was modified or is new
File C:\Users\me\Unreal Projects\ObstacleAssault\Intermediate\Build\Win64\UnrealEditor\Development\ObstacleAssault\ObstacleAssault.cpp.obj was modified or is new
Building patch from 5 file(s) for Live coding module C:\Users\me\Unreal Projects\ObstacleAssault\Binaries\Win64\UnrealEditor-ObstacleAssault.dll
LINK : fatal error LNK1104: cannot open file 'C:\Users\me\Documents\Unreal Projects\ObstacleAssault\Binaries\Win64\UnrealEditor-ObstacleAssault.patch_0.exe'
Failed to link patch (0.000s) (Exit code: 0x450)
The other files above the error are correct though, but the one giving the error should not be in \Documents.
This looks like a simple problem but I have no idea of how to fix it as I’m new to Unreal. I tried deleting the Intermediate directory as well as “refreshing the visual studio code project” but it didn’t help.
Thanks!