Download

Visual Studio 2019 stuck compiling C++ project

Recently, I’ve been having trouble compiling my C++ project. Every time I try to build the project, VS never makes it past building the first action. Additionally, every time I try to rebuild, it gets stuck at the thirteenth action no matter what. I know that Incredibuild isn’t the problem because I uninstalled it. Until now, my project has always compiled in a timely fashion. I don’t know why it’s getting stuck now. Can anyone please tell me how to fix it?

My BuildConfiguration.xml:


<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<BuildConfiguration>
<bAllowXGE>false</bAllowXGE>
<bUseUnityBuild>false</bUseUnityBuild>
<MinFilesUsingPrecompiledHeader>1</MinFilesUsingPrecompiledHeader>
</BuildConfiguration>
</Configuration>

My computer’s specs:

PC Specs.png

I just solved the problem myself! It turns out that this line of code was causing VS to get stuck:


UE_LOG(LogTemp, WARNING_LOCATION, TEXT("ComponentHit"));

I accidentally put WARNING_LOCATION as the Verbosity instead of Warning. I can’t believe I overlooked this!

still weird that this would cause it to get stuck instead of giving a compile error.