Engine version 4.20.1 "broken" CPP template

When I try to make a new project using the 2D side scroller C++ template, i get a lot of intellisense errors in Visual Studio(Community 2017, v. 15.7.5). However, I am able to build the project. I also tested creating a project based on the same template using engine version 4.17.2 and everything works just fine.

Most of the errors are of the following type (in the Character.cpp file):

I also get these errors in the character header files:

248850-include-error-vs.png

248871-generated-body-error-vs.png

I’ve tried to delete the following files/folders from the project directory: .vs/, Saved/, ProjectName.sln, Intermediate/, Binaries/

And I’ve also clicked the ‘Generate Visual Studio project files’ after deleting the previously mentioned files/folders. The errors are still present.

Any help would be appreciated, thank you in advance.

I have the same.

This is a bug introduced in 4.20. It’s already fixed and will ship with 4.20.2 hotfix (Unreal Engine Issues and Bug Tracker (UE-62042)).

In the meantime you can use the workaround I’ve posted here:

Thank you so much for the answer! I’m happy to see that the fix will be shipped soon.

P.S I left a question at that post.