Unreal Engine : Failed to initialize Project Model

Jetbrains Rider keeps giving me this error message when opening a C++ file using Rider for Unreal Engine,  inside of Unreal Engine...

"Unreal Engine: Failed to initialize project model for "Configuration: Development Editor, Platform: Win64""

 

I am uncertain how to resolve this and it provides no additional information.  Any suggestions?

0
3 comments

Hello Teriander,

This message indicates that Rider for Unreal Engine was unable to fetch the project properties from UnrealBuildTool.

It can happen if UnrealBuildTool didn't generate JSON files associated with the project model, but it didn't throw an error as well. You can check the "UnrealBuildTool" window in Rider to check if this is the case. Usually, when UBT generates the JSONs, you can find the log messages that might look like this :

Written <project_path>\Intermediate\TargetInfo.Game.json
Written <project_path>\Intermediate\TargetInfo.Engine.json

0

Unsure whether this is the best place, but as of late, I'm running each time onto this issue. I use MSVS 17.7.6 and Resharper Build 232.0.20230919.80758. The mentioned JSON files are generated, but there is this error notification on each opening of the Solution file. It does looks everything works though.

Failed to generate project model definition files for 'Configuration: Debug Client, Platform: Win64'. vcxproj-based project model will be used as a fallback. Some features (like automatic reloading project model on .uproject/.Build.cs changes) will not be available.

0

Hello ryobg,

Would you mind opening an issue using Help→Report a Bug and attaching your Rider logs when prompted? 

In addition to the logs, please mention your UE version in the issue description. For example, UE 5.3.1 from Epic Games Launcher or a source version built from ue5_main (with commit ID).

1

Please sign in to leave a comment.