Unreal 4.7 + Visual Studio P4VS issue
There currently is an issue regarding using P4VS with Unreal 4.7 under Visual Studio 2013. Due to unreal 4.7 including Engine files, and they being part of the solution, P4VS will constantly try to check them, which they of course are not under version control. This causes Visual Studio to hang for about 2 to 5 minutes depending on machine speed. Unforunately trying to make use of the P4VS ignore in the Solution Explorer will not work. The only way to get around this issue currently is to turn of P4VS completely.
Example of the errors you will see in the P4VS log:
[Error: P4API.NET] 12/04/2015 02:13:19.8997 : Failed: Path 'c:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Slate\Public\Framework\Text\Android\AndroidPlatformTextField.h' is not under client's root 'C:\Users\Nakago\Perforce\Card_and_Dungeon'.
[Fatal: P4Command] 12/04/2015 02:13:19.9007 : Perforce.P4.P4Exception:Path 'c:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Slate\Public\Framework\Text\Android\AndroidPlatformTextField.h' is not under client's root 'C:\Users\Nakago\Perforce\Card_and_Dungeon'.
at Perforce.P4.P4Exception.Throw(String cmd, String] args, P4ClientErrorList errors, P4ClientInfoMessageList details)
at Perforce.P4.P4Server.RunCommand(String cmd, UInt32 cmdId, Boolean tagged, String] args, Int32 argc)
at Perforce.P4.P4Command.RunInt(StringList flags)
[Error: P4API.NET] 12/04/2015 02:13:19.9017 : Perforce.P4.P4Exception:Path 'c:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Slate\Public\Framework\Text\Android\AndroidPlatformTextField.h' is not under client's root 'C:\Users\Nakago\Perforce\Card_and_Dungeon'.
at Perforce.P4.P4Exception.Throw(String cmd, String] args, P4ClientErrorList errors, P4ClientInfoMessageList details)
at Perforce.P4.P4Server.RunCommand(String cmd, UInt32 cmdId, Boolean tagged, String] args, Int32 argc)
at Perforce.P4.P4Command.RunInt(StringList flags)
at Perforce.P4.P4CommandResult..ctor(P4Command cmd, StringList flags)
at Perforce.P4.P4Command.Run(StringList flags)
at Perforce.P4.Repository.GetFileMetaData(Options options, FileSpec] filespecs)
at Perforce.P4VS.P4ScmProvider.UpdateFileInCache(String file, Boolean forceUpdate)
I added the issue to an existing thread on the perforce forum about hanging visual studio:
http://forums.perforce.com/index.php?/topic/4012-solution-file-not-being-initialised-correctly-by-p4vs-on-load/
As well as over on Microsoft’s forum:
https://visualstudiogallery.msdn.microsoft.com/c42e78dd-846e-462c-bfce-6ee96b4eb7df/view/Discussions
If anyone over at Epic has any ideas, I am happy to try them out.