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.

 

0
8 comments

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:

  • Do you, by chance, have several versions of the engine installed?
  • What steps led to this issue? Did you update engine/retarget game project or something else?
  • Can you open this project in Unreal Editor? If no, are there any errors?
  • Does the issue persist with a newly created project?
  • Please tell me your engine version, is it installed from launcher or built from sources, your OS, and the way you open the project in Rider (.sln or .uproject);
  • If you could archive and share the <GameProject>/Intermediate folder, that would be great. Please upload it to the Upload Service and let me know the Upload ID.

Have a nice day!

0

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 do have several version installed, my project requires me to support all Unreal 5 versions atm. 
  • I am not sure, it has been like this for a while, I don't remember when this exactly happened.
  • The project opens in editor, builds successfully too, I am able to use all engine objects in my project files and they appear to be referenced correctly, just Rider seems to mark all engine classes and functions red when I open any engine file. 
  • The issue persist in any new or old projects.
  • I am developing on Unreal 5.3.2 at the moment. I believe it's installed from Launcher. I am on Windows 10, I open Rider from .sln file. 
  • I am sorry but due to the nature of my project I am not able to share any of the files associated with it. 

I hope this info is helpful, let me know if you need any more information. 

0

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:

  • Use these args for UnrealBuildTool configuration: -ProjectFiles -Rider -Automated -Minimize -Platforms=Win64 -TargetTypes=Editor -TargetConfigurations=Development C:\Path\To\Your\ProjectName.uproject
  • In Rider, select Run | Edit configurations. Select the .NET Project→UnrealBuildTool configuration and paste arguments to the proper field:
  • Press Run and watch the output in the Run tool window. Also, look at the Log_GPF.txt logfile generated during this run. The path to  it should be mentioned in the first rows of output. For example, for me it is C:\Users\mile6\AppData\Local\UnrealBuildTool\Log_GPF.txt
  • Look for any errors/exceptions. Would be nice if you could share this output with me.

Have a nice day!

0

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.

0

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.

  • Close Unreal Editor and Rider;
  • Go to Epic Games launcher;
  • Select Installed Plugins above 5.3.2 engine;
  • Try temporarily uninstalling all of them; (That would be great if you could share a screenshot that demonstrates what plugins you have installed)
  • Delete .idea, Intermediate and Binaries folders from the game project folder;
  • Verify engine files:
     

  • Verify if that helps.

Have a nice day!

0

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.

0

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.

0
Hello Radek,

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!
0

Please sign in to leave a comment.