Unable to compile newly created C++ class

Greetings, i’m unable to compile newly created CPP class (without any modifications, just as is), in a freshly created UE4 project. Everything compiling properly, when created CPP class with UE 4.23.1. After that, i upgraded project, created with version 4.23.1 up to 4.24.3. And everything working properly.
Compilation log provided below.

Environment info:

  • UE4 - Project Settings - Platfoms Windows - Compiler Version - Visual Studio 2019
  • UE4 Version 4.24.3
  • Visual Studio Community 2019, Version 16.5.3
  • Windows 10 SDK 10.0.18362.0

PS: CreatureBase.h is present, in the Public directory. Just as usual.

Any help would be highly appreciated.
Thanks in advance.

LogVSAccessor: Warning: Couldn't access Visual Studio
Candidate modules for hot reload:
  Exile
Launching UnrealBuildTool... [D:/GAMES_INSTALLED/EpicGames/UE_4.24/Engine/Binaries/DotNET/UnrealBuildTool.exe  -ModuleWithSuffix=Exile,4938 Win64 Development -TargetType=Editor -Project="D:/GAME_DEV/UE4/Exile/Exile.uproject" "D:/GAME_DEV/UE4/Exile/Exile.uproject"  -IgnoreJunk]
Warning: Starting HotReload took  0.0s.
CompilerResultsLog: New page: Compilation - 13 апр. 2020 г., 00:14:51
CompilerResultsLog: Building ExileEditor...
CompilerResultsLog: Using Visual Studio 2019 14.25.28612 toolchain (D:\SOFT_INSTALLED\Microsoft Visual Studio\2019\VC\Tools\MSVC\14.25.28610) and Windows 10.0.18362.0 SDK (D:\Windows Kits\10).
CompilerResultsLog: Building 4 actions with 12 processes...
CompilerResultsLog:   [1/4] CreatureBase.cpp
CompilerResultsLog:   D:\GAME_DEV\UE4\Exile\Source\Exile\Private\Creatures\CreatureBase.cpp(4): fatal error C1083: Cannot open include file: 'CreatureBase.h': No such file or directory
LogMainFrame: MainFrame: Module compiling took 2.020 seconds
Warning: HotReload failed, recompile failed

Hi, I will be happy to help you, but I need more information, and possibly the code, so we can understand why it is not able to open the include file.

The error is saying that it is not able to open the file “CreatureBase.h”. This could have different causes.

One might be that your file is inside a folder that is not directly inside/underneath the public folder (e.g. Public/Core). Another possibility is that in the .h file the generated include is not the last one. However, without the code it is harder to find the error.

Here we go

CPP file contents:

#include "CreatureBase.h"

// Sets default values
ACreatureBase::ACreatureBase()
{
 	// Set this character to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

}

// Called when the game starts or when spawned
void ACreatureBase::BeginPlay()
{
	Super::BeginPlay();
	
}

// Called every frame
void ACreatureBase::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

}

// Called to bind functionality to input
void ACreatureBase::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);

}

And the header file is:

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "CreatureBase.generated.h"

UCLASS()
class EXILE_API ACreatureBase : public ACharacter
{
	GENERATED_BODY()

public:
	// Sets default values for this character's properties
	ACreatureBase();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	// Called to bind functionality to input
	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

};

Already did:

  • Reinstalled visual studio
  • Reinstalled epic games launcher, and Unreal Engine 4.24.3

P.S.: Please note, that the same thing works perfectly in UE 4.23.1
But do not working in UE 4.24.3
Thank you, for your reply.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks