# UE-4.25 Intellisense broken issue #UE-87619

**URL:** <https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, intellisense, issue, question\
**Created:** [April 18, 2020, 11:32pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952 "2020-04-18T23:32:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![metablaster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/metablaster/32/631348_2.png) [@metablaster](https://forums.unrealengine.com/u/metablaster)\
**Post date:** [April 18, 2020, 11:32pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/1 "2020-04-18T23:32:51Z")

</div>

Coming from here:

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-87619)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Basically intellisense is completely down due to preprocessor error in following header:  
UnrealEngine\Engine\Source\Runtime\Core\Public\HAL\Platform.h

```
#define COMPILED_PLATFORM_HEADER(Suffix) PREPROCESSOR_TO_STRING(PREPROCESSOR_JOIN(PLATFORM_HEADER_NAME/PLATFORM_HEADER_NAME, Suffix))

```

Manifested in following header (same path):  
PreprocessorHelpers.h

---

<div class="post-metadata">

**Author:** ![thejustinwalsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thejustinwalsh/32/464751_2.png) [@thejustinwalsh](https://forums.unrealengine.com/u/thejustinwalsh)\
**Post date:** [May 6, 2020, 2:25pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/2 "2020-05-06T14:25:13Z")

</div>

UE-87619 Effectively breaks anyone using VSCode and UE4 on Linux for development as well as anyone using a source build of the engine with VSCode from the description of the bug.

In 4.24 my `c_cpp_properties.json` file had 100s of entries in the defines array, and on 4.25 it is empty. Copying the info over from an old project and manually tweaking got intellisense back on track, so the project generator appears to be flawed in some way. Interestingly it appeared as if no defines were being generated for QT Crewtor either, but I do not use that product and have not verified.

---

<div class="post-metadata">

**Author:** ![thejustinwalsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thejustinwalsh/32/464751_2.png) [@thejustinwalsh](https://forums.unrealengine.com/u/thejustinwalsh)\
**Post date:** [May 6, 2020, 4:50pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/3 "2020-05-06T16:50:05Z")

</div>

Just tried, CLion w/ cmake and `cmake-definitions.cmake` is empty.  
Appears all project generators are not populating the needed definition files in 4.25, this is a much bigger bug than what is identified above.

Can’t recommend moving to 4.25 if you want to have any kind of autocomplete / intellisense with any alternative IDE when working with a source build at this point, appears to be broken across the board.

---

<div class="post-metadata">

**Author:** ![thejustinwalsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thejustinwalsh/32/464751_2.png) [@thejustinwalsh](https://forums.unrealengine.com/u/thejustinwalsh)\
**Post date:** [May 6, 2020, 7:15pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/4 "2020-05-06T19:15:39Z")

</div>

Rev 71f5ab51b6b8fa9c15b652e86ff86256760fb734, by Ben Marsh, 2020-03-06 18:42:36 MST  
Refactor UBT to use an interface (IActionGraphBuilder) to construct the action graph. Response files are also constructed through this interface, allowing them to be tracked as dependencies (will be added in subsequent change).

---

<div class="post-metadata">

**Author:** ![boocs\_ved](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@boocs\_ved](https://forums.unrealengine.com/u/boocs_ved)\
**Post date:** [May 11, 2020, 12:11pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/5 "2020-05-11T12:11:10Z")

</div>

If you search your project directory you’ll find Definitions.ProjectName.h (replace ProjectName with your project name). It seems to have all the defines c\_cpp\_properties.json needs. I copied them over and did some regex find/replace to format them correctly.

Intellisense errors disappeared.

VSCode, Windows 10, VS Build Tools

---

<div class="post-metadata">

**Author:** ![thejustinwalsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thejustinwalsh/32/464751_2.png) [@thejustinwalsh](https://forums.unrealengine.com/u/thejustinwalsh)\
**Post date:** [May 11, 2020, 3:10pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/6 "2020-05-11T15:10:42Z")

</div>

I appreciate the workaround. It is worth noting that this Definitions.ProjectName.h is present in all 4.24 builds as well. Additionally, using this method every time you add a new class, plugin, or do any other action that requires project file generation you will have to manually re-apply this method each time.

If you are going to go this route you would need to do a similar workaround for each IDE you are targeting. I’ve been testing more permutations and it looks like everything except Visual Studio Intellisense is broken. Just tested on my Mac and Xcode is broken too. Project compiles, autocomplete and detecting errors all over the project.

---

<div class="post-metadata">

**Author:** ![eWomerOC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eWomerOC](https://forums.unrealengine.com/u/eWomerOC)\
**Post date:** [May 12, 2020, 2:22pm UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/7 "2020-05-12T14:22:33Z")

</div>

You can try and see if this temporary workaround will work out for you or not.

[ue4\_25-defines-fix.patch](https://gist.githubusercontent.com/ericwomer/142650e65473087073f30e5fb97fd6e8/raw/7955b060b4b8e7fcf2719630797a0de358092985/ue4_25-defines-fix.patch)

Just download the file and apply it with git

```
git apply /path/to/ue4_25-defines-fix.patch
```

---

<div class="post-metadata">

**Author:** ![boocs\_ved](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@boocs\_ved](https://forums.unrealengine.com/u/boocs_ved)\
**Post date:** [June 14, 2020, 4:48am UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/8 "2020-06-14T04:48:46Z")

</div>

A little late but here’s a guide:

[https://gist.github.com/boocs/31e6c2e54815b7ba6246ee20315acf96#Step-9](https://gist.github.com/boocs/31e6c2e54815b7ba6246ee20315acf96#Step-9)

---

<div class="post-metadata">

**Author:** ![SaladinAyyub](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/saladinayyub/32/1103235_2.png) [@SaladinAyyub](https://forums.unrealengine.com/u/SaladinAyyub)\
**Post date:** [November 5, 2020, 6:11am UTC](https://forums.unrealengine.com/t/ue-4-25-intellisense-broken-issue-ue-87619/463952/9 "2020-11-05T06:11:59Z")

</div>

This worked on Fedora 32/33 Thanks for the patch ! Im not too experienced with the UBT (Unreal Built Tool) code… Can you explain what this patch did ?
