UHT file was deleted

Hi, so today I wanted to work a little bit on my project since everything was left intact when I left it and I have re-opened it today to do some programming and make some progress however, I have encountered a compiling error which doesn’t seem to go away. I have no idea what could of caused this and I already tried to find the temp folder to fix this → error : System.IO.IOException: The file or directory is corrupted and unreadable. But apparently the temp folder doesn’t exist.

Thanks, NijoMeisteR!

    1>------ Build started: Project: RolePlay, Configuration: Development_Editor x64 ------
    1>Creating makefile for hot reloading RolePlayEditor (UHT file was deleted)
    1>Compiling game modules for hot reload
    1>EXEC : error : System.IO.IOException: The file or directory is corrupted and unreadable.
    1>
    1>          at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    1>          at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    1>          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    1>          at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
    1>          at System.IO.StreamReader..ctor(String path, Encoding encoding)
    1>          at UnrealBuildTool.CPPHeaders.GetFileContents(String Filename)
    1>          at UnrealBuildTool.CPPHeaders.DoesFileContainUObjects(String Filename)
    1>          at UnrealBuildTool.ExternalExecution.CreateUHTModuleInfo(IEnumerable`1 HeaderFilenames, String ModuleName, FileReference ModuleRulesFile, DirectoryReference ModuleDirectory, UHTModuleType ModuleType, EGeneratedCodeVersion GeneratedCodeVersion)
    1>          at UnrealBuildTool.UEBuildModuleCPP.GetCachedUHTModuleInfo(EGeneratedCodeVersion GeneratedCodeVersion)
    1>          at UnrealBuildTool.ExternalExecution.SetupUObjectModules(IEnumerable`1 ModulesToGenerateHeadersFor, ReadOnlyTargetRules Target, CppCompileEnvironment GlobalCompileEnvironment, List`1 UObjectModules, Dictionary`2 FlatModuleCsData, EGeneratedCodeVersion GeneratedCodeVersion)
    1>          at UnrealBuildTool.UEBuildTarget.Build(BuildConfiguration BuildConfiguration, CPPHeaders Headers, List`1 OutputItems, List`1 UObjectModules, ISourceFileWorkingSet WorkingSet, ActionGraph ActionGraph, EHotReload HotReload)
    1>          at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile)
    1>E:\VISUAL STUDIO\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""E:\UNREAL ENGINE\UE_4.18\Engine\Build\BatchFiles\Build.bat" RolePlayEditor Win64 Development "E:\PYLIFE - DEVELOPMENT\RolePlay\RolePlay.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
    1>Done building project "RolePlay.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

From the stacktrace you provided I don’t get any relation to temp files. It rather seems to be checking some source files for UObjects and then fails due to inadequate access rights. So the first thing to do should be checking all involved files and folder have proper permissions set. If you are picking up your project after some (more) time it is probably also a good idea to start over with a clean rebuild to get rid of possibly outdated intermediate files.