Error when running generateprojectfiles.bat

I am building UE4 from source. After building, it crashed when I opened my game, so i follow someone’s suggestion, delete deriveddatacache folder.
Somehow, I decided to delete the original file and redownload and rebuild, this error appears:

Setting up Unreal Engine 4 project files…
Binding IntelliSense data… 0%ERROR: Exception thrown while processing dependent modules of Launch
Exception thrown while processing dependent modules of Core
ERROR: Couldn’t find module rules file for module ‘DerivedDataCache’.

GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files.

i’m having the same issue. any luck fixing it?

found the problem with my error…i got a little over zealous with excluding all folders with the name “DerivedDataCache” from my P4 workspace, which ended up removing the files here (that’s not good):

//depot/UnrealEngine/Engine/Source/Developer/DerivedDataCache