Aborting Build in Visual Studio doesn't abort cleanly any more

When I hit ctrl+break now I think ever since 4.6 or 4.7 it no longer fully aborts a build. It seems like UnrealBuildTool doesn’t stop running. I’ve also sometimes had to make sure I delete everything in the Intermediate directories.

This basically results in subsequent builds being stuck doing nothing. The only thing that gets a build working again is deleting things in the intermediate folder usually.

This is really bad when I’m trying to abort a really lengthy build after realizing I missed something, for example.

I used to always be able to abort builds.

Hey illYay-

I don’t think I’m seeing the same behavior you are. I created a code project and added some code to it. I get the same behavior when using Ctrl+Break to cancel the build as if I went to Build->Cancel. I’m also able to build again even after using the keyboard command to cancel. Could you elaborate on what you’re seeing or how using the keyboard command is failing for you? What do you mean UnrealBuildTool stops running or that future builds are stuck doing nothing? Any information you can add that would help us reproduce this issue would also be helpful.

Cheers

Most recently, I cancelled a build of Unreal Tournament 4 and wasn’t able to rerun the GenerateProjectFiles.bat because the UnrealBuildTool.exe was in use. Turns out it was just still running so I closed it after finding it in Process Explorer.

Before I’ve also had issues where if I abort a build of my own project, and try to build again, it hangs. Visual studio itself is still usable but there is absolutely no text being logged to output. I found that deleting some dll files in Intermediate puts it back on track.

Hey illYay-

Are you referring to the output of Visual Studio or the editor’s output window does not update during the compile? Are you able to go to Build->Cancel in Visual Studio to abort a build? Does the same behavior occur when compiling a new code project?

Hey illYay-

We’ve not heard from you in a few days, so we are marking this post as resolved for tracking purposes. If you are still having problems with building in Visual Studios after aborting a build, please feel free to reopen this post by posting a comment with the additional information requested and we will investigate this issue further.

Cheers