VSCode on Mac produce IntelliSense Errors due to missing include

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form

Thanks

Hi,
using visual studio code on mac will produce intellisense Errors concerning the include path:
Example: cannot open source file “new” (dependency of “CoreMinimal”.h)

This is happening due to a missing path for include and browse in the c_cpp_properties.json
At least on my mac an additional “/usr/include” is needed, since this is where the standard c++ headers are located.

Please update the generate/refresh vscode routine accordingly.

Thanks
Christian

Hello, was this deemed to be a bug, and are there any known workarounds?

Would be nice to get Intellisense working in VS Code.

Maybe the same like
link text

My workaround: add Mac specific headers in c_cpp_properties.json.

So we have a FEATURE REQUEST: Please give us the required include paths on macOS, when generating a VSCode-Project from the Unreal Editor.

But we will have a new problem: UCLASS(), UPROPERTY() etc. will be treated as an errors by VSCode’s intellisense.
I think, Microsoft will have to fix that. That’s not an issue here imho.

I use the following workaround.

  1. click on the yellow lamp that appears next to the include line.
  2. choose “Edit includePath setting”
  3. add the following line in the includePath section

“/Users/Shared/UnrealEngine/UE_4.20/Engine/**”

  • “UE_4.20” part in the path I shared with you changes depending on the engine version you are using.
  • It’s a JSON file so do not forget to add a comma if there are other items in includePath
1 Like

The path may change with your version. My path is in the “Epic Games” folder:

/Users/Shared/Epic Games/UE_4.22/Engine/**

i found a great solution intellisense on VSCode for Unreal Engine.
This works well on my intel Mac and M1

and

i got the solution right here :

GameDev.tv – 24 Mar 21

#include errors detected in VS Studio Code

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