boocs / ue4-intellisense-fixes

Automatically fixes VSCode/Unreal Engine Intellisense Config bugs on startup
MIT License
162 stars 9 forks source link

'CoreMinimal.h' file not found #30

Closed turkeys-cyber closed 10 months ago

turkeys-cyber commented 11 months ago

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.

boocs commented 11 months 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):

image


If that doesn't work there are some Mac specific settings you can try setting: image

I only have access to Windows and Ubuntu so I can't test on Mac/Mac M#

turkeys-cyber commented 11 months ago

I tried your method, but it didn't work out. Screenshot 2023-10-17 at 10 52 17 Screenshot 2023-10-17 at 10 54 02 Screenshot 2023-10-17 at 10 54 41

turkeys-cyber commented 11 months ago

The code in my engine workspace also complier errors. Screenshot 2023-10-17 at 10 55 44 Screenshot 2023-10-17 at 10 56 44

boocs commented 11 months ago

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.

boocs commented 11 months ago

I edited the previous post to the correct site. Don't go to the other one 😰

boocs commented 11 months ago

Actually just don't click any link in your email because it probably still goes to the wrong site go here:

https://pastebin.com/

turkeys-cyber commented 11 months ago

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.

Mark-Bezyinski commented 11 months ago

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!

boocs commented 10 months ago

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