Cannot open x.generated.h when building the editor


I’ve been running into the issue where I cannot build the Editor, building the game for shipping, debug or development works fine. Building for the editor however keeps giving me this error:

“Cannot open include file: ‘PA_AnimNode_WhipTarget.generated.h’: No such file or directory C:\Users\caira\Documents\Projects (C)\Unreal Engine\Marigold\Source\Marigold/PA_AnimNode_WhipTarget.h(5): fatal error C1083: Cannot open include file: ‘PA_AnimNode_WhipTarget.generated.h’: No such file or directory
Marigold C:\Users\caira\Documents\Projects (C)\Unreal Engine\Marigold\Source\Marigold\PA_AnimNode_WhipTarget.h”

When checking \Intermediate\Build\Win64\UE4Editor\Inc\Marigold the file PA_AnimNode_WhipTarget.generated.h does exist. I have also tried generating project files several times with no success.

I have also included a log file.

What could be the reason that it cannot find the .h file only when building the editor?



I haven’t been able to solve the issue yet, anybody has an idea?