Project crashes on startup because of invalid path that's not in code anymore

Hi, my program crashed because I used an invalid path in my C++ code with the following error:

LogPackageName: Error: DoesPackageExist: DoesPackageExist FAILED: '/Content/Props/Key' is not a standard unreal filename or a long path name. Reason: Path does not start with a valid root. Path must begin with: '/Engine/', '/Game/', '/Paper2D/', '/OculusVR/', '/SteamVR/', '/Config/', '/Script/', '/Memory/', or '/Temp/'

To be specific I specified Content instead of Game in my path while trying to spawn a blueprint from code.

static ConstructorHelpers::FClassFinder<UBlueprint> key(TEXT("Blueprint'/Content/Props/Key'"));

Now I changed that directory over an hour ago and I can open my project from visual studio but when I open it from the Epic Games launcher it crashes on startup every time. I rebuilt my solution, compiled it from the editor (after starting it from visual studio) and generated my Visual Studio project files but it keeps crashing as if the code was still using that path.

Uhm thats the first time I heard that running from VS and running from Launcher is not the same x) you sure you don´t have a old “Copy” in the launcher or something like that?

Anyway Close your Editor and VS, try deleting your Intermediate folder, Build from VS and Start from Launcher. See if that fixed your issue.

Thanks for the quick reply, but when I delete my intermediate folder and open my solution I get this:

218306-capture.png

I can roll back with version control but I would prefer to find a solution so I can keep my latest progress and to be able to solve it in the future.

Can you right click on your .uproject file and hit “Generate Visual Studio Files” that should fix the issue.

I deleted the intermediate folder, generated visual studio files, rebuilt my solution and started from launcher. The exact same crash happened. Looks like I’ll just have to cut my losses.

Update: I rolled back to my last commit lacking any other solutions. However the situation is still the same, I can launch from Visual Studio but it crashes when I open the project from the launcher.

Update: I rolled back to my last commit lacking any other solutions. However the situation is still the same, I can launch from Visual Studio but it crashes when I open the project from the launcher.

I read in another forum post that deleting everything in the binaries folder might solve a launch crash.
So far this seems to solve my problem!