Visual Studio Bug -> "Rebuild" prevents future compiles

Dear Friends at Epic,

Sometimes I will accidentally click “rebuild” instead of build

in all betas I’ve tested, this results in the following behavior

future attempts to use build or rebuild fail with a msg similar to this

1>------ Build started: Project: VictoryGame, Configuration: Development_Editor x64 ------
1>EXEC : error : System.UnauthorizedAccessException: Access to the path 'E:\RocketVictory\VictoryGame\Intermediate\BuildData\Include\VictoryGame' is denied.
1>     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1>     at System.IO.FileSystemEnumerableIterator`1.CommonInit()
1>     at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
1>     at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption)
1>     at UnrealBuildTool.RulesCompiler.FindAllRulesFilesRecursively(DirectoryInfo DirInfo, RulesFileCache RulesFileCache)
1>     at UnrealBuildTool.RulesCompiler.FindAllRulesFilesRecursively(DirectoryInfo DirInfo, RulesFileCache RulesFileCache)
1>     at UnrealBuildTool.RulesCompiler.FindAllRulesFilesRecursively(DirectoryInfo DirInfo, RulesFileCache RulesFileCache)
1>     at UnrealBuildTool.RulesCompiler.FindAllRulesFilesRecursively(DirectoryInfo DirInfo, RulesFileCache RulesFileCache)
1>     at UnrealBuildTool.RulesCompiler.FindAllRulesFilesRecursively(DirectoryInfo DirInfo, RulesFileCache RulesFileCache)
1>     at UnrealBuildTool.RulesCompiler.FindAllRulesSourceFiles(RulesFileType RulesFileType, List`1 AdditionalSearchPaths)
1>     at UnrealBuildTool.RulesCompiler.ConditionallyCompileAndLoadRulesAssembly()
1>     at UnrealBuildTool.RulesCompiler.CreateTargetRules(String TargetName, TargetInfo Target, Boolean bInEditorRecompile, String& TargetFileName)
1>     at UnrealBuildTool.RulesCompiler.CreateTarget(String TargetName, TargetInfo Target, List`1 InAdditionalDefinitions, String InRemoteRoot, List`1 InOnlyModules, Boolean bInEditorRecompile)
1>     at UnrealBuildTool.UEBuildTarget.CreateTarget(String[] SourceArguments)
1>     at UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""C:\Program Files\Rocket\Engine\Binaries\DotNET\UnrealBuildTool.exe" VictoryGameEditor Win64 Development "E:\RocketVictory\VictoryGame\VictoryGame.uproject" -rocket" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

#Solution

I have to log off of Windows 7 and log back on to correct this issue. Restarting VS is not enough.

#Request

Can you please figure out why “rebuild” causes all future builds and compiles to fail until logging off and back on?

Thanks!

Rama

Access to the path
‘E:\RocketVictory\VictoryGame\Intermediate\BuildData\Include\VictoryGame’
is denied.

If you’re getting a message like that, it’s most likely a problem on the file system or operating system level. The directory may be read only or may not exist, or have incorrect permissions.

Sometimes I will accidentally click
“rebuild” instead of build

You can also hit the “F7” key in visual studio to trigger a build.

I do not have file permission problems at any other time, only after clicking rebuild. So I wonder what rebuild is doing that is locking up all the files that future build runs are trying to use, it’s a strange issue


“You can also hit the “F7” key in visual studio to trigger a build.”

Haha okay thanks Joe! Sounds like the safer and faster route :slight_smile:

I do not have file permission problems
at any other time, only after clicking
rebuild.

Rebuild does different things than regular builds. Regular incremental builds will just replace the files necessary to replace due to code changes. Rebuild does a “Clean” first and probably tries to delete all the files, possibly that entire directory and everything it contains. When you get that “access denied” error, if you go to the directory it mentions in Windows Explorer and try to delete the entire folder (for example, navigate to E:\RocketVictory\VictoryGame\Intermediate\BuildData\Include\ and try to delete the “VictoryGame” folder), you might see a similar/related error message from Windows.

Thanks for the help Joe!

F7 sounds like my plan for now :slight_smile:

Rama

I also have this problem. But for me it isn’t solved by logging off and on again. Sadly it breaks my project.

  • “verify” option - not solved
  • “Restart computer” - not solved
  • “Create new Project” - not solved
    (build in VS working but compile in
    editor gives the same errors)
  • Uninstall Engine + Launcher →
    Reinstall everything → solved (i
    dont like this solution :<)

I was the one who posted this thread originall

“Uninstall Engine + Launcher → Reinstall everything → solved (i dont like this solution :<)”

ouch

#Epic please help!

also note,
there is a analyse->analyse my project. when you hit this button end up the same way.