Closed turkeys-cyber closed 1 year ago
Have you Built yet? You'll have intellisense errors if you haven't built a new project yet.
In VSCode go to Terminal->Run Build Task and choose your 'ProjectName'Editor Development Build. For example if you had a project called ShootU then the Build Task you would run would be(Win64 will be different for you):
If that doesn't work there are some Mac specific settings you can try setting:
I only have access to Windows and Ubuntu so I can't test on Mac/Mac M#
I tried your method, but it didn't work out.
The code in my engine workspace also complier errors.
Someone else had this problem and we couldn't figure it out. Just know that any Unreal Source file will probably have errors because Unreal projects don't properly setup Unreal Source Code files for Intellisense.
As for you project files having CoreMinimal.h issues I'm not sure...
You can try turning on C++ logging and see if it says anything strange. Here's my unfinished Log guide: https://github.com/boocs/Unreal-VSCode-diy-config-check-github
After you open c_cpp_properties.json and restart vscode wait for the intellisense icons to disappear. Now clear the log and switch to the file that has the error. When intellisense icons disappear copy the log and paste the pastebin.com here.
I edited the previous post to the correct site. Don't go to the other one 😰
Actually just don't click any link in your email because it probably still goes to the wrong site go here:
Thank you. I have found the cause of the error, it is a plugin called clangd confused with vscode.cpptools and intellisense can not recognize it.
Thank you. I have found the cause of the error, it is a plugin called clangd confused with vscode.cpptools and intellisense can not recognize it.
@turkeys-cyber Thank you so much!
I do need someone to help test my clangd extension for Mac/Mac M1. If you have time/experience then let me know. No problems if not.
You can easily disable the clangd extension and my unreal-clangd extenson globally and only enable it per project(workspace). So it won't affect any of your other projects. You also can just create a test project based on the FPS template.
Why? clangd Intellisense is very fast and has some nice features. Way better, imo, than the Microsoft C++ extension's intellisense. You will still use Microsoft's C++ extension for debugging.
Here's the link: https://github.com/boocs/unreal-clangd
I generated the visual studio project for UE5.2 on my M1. Even when I used the plugin, I kept seeing that the 'CoreMinimal.h' file was not found, but the plugin showed no errors in the ternimal.