5.1 - Perforce Integration - Shows ignored files in Content Folders

We are running UE 5.1 Source Build, and the perforce integration does not respect our ignore file. It shows all files in the Engine/Plugins Content folders and Engine/Content folder as “Not in Depot” and tries to submit them (which will not work because they are ignored). Reverting them deletes them (obviously), but when we add them back in, the same problem persists.

This is incredibly annoying. Because we do not have access to Epic Games Perforce Streams, we got it from Git and then Diffed everything that gets loaded through GitDependencies.exe into a Zip that we download onto our machines. All the content folders are contained in the archive, and we don’t see any value in adding 3000+ Engine Content files to our source control just because the engine ignores the ignore file.

Is there any workaround or fix to this? Or is this working as intended?

Spent 4 hours working through the Perforce Plugins Source Code. I really have no clue what is wrong with it. At first, I thought it depends on the fact that those files were once tracked (uploaded due to ignore file misconfiguration). I manually purged/obliterated all those files and their metadata from the Perforce server. But they still showed up inside Unreal Engine and still cluttered the Submit Window.
Because Perforce Visual Client works as expected and even trying to reconciling the exact files does nothing (well it ignores them as instructed) I was close to giving up.
If anyone ever faces this issue… here is a fix that works for us, but might come with unexpected results if you aren’t careful with your ignore file (if you ignore stuff that is tracked – pls don’t). Source Build only → Modify the PerforceSourceControlOperations.cpp file in Engine/Plugins/Developer/PerforceSourceControl/Source/Private. In the ParseOpenedResults Function (The one that returns TMap), add FileState.State != EPerforceState::Ignore to the condition so that all files that are reported as ignore are actually not sent upward to the engine. Make sure your Engine is closed and build the Plugin project or Engine again.


This will probably never happen to anyone else (just my luck), but if it did… I feel your pain :smiley:

Well or not… For some reason this issue still pops up sometimes… But it’s no longer consistently happening… So still a issue.