Cannot open source file name.generated.hc

This looks more like the 4.20 bug that does not provide the correct includes. just add the full path to ProjectName/Intermediate/Build/PLATFORM/UE4Editor/Inc/ProjectName before any generated.h file and you should be good to go