# Engine version 4.20.1 "broken" CPP template

**URL:** <https://forums.unrealengine.com/t/engine-version-4-20-1-broken-cpp-template/430518>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, intellisense, generated, Visual-Studio, question, CPP\
**Created:** [July 29, 2018, 5:36pm UTC](https://forums.unrealengine.com/t/engine-version-4-20-1-broken-cpp-template/430518 "2018-07-29T17:36:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EliasPa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EliasPa](https://forums.unrealengine.com/u/EliasPa)\
**Post date:** [July 29, 2018, 5:36pm UTC](https://forums.unrealengine.com/t/engine-version-4-20-1-broken-cpp-template/430518/1 "2018-07-29T17:36:26Z")

</div>

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):

 ![248849-error-message-vs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/c/d1c3d57f1dae01a003310e72d106a399cbdbbd61.png)

I also get these errors in the character header files:

![248850-include-error-vs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c356f00f42c962e2ef3256f065cc5e6da9cc67d.png)

![248871-generated-body-error-vs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/1/5613a461b5754e8ad9be79723a4efe03d9dce9a8.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.

---

<div class="post-metadata">

**Author:** ![Anonymous\_73d5ab512f286c5ee976e8cb49fb2ad6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_73d5ab512f286c5ee976e8cb49fb2ad6](https://forums.unrealengine.com/u/Anonymous_73d5ab512f286c5ee976e8cb49fb2ad6)\
**Post date:** [July 31, 2018, 11:50pm UTC](https://forums.unrealengine.com/t/engine-version-4-20-1-broken-cpp-template/430518/2 "2018-07-31T23:50:10Z")

</div>

I have the same.

 ![249056-набросок.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/4/5d4f2481fac000c038e360639a4bdc71d1f709bb.png)

---

<div class="post-metadata">

**Author:** ![Sveitar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sveitar/32/710746_2.png) [@Sveitar](https://forums.unrealengine.com/u/Sveitar)\
**Post date:** [August 1, 2018, 12:40am UTC](https://forums.unrealengine.com/t/engine-version-4-20-1-broken-cpp-template/430518/3 "2018-08-01T00:40:28Z")

</div>

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)](https://issues.unrealengine.com/issue/UE-62042)).

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

> **[VS cannot find generated.h files](https://forums.unrealengine.com/questions/810626/vs-cannot-find-generatedh-files.html)**
>
> UE 4.20 clean fresh installation. Created New project - C++ Base Code In UE Editor double click on C++ Classes \\ MyProject \\ MyProjectBameModeBase (generated during the project creation) VS 2017 automatically opened There's an error: cannot open file...

---

<div class="post-metadata">

**Author:** ![EliasPa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EliasPa](https://forums.unrealengine.com/u/EliasPa)\
**Post date:** [August 1, 2018, 7:41pm UTC](https://forums.unrealengine.com/t/engine-version-4-20-1-broken-cpp-template/430518/4 "2018-08-01T19:41:00Z")

</div>

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.
