# VS Code: "Unable to resolve configuration with compilerPath" and #include error

**URL:** <https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 21, 2021, 11:21pm UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173 "2021-11-21T23:21:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tata\_Bittar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tata\_Bittar](https://forums.unrealengine.com/u/Tata_Bittar)\
**Post date:** [November 21, 2021, 11:21pm UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173/1 "2021-11-21T23:21:23Z")

</div>

After updating to 4.27.1 I have been having trouble with VS Code.  
Firstly, all the #include are giving error. I have tried all the fixes but nothing seems to work.  
Secondly, the output tab on the bottom is saying “Unable to resolve configuration with compilerPath “C:\Program”. Using “cl.exe” instead.” multiple times.

![352768-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/e/42e4842fcabec9decf7c28137c001f128892a761.png)

 ![352769-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/8/088b2cb54f85a3301d2d4a9974ec3b7a07fa7946.png)

Everything is working fine in the engine, so it appears to be a problem with vscode. This is only happening in this version of the engine. Is it a bug or something?

Here is what the properties file looks like, in case it is related.

 ![352771-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/a/bfa10618a0ced792d61cb682e3950cea25139791.png)

Im not sure this is a serious problem, just need help understanding what is going on as it is really annoying for the whole page to be marked red with errors.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Andreutzu31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andreutzu31](https://forums.unrealengine.com/u/Andreutzu31)\
**Post date:** [November 22, 2021, 10:24pm UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173/2 "2021-11-22T22:24:02Z")

</div>

Hi! Got the same issue here, seems that the spaces from the command paths from compileCommands\_Default.json are causing the compilerPath problem

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9872403c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9872403c](https://forums.unrealengine.com/u/anonymous_user_9872403c)\
**Post date:** [April 25, 2022, 6:00am UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173/3 "2022-04-25T06:00:38Z")

</div>

any solution?

---

<div class="post-metadata">

**Author:** ![PhilippeC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeC](https://forums.unrealengine.com/u/PhilippeC)\
**Post date:** [May 28, 2022, 8:42am UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173/4 "2022-05-28T08:42:03Z")

</div>

See this post : [UE 4.27 how to fix issues in visual studio code: "red squiggles" and "Unable to resolve configuration with compilerPath C:\Program"](https://forums.unrealengine.com/t/ue-4-27-how-to-fix-issues-in-visual-studio-code-red-squiggles-and-unable-to-resolve-configuration-with-compilerpath-c-program/568488)

---

<div class="post-metadata">

**Author:** ![Apek\_buddy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Apek\_buddy](https://forums.unrealengine.com/u/Apek_buddy)\
**Post date:** [November 6, 2022, 2:40pm UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173/5 "2022-11-06T14:40:02Z")

</div>

Adding VS Code extension named \<\> by rhighs solved the issue for me. Once added that extension we need to manually check the (UEIntellisense Fixes: Enable Fixes) and (UEIntellisense Fixes: Enable Optional Fixes) and restart the Code to solve the errors.  
Link :

> **[UE Intellisense Fixes - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=rhighs.ue4-intellisense-fixes)**
>
> Extension for Visual Studio Code - Automatically fixes Unreal Engine Intellisense configuration on startup.

---

<div class="post-metadata">

**Author:** ![DhanishMA3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dhanishma3/32/465185_2.png) [@DhanishMA3](https://forums.unrealengine.com/u/DhanishMA3)\
**Post date:** [April 8, 2023, 1:28pm UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173/6 "2023-04-08T13:28:49Z")

</div>

i got the solution right here :

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/9/ce907654e27dae08a056a245c123b7f98076fa38.png)[GameDev.tv – 24 Mar 21](https://community.gamedev.tv/t/include-errors-detected-in-vs-studio-code/164201/8)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/0/7d0a543395ee5990eb36a1763535e7542cabfd28.png)

### [#include errors detected in VS Studio Code](https://community.gamedev.tv/t/include-errors-detected-in-vs-studio-code/164201/8)

Could you try down grading to the latest stable release? 1.2.2? You can do that via this menu

its a very simple problem and you can fix it by simply down grading version of the C/C++ extension to 1.2.2

---

<div class="post-metadata">

**Author:** ![secondstarprod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@secondstarprod](https://forums.unrealengine.com/u/secondstarprod)\
**Post date:** [March 21, 2024, 3:01am UTC](https://forums.unrealengine.com/t/vs-code-unable-to-resolve-configuration-with-compilerpath-and-include-error/491173/7 "2024-03-21T03:01:54Z")

</div>

I know it’s been a couple years since you posted this, but, if you’re still in the dev community, I just wanted to say THANK YOU so much! I have been having such a problem with these errors (even downloaded an older version of Unreal to try to fix it) but nothing worked. This plugin saved me. Thank you, again, for posting about it!
