Problem
Errors in macro syntax causes the module’s build to hang for 2+ hours (possibly, indefinitely) with no indication of a build error.
Reproduction Steps
-
Introduced the following macro into a starter project:
UE_LOG(LogTemp, WrongVerbosityTypeHere, TEXT(“Some Text Here”));
-
Trigger a build of just the module e.g. right-click project > Build
-
In build output, look for the following:
1>Using Visual Studio 2019 14.28.29335 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>Building 4 actions with 32 processes… -
Wait for 2+ hours or until you get the feeling something is wrong…
-
Remove or correct the macro usage.
-
Build completes in seconds.
Development Environment
-
Windows 10 (Version 10.0.19042 Build 19042)
-
Visual Studio Community 2019 (Version 16.8.3)
-
Unread Editor 4.26 (Version 4.26.0-0+++UE4+Release-4.26)
Questions
-
Is this a known bug? If not, is this the properly place to report this?
-
If not, is there a configuration in UBT via Visual Studio or in the terminal to report build errors quickly?