The first time I open the engine I can normally compile and all the changes made in the code will become visible upon compiling, however when I compile something for a second time using Visual Studio (2015) I will get an error:
...\ProjectName.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
I have checked and I have permissions, running visual studio as admin does not help.
The error will not show if I press compile within the engine, however no changes are visible until restart which is annoying having to restart the engine after every change.
I am not compiling any part of the engine, this occurs even with new projects by just adding a new C++ actor class to the FPS BP example project.