My engine classes are not recognised/referenced properly
Hey All,
I have this problem where classes and functions inside engine cpp files don't seem to be referenced. Any idea what could be causing this or what I could do to fix it?
All project files are totally fine.
All the best
Radek.

Please sign in to leave a comment.
Hello Radek,
Thank you for contacting Rider support.
That seems the include paths are not resolved properly. Please unfold the `#include...` part, hover over the sample #include line. A tooltip with the list of paths where Rider searches should appear. Please share a screenshot of that.
Meantime, please share the following information:
Have a nice day!
Hey Dmitry
thank you for your reply, here is all the info requested.
To clarify the issue highlighted only appears on the Engine Files not Project Files. Any of my project files are all referenced correctly and don't appear red.
I hope this info is helpful, let me know if you need any more information.
Hello Radek,
Thank you for the clarifications.
The issue persists in the vanilla engine source files, right? Would you mind sharing a similar screenshot made from a sample file where the issue persists? (Feel free to obfuscate it if necessary)
The issue is probably caused by failure in project files generation. Probably in UE5.vcxproj file (<Game>/Intermediate/ProjectFiles or <Game>/Intermediate/ProjectFiles/.Rider).
I suppose the screenshot you shared earlier is the MVVMSubsystem.cpp file. Let's compare its inclusion context:
Check UBT logs for project files generation
I suggest launching the UBT and looking at its output:
-ProjectFiles -Rider -Automated -Minimize -Platforms=Win64 -TargetTypes=Editor -TargetConfigurations=Development C:\Path\To\Your\ProjectName.uproject
C:\Users\mile6\AppData\Local\UnrealBuildTool\Log_GPF.txt
Have a nice day!
Hello
Thank you for your reply, I have followed your instructions but I wasn't able to open the link you have provided. I am attaching all requested files here.
`Upload id: 2024_08_05_2AuJ39ryWX9xY8DdgmRauX`
I hope this helps
Thank you
Radek.
Hello Radek,
Thank you for the details shared. I see there are exceptions in UBT log:
Exception while generating include data for Target:UnrealEditor, Platform: Win64, Configuration: Development
. It potentially can cause such an issue. Do you, by chance, have any custom plugins installed to the engine?I suggest trying the following steps to see if that helps.
.idea
,Intermediate
andBinaries
folders from the game project folder;Verify engine files:
Have a nice day!
Hey
I am so sorry for not replying for so long. I was pretty busy, but today I have picked up trying to fix my Rider once again.
Unfortunately steps from your previous post did not resolve my issue.
But I have a hunch why my files are not being indexed/referenced correctly.
I believe my uproject is pointing to the different directory of the engine in comparison to where Rider is pointing.
Do you know how I can change Rider setting to be referencing Unreal Version from my D drive please?
Kindest regards
Radek.
RESOLVED : It turned out Rider was using the correct unreal from my local D drive while project was set to use C drive one. I've set my project to use Unreal installed in D drive and the issue is resolved now.
Thank you for contacting Rider support.
Apologies for taking so long to respond.
I am glad to know that a solution was found.
Should you have any other questions or difficulties, please let me know.
Have a nice day!