Description

I'm seeing it as an issue in at least 4.25.4, maybe prior.   I'll update after checking 4.24.

From the tests at my desk I could see that the HotReload.State file that DeleteTemporaryFiles (HotReload.cs) reads doesn't seem to have any references to temporary files inside of it, so this could be a problem with how that file is written out, or how the temporary files are collected before they're written out.

This seems to be tied to having the HotReloadState set to disabled when running, but that seems to be the case in a normal build of Dev Editor, so this is why I'm suspecting the state file creation/reading instead of the checks in BuildMode.cs.

Steps to Reproduce
  1. Create a first person C++ game project from installed engine or built from source code engine, or open up a project that was created with either.
  2. Build the project Development Editor in VS and open the project.
  3. Click the Compile button in Editor.
  4. Ensure hot reload dll and pdb is generated in [GameProjectName]/Binaries/Win64
  5. Close the editor.
  6. Open Visual Studio, build in Development Editor again, or rebuild.
  7. The dll and pdb generated in step 4 are not deleted automatically.

Expectation: These are cleaned up after each run or before every new run.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-104531 in the post.

1
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - Hot Reload
Affects Versions4.25.4
Target Fix4.27
Fix Commit15000281
Main Commit15000281
CreatedDec 14, 2020
ResolvedJan 6, 2021
UpdatedApr 27, 2021
View Jira Issue