Trying to compile UE5.0.3 from source , failed with not found UnrealEditor-VisualStudioCodeSourceCodeAccess.suppressed.exp

I have built the source code version 5.0.3 with VS2019 16.11.17 , sdk version is 10.0.19041.0.
Everything is fine except the following error:

57>[1/3] Link UnrealEditor-VisualStudioCodeSourceCodeAccess.dll
57>LINK : fatal error LNK1104:  cannot open file“..\Plugins\Developer\VisualStudioCodeSourceCodeAccess\Intermediate\Build\Win64\UnrealEditor\Development\VisualStudioCodeSourceCodeAccess\UnrealEditor-VisualStudioCodeSourceCodeAccess.suppressed.exp”
57>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: command“..\..\Build\BatchFiles\Build.bat -Target="UnrealEditor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild”exited,code is 6。

The requested file “UnrealEditor-VisualStudioCodeSourceCodeAccess.suppressed.exp” didn’t exist.
From the log file , I can’t find the log to create this file “UnrealEditor-VisualStudioCodeSourceCodeAccess.suppressed.exp” .

When I run the project UE5, the program will warn the UnrealEditor-VisualStudioCodeSourceCodeAccess.dll is error!

Please give me any suggestion about how to slove the error!

By the way , i have tried use VS2022, the same error happened. At last , I have copyed the UnrealEditor-VisualStudioCodeSourceCodeAccess.dll from UE5 installed by Epic Games Launcher , and It works!

Thanks a lot!
qc

FYI My source build of UE 5.0.3 contains this file:

Engine/Plugins/Developer/VisualStudioSourceCodeAccess/Intermediate/Build/Win64/UnrealEditor/Development/VisualStudioSourceCodeAccess/UnrealEditor-VisualStudioSourceCodeAccess.suppressed.exp

Can you run the following command from your UE5 checkout directory:

cmd> Build\BatchFiles\Build.bat -Target="UnrealEditor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet"

And provide a summary of the output. Look closely for build errors

Actually the length of the relative path is 189 characters, how long is your UE5 checkout path? Isn’t there a 256 character path length limit on some versions of windows - that you have to turn off with developer options or something.

1 Like

Thanks , I’ll try again

I’ll check it

Hi, This problem is caused by the long path limition! Thanks a lot!

1 Like

My pleasure. Please mark the solution.

1 Like

so need to restart my pc or not…