Getting workspacefolder error

Hey guys,

I’m getting this error in building escape after creating the WorldPosition Actor:
[9/5/2021, 6:17:02 PM] “WorldPosition.cpp” not found in “${workspaceFolder}.vscode\compileCommands_BuildingEscape.json”. ‘includePath’ from c_cpp_properties.json in folder ‘BuildingEscape’ will be used for this file instead.

I created the project in a custom location, and I’m pretty sure it happens because vsCode can’t find the file in the right folder. My issue here is how can I resolve it?

Code for the WorldPosition header file where I get the error below. The same is happening for the #includes in the WorldPosition.cpp file. The workspace itself looks fine, aside from these errors.

#pragma once

#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "WorldPosition.generated.h"


UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class BUILDINGESCAPE_API UWorldPosition : public UActorComponent
{
	GENERATED_BODY()

public:	
	// Sets default values for this component's properties
	UWorldPosition();

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

public:	
	// Called every frame
	virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;

		
};

Try the Refresh Visual Studio Code Project action under Unreal Engine > File.

1 Like

Seems to have worked. Thanks! Weird how these errors pop up. This is now my #1 troubleshooting step xD

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms