Rider showing incorrect errors with Unreal 5.2

When using Unreal 5.2.0 and 5.2.1 and adding a new UProperty, e.g. a UStaticMeshComponent, to an Unreal Actor header, and then switch to the source file, I get the following error shown...

"Base 'AActor' is not initialized in this constructor"

Everything compiles fine but the only way to get this error message to go away is to restart Rider. Is there any way to get rid of this bogus message without restarting the IDE?

1
3 comments

Seeing other things flagged as errors which compile fine, for instance...

void ASatelliteActor::init(const FString& newMeshName)
{
meshName = newMeshName;
}
 
...shows the error...
 
Attempt to use deleted FString& FString::operator=(const FString&)
 
...but compiles fine.
1

Writing tests causes the same behaviour:

IMPLEMENT_SIMPLE_AUTOMATION_TEST(FHexagonLibraryFromLocationTest, "GridFramework.HexagonLibrary.FromLocation", EAutomationTestFlags::ApplicationContextMask | EAutomationTestFlags::SmokeFilter)
bool FHexagonLibraryFromLocationTest::RunTest(const FString& Parameters)
{

Attempt to use deleted constructor FString::FString()

 

0

Hello, 
This is a known issue:

We have already fixed this issue in the development branch and we hope to deliver this fix in upcoming versions of Rider.
Have a nice day!

0

Please sign in to leave a comment.